I don't know if this has been made yet or anything but this is a simple DoAction function
Simba Code:Function DoAction(Slot : Integer): Boolean;
var
cx, cy: integer;
TextFound: Boolean;
Begin
Result := False;
if FindText(cx, cy, 'Enter', 'SmallChars', MSX1, MSY1, MSX2, MSY2) then
TextFound := True
else
Begin
ToggleActionBar(False);
Wait(RandomRange(500, 1000));
ToggleActionBar(True);
End;
if not IsActionBarOpen then
ToggleActionBar(True);
Result := SendKeys(Slot, 200, 100);
End;
-Boom