BobboHobbo
2009-10-08 13:01:39
I made a procedure to right click the x,y and choose the option provided by the text in the parm. But for some reason it isnt recognising it.
For example im using it as finding the item in bank, it right clicks it, the menu shows up with the withdraw- but the script just hovers as if i set the Waitoption wrong.
It just hovers off, like it doesn't recognise the aw-X?
For example im using it as finding the item in bank, it right clicks it, the menu shows up with the withdraw- but the script just hovers as if i set the Waitoption wrong.
function MouseOption(var qx, qy: integer; amount: string): boolean;
begin
if not (LoggedInFailSafe) then exit;
Result := true;
Mouse(qx, qy, 5, 5, false);
if not WaitOption('aw-'+amount, 250) then
if WaitOption('aw-X', 500) then
if WaitColor(215, 399, 0, 1, 4500) then
TypeSend(Amount);
if not WaitInvMinCount(1, 1500) then
Result := false;
end;
It just hovers off, like it doesn't recognise the aw-X?