Log in

View Full Version : Is it possible? (WaitOption)



wasfer
11-16-2011, 04:40 PM
MMouse(x, y, 4, 4);
wait(200 + Random(100));
mouse(x, y, 0, 0, false);
WaitOption('ithdraw-X', 5000);
wait(800 + Random(100));
TypeSend('2');

To make it only use ithdraw-X when
WaitOption('ithdraw-2', 5000) option is not available, would fasten up the proccess instead of always withdrawing with -x.

Harry
11-16-2011, 04:42 PM
OptionsExist( .. should do what you want.

Dynamite
11-16-2011, 05:10 PM
To make it only use ithdraw-X when option is not available, would fasten up the proccess instead of always withdrawing with -x.

begin
MMouse(x, y, 4, 4);
Wait(200 + Random(100));
Mouse(x, y, 0, 0, false);
if not WaitOption('ithdraw-2', 5000) then
WaitOption('ithdraw-X', 5000);
wait(800 + Random(100));
TypeSend('2');
end;

-Boom

KingKong
11-16-2011, 10:50 PM
use the withdrawex function in srl include, it does this automatically.

wasfer
11-17-2011, 05:39 PM
I started using WithdrawItem(), alot simpler :)