SRL Archive - OSR Help

Easy Question for the Competent Scriptor


php123

2013-04-17 14:58:59

[[[SOLVED!]]]

Im a total noob, only trying to edit someone else script in order to make it run how i want it to.

Okay so I'm trying to get a random click (either single left, single right, or double left click)

Here is the code, but I don't know how to have multiple commands for the double left click… I've tried comma's, "and", "+"…


begin
randomWaitTime;
case random(100) of
1..70: Clickmouse2(mouse_left);
71..91: ClickMouse2(mouse_right);
92..100: ClickMouse2 (mouse_left) + Wait(randomRange(50, 150) + ClickMouse2 (mouse_left);

end;

Sjoe

2013-04-17 15:02:16


92..100: begin
ClickMouse2(mouse_left);
Wait(randomRange(50, 150));
ClickMouse2(mouse_left);
end;

php123

2013-04-17 15:06:43

Yes! Thanks :)