Phoenix27 Posted December 15, 2004 Posted December 15, 2004 ok well im a noob >.< anyways ive read through the help file and stuff and i have been able to make autoit click where i want it to. MouseClick("left", 736, 610, 2) ok but how do i make it do it at given intervals say for example every 60 seconds untill i tell it to stop? any help that you guys can give me here would be greatly apreciated. there would obviously have to be a stop function or it would click there every 60 seconds forever right?
killaz219 Posted December 15, 2004 Posted December 15, 2004 hmm how about Hotkeyset("{esc}", "stop") Do Sleep(60000) MouseClick("left", 736, 610, 2) Until $i = 1 Func stop() $i = 1 Endfunc I was going to set esc to exit, but I thought you might have more to add on
Phoenix27 Posted December 15, 2004 Author Posted December 15, 2004 thanks for the help , do you think you could explain what each thing does? for the learning factor
Phoenix27 Posted December 15, 2004 Author Posted December 15, 2004 also.. i get an error.. Until $i=1 Until^ERROR Error: Variable used without being declared
SlimShady Posted December 15, 2004 Posted December 15, 2004 also.. i get an error..Until $i=1Until^ERRORError: Variable used without being declared<{POST_SNAPBACK}>Typical error.This works:Dim $i Hotkeyset("{esc}", "stop") Do Sleep(60000) ;MouseClick("left", 736, 610, 2) Until $i = 1 Func stop() $i = 1 Endfunc
Phoenix27 Posted December 15, 2004 Author Posted December 15, 2004 i fixed it myself by doing Hotkeyset("{esc}", "stop")$i = 0Do Sleep(60000) MouseClick("left", 736, 610, 2)Until $i = 1Func stop() $i = 1Endfunc
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