Kellyle Posted November 26, 2013 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
MadaraUchiha Posted November 26, 2013 Posted November 26, 2013 For calling a function again and again in a specific time, look into the helpful for: AdLibRegister and AdLibUnRegister
Kellyle Posted November 26, 2013 Author 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
Solution MadaraUchiha Posted November 26, 2013 Solution 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
Kellyle Posted November 27, 2013 Author 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
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