VizjerianExile Posted January 3, 2007 Posted January 3, 2007 Im looking for a basic scripting program that will simulate the Right click of a mouse every 1-2 mins random. It needs to just be 1 click, then wait 1-2 mins, and repeat. It doesnt need to be in any specific position, just where ever the curser is put by me and i know Nothing of autoit scripting, im relativly new at it. thank you for the help!
tmo Posted January 3, 2007 Posted January 3, 2007 (edited) Im looking for a basic scripting program that will simulate the Right click of a mouse every 1-2 mins random. It needs to just be 1 click, then wait 1-2 mins, and repeat. It doesnt need to be in any specific position, just where ever the curser is put by me and i know Nothing of autoit scripting, im relativly new at it. thank you for the help!this should do the work: While True $timestamp = TimerInit() $time = random(60, 120, 1) * 1000 While TimerDiff($timestamp) < $time sleep(1000) WEnd MouseClick("right") WEnd Edited January 3, 2007 by tmo
Bert Posted January 3, 2007 Posted January 3, 2007 let me guess, you need your PC to not run the screensaver...right? The Vollatran project My blog: http://www.vollysinterestingshit.com/
VizjerianExile Posted January 3, 2007 Author Posted January 3, 2007 this should do the work: While True $timestamp = TimerInit() $time = random(60, 120, 1) * 1000 While TimerDiff($timestamp) < $time sleep(1000) WEnd MouseClick("right") WEnd I entered the script in, compiled it, and tried to run it and got this error: Line 13 (file *script location*): While True While ^ ERROR Error: Unknown function name. --I believe im using the most updated version of autoit. Thankx! Richard
tmo Posted January 3, 2007 Posted January 3, 2007 --I believe im using the most updated version of autoit.i belive you are not as boolean support (true and false) were added only a few versions ago (actually 3.2.0)
hearurscream Posted January 3, 2007 Posted January 3, 2007 just use While 1 instead of True. Should do the trick. Infinity is a floorless room without walls or ceiling.Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe, and not make messes in the house.
herewasplato Posted January 3, 2007 Posted January 3, 2007 (edited) While 1 MouseClick("right") Sleep(Random(60, 120, 1) * 1000) WEnd Edited January 3, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
tmo Posted January 3, 2007 Posted January 3, 2007 While 1 MouseClick("right") Sleep(Random(60, 120, 1) * 1000) WEnddont keep it to simple
VizjerianExile Posted January 3, 2007 Author Posted January 3, 2007 dont keep it to simple Thanks all for your help this is working rather well.
herewasplato Posted January 3, 2007 Posted January 3, 2007 dont keep it to simple You are right... we don't want to show all of the newbies how easy it can be. We could work ourselves right out of this high paying position. :-)Hmmm, I could have one main script launch a child script to keep track of the time and STDIO the main script when it is time to click; then the main script launches a second child to do the actual click. :-) [size="1"][font="Arial"].[u].[/u][/font][/size]
dandymcgee Posted January 3, 2007 Posted January 3, 2007 Hmmm, I could have one main script launch a child script to keep track of the time and STDIO the main script when it is time to click; then the main script launches a second child to do the actual click. :-)LMFAO - Dan [Website]
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