SRL Archive - OSR Help

WaitOption doesn't work


Syntax

2012-07-05 23:11:00

begin;
Result := True;
GetMousePos(fx, fy);
Mouse(fx, fy, 0, 0, false);
WaitOption('down',500);
Wait(2000+random(350));
Break;
end;
end;

I'm using it like that, but it doesn't work very annoying. Works in other scripts tried change the string multiple times and nothing.

Ashaman88

2012-07-05 23:15:58

Try debugging, after you right click on the object do something like

Wait(600);
Writeln(Getchooseoptions('all');

That will print what options it is seeing so you can see what is wrong

YoHoJo

2012-07-05 23:17:35

Tutorial section is for tutorials that teach, not questions.

Make sure you have the proper things capitalized if needed.
Try increasing the wait time, but 500 should be sufficient hmm.
Screenshot of the menu please?

Syntax

2012-07-05 23:23:38

From: ashaman88
Try debugging, after you right click on the object do something like

Wait(600);
Writeln(Getchooseoptions('all');

That will print what options it is seeing so you can see what is wrong


this is the result:
New window: 1114792
Compiled successfully in 281 ms.
SRL Compiled in 0 msec
[]

@Yohojo


Syntax

2012-07-06 00:16:25

Can anyone help with this please pretty frustrating.

Brandon

2012-07-06 00:30:23

From: Blakebn2011
Can anyone help with this please pretty frustrating.


Are you sure ur graphics are set correctly? That choose options menu is darker and the text colour is extremely bright cyan.

Try:


MMouse(X, Y, 0, 0);
if (WaitUptextMulti(['hop', 'chop', 'oak'], 600)) then
begin
ClickMouse2(MOUSE_RIGHT);
WaitOptionMulti(['hop', 'chop', 'oak'], 1200);
end;