SRL Archive - Help

Is it possible? (WaitOption)


wasfer

2011-11-16 11:40:26

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

2011-11-16 11:42:39

OptionsExist( .. should do what you want.

Dynamite

2011-11-16 12:10:45

From: wasfer
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

2011-11-16 17:50:17

use the withdrawex function in srl include, it does this automatically.

wasfer

2011-11-17 12:39:53

I started using WithdrawItem(), alot simpler :)