spiderous Posted August 22, 2005 Share Posted August 22, 2005 (edited) Would this give me a script moving to 3 points with a slight pause between each and then looping? HotKeySet("{Home}","_MClick") HotKeySet("{End}","_StopLoop") HotKeySet("{ESC}","_Exit") While 1 Sleep (10) Wend Func _Exit() Exit EndFunc Func _StopLoop() $Loop = 0 EndFunc Func _MClick() $Loop = 1 While $Loop Double click at 0,500 MouseClick("left", 158, 344) sleep(500) Double click at 0,500 MouseClick("left", 168, 344) sleep(500) Double click at 0,500 MouseClick("left", 178, 344) sleep(500) Wend EndFunc Made a new post because the other was getting long, and I thought this would be better. Edited August 22, 2005 by spiderous Link to comment Share on other sites More sharing options...
spiderous Posted August 22, 2005 Author Share Posted August 22, 2005 bump Link to comment Share on other sites More sharing options...
BigDod Posted August 22, 2005 Share Posted August 22, 2005 Would this give me a script moving to 3 points with a slight pause between each and then looping? If you had tried it you have already answered you question.Try this, it is far from perfect.HotKeySet("{Home}","Start") HotKeySet("{End}","Stop") While 1 Sleep(100) Send("{home}") Sleep(10000) WEnd Func Start() MouseClick("left", 158, 344,5) Sleep(500) MouseClick("left", 168, 344,5) Sleep(500) MouseClick("left", 178, 344,5) Sleep(500) EndFunc Func Stop() Exit EndFunc I am no programmer but I managed to put this together. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
spiderous Posted August 22, 2005 Author Share Posted August 22, 2005 This script gives an error when run. a parse invalid or something like that, Link to comment Share on other sites More sharing options...
spiderous Posted August 22, 2005 Author Share Posted August 22, 2005 Guys Im trying here... Please help me. I took your advise and tried a script and I can not get it working. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2005 Developers Share Posted August 22, 2005 Guys Im trying here... Please help me. I took your advise and tried a script and I can not get it working.<{POST_SNAPBACK}>Script shown is fine...... telling us that This script gives an error when run. a parse invalid or something like thatIsn't very helpfull.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
spiderous Posted August 22, 2005 Author Share Posted August 22, 2005 the error says "HotKeySet("{Home}","Start") HotKeySet^{ERROR Error:Unable to parse line." Link to comment Share on other sites More sharing options...
spiderous Posted August 22, 2005 Author Share Posted August 22, 2005 (edited) ok, I fixed the error. Now how ho I adjust the time between loops. Could someone explain to me how the time is calculated like 500 means .5 seconds or somethingWhich code do I adjust to make the loop faster?Is it While 1Sleep(100)Send("{home}")Sleep(10000)WEnd Edited August 22, 2005 by spiderous Link to comment Share on other sites More sharing options...
dirtybob Posted August 22, 2005 Share Posted August 22, 2005 try this one:) ;HotKey to end the script, no need for a start command because it will ;start when you double click the file. HotKeySet("{End}","Stop") ;Moves the mouse to the firts Co-ords and then starts clickin and moving. While 1 MouseClick("left", 158, 344,5) Sleep(500) MouseClick("left", 168, 344,5) Sleep(500) MouseClick("left", 178, 344,5) Sleep(500) If @error then exit endif wend ;Stops the script Func Stop() Exit EndFunc Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2005 Developers Share Posted August 22, 2005 you know you can EDIT posts right ? Could someone explain to me how the time is calculated like 500 means .5 seconds or somethingI think it was you proposing more/better examples/tutorial in the helpfile right ?Maybe you need to start using it for your basic questions first too.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
spiderous Posted August 22, 2005 Author Share Posted August 22, 2005 Yed I did edit it, I did not realize there was a delete tab. As far as the seconds question goes I did read the help files on that section and I was unsure If I got it right. That where I got the .5 = 500. I was making sure. Is there a reason you are posting on all my topics with nothing actually helping me. It was already stated that I was a noob and knew not what I was doing. I don't understand why you are posting if you have nothing costructive to say. Thanks for your help guys It is working great now. /worships_you_all Link to comment Share on other sites More sharing options...
seandisanti Posted August 22, 2005 Share Posted August 22, 2005 ok, I fixed the error. Now how ho I adjust the time between loops. Could someone explain to me how the time is calculated like 500 means .5 seconds or somethingWhich code do I adjust to make the loop faster?Is it While 1Sleep(100)Send("{home}")Sleep(10000)WEnd<{POST_SNAPBACK}>There are fewer than ten functions used in this script, and the function that you're looking for is one of the first 3... the help file would probably answer your question more simply and quickly than a post... and it would include an example. 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