SRL Archive - SRL Snippets

MouseChoose and MouseChooseEx


Ibotlots8D

2012-04-02 10:09:36

function MouseChoose(var x,y,rx1,ry1:Integer; Z:String):Boolean;
begin
Mouse(x,y,rx1,ry1,False);
Result := ChooseOption(Z);
end;

function MouseChooseEx(var x,y,rx1,ry1,WaitTime:Integer; Z:String):Boolean;
begin
Mouse(x,y,rx1,ry1,False);
Result := WaitOption(Z, WaitTime);
end;
It's so much more easier than typing it out >.>

Abu

2012-04-02 10:13:09

Support - though typing it out isn't that hard :p

Ibotlots8D

2012-04-02 10:13:30

I know, i'm lazy though >=o

Coh3n

2012-04-02 14:50:51

Moved to snippets. This is something that should be left up to the scripter.

Flight

2012-04-05 08:30:04

How about using 'WaitOptionMultiEx' instead also making your 'Z' parameter a TStringArray?

Mat

2012-04-05 08:52:39

I like the idea :D