I'm pretty sure that's not how it's supposed to go like...Simba Code:case(2) of :
1. Mouse(x,y,0,0,False);
wait(1000);
ChooseOption('Use');
2. Mouse(x,y,0,0,True);
But it's my first time using a case statement :P
I'm pretty sure that's not how it's supposed to go like...Simba Code:case(2) of :
1. Mouse(x,y,0,0,False);
wait(1000);
ChooseOption('Use');
2. Mouse(x,y,0,0,True);
But it's my first time using a case statement :P
change the . to : after the 1 and 2.
remove the ':' after 'of', it is not needed
looking at your code, you realise it will only do 2?
If you want to do a random of 1 or 2 then do
Simba Code:case random(2) of
1: begin
Mouse(x,y,0,0,False);
wait(1000);
ChooseOption('Use')
end;
2: Mouse(x,y,0,0,True);
end;
Last edited by Yanhua; 01-20-2012 at 01:17 AM.
Click Here for my PUBLIC script: Auto Tabs Pro
random(2) will return either 0 or 1 if I remember right.
You will probably need to change those to 0 and 1.
Simba Code:case Random(2) of
0: begin
Mouse(x,y,0,0,False);
wait(1000);
ChooseOption('Use')
end;
1: Mouse(x,y,0,0,True);
end;
Is what you want I think
-Boom
Click Here for my PUBLIC script: Auto Tabs Pro
Click Here for my PUBLIC script: Auto Tabs Pro
There are currently 1 users browsing this thread. (0 members and 1 guests)