Kellyle Posted November 26, 2013 Share Posted November 26, 2013 I've read the documentation but english is not my native language, i have not understand it correctly. I could use some help please; Following code ;~ =================================== ;~ Opening mail ;~ =================================== MouseClick("left") sleep(random(112, 333)) MouseMove(1324 + Random(1,4),370 + Random(1,2),21) ;~ Here is line R10 sleep(random(211, 410)) Mouseclick("left") sleep(random(200, 310)) MouseMove(947 + Random(1,2),759 + Random(1,4),51) sleep(random(100, 200)) Mouseclick("left") ;~ When here is done, i want to go back to line R10 When is correctly done, can i add how many checks; if yes, then how to continue my script after (x) checks. Thanks for helping beginner Link to comment Share on other sites More sharing options...
MadaraUchiha Posted November 26, 2013 Share Posted November 26, 2013 For calling a function again and again in a specific time, look into the helpful for: AdLibRegister and AdLibUnRegister Link to comment Share on other sites More sharing options...
Kellyle Posted November 26, 2013 Author Share Posted November 26, 2013 (edited) I've read the documentation but english is not my native language, i have not understand it correctly. I could use some help please; Following code ;~ =================================== ;~ Opening mail ;~ =================================== MouseClick("left") sleep(random(112, 333)) MouseMove(1324 + Random(1,4),370 + Random(1,2),21) ;~ Here is line R10 sleep(random(211, 410)) Mouseclick("left") sleep(random(200, 310)) MouseMove(947 + Random(1,2),759 + Random(1,4),51) sleep(random(100, 200)) Mouseclick("left") ;~ When here is done, i want to go back to line R10 When is correctly done, can i add how many checks; if yes, then how to continue my script after (x) checks. Thanks for helping beginner For calling a function again and again in a specific time, look into the helpful for: AdLibRegister and AdLibUnRegister Thanks but i simply search a solution instead of repeating my lines again two or three times, i would like to repeat the following 3 times then continue the script. A crude example; Start MouseMove(1324 + Random(1,4),370 + Random(1,2),21) sleep(random(211, 410)) Mouseclick("left") End, Goto "start -> end" 2 times more, then continue Edited November 26, 2013 by Kellyle Link to comment Share on other sites More sharing options...
Solution MadaraUchiha Posted November 26, 2013 Solution Share Posted November 26, 2013 (edited) But the lines u like to repeat in a function, loop it with AdLibRegister, and when the specific reason to go on takes place, then AdLibUnRegister your function and execute the code after that... Excuse typos: I am on phone. Edited November 26, 2013 by MadaraUchiha Link to comment Share on other sites More sharing options...
michaelslamet Posted November 26, 2013 Share Posted November 26, 2013 Take a look at For...Next Link to comment Share on other sites More sharing options...
MadaraUchiha Posted November 26, 2013 Share Posted November 26, 2013 *specific Link to comment Share on other sites More sharing options...
Kellyle Posted November 27, 2013 Author Share Posted November 27, 2013 But the lines u like to repeat in a function, loop it with AdLibRegister, and when the specific reason to go on takes place, then AdLibUnRegister your function and execute the code after that... Excuse typos: I am on phone. Thanks you now i understand Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now