jasondd95 Posted January 25, 2016 Share Posted January 25, 2016 $centerX = @DesktopWidth / 2 $centerY = @DesktopHeight / 2 $radius = 100 $i = 0 While 1 MouseMove($centerX + ($radius * Cos($i)), $centerY + ($radius * Sin($i)),0) $i += 0.55 Sleep(10) WEnd i need help with this mouse spinning script, i need a start, pause and quit hotkeys for it please. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 25, 2016 Developers Share Posted January 25, 2016 Welcome I need a nice glas of red wine, but am sure I will have to get it myself. (there is a hint in there ) Jos 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...
jasondd95 Posted January 25, 2016 Author Share Posted January 25, 2016 2 minutes ago, Jos said: Welcome I need a nice glas of red wine, but am sure I will have to get it myself. (there is a hint in there ) Jos come on man please i aint no scripter and i did search the forums but didnt understand jack Link to comment Share on other sites More sharing options...
Developers Jos Posted January 25, 2016 Developers Share Posted January 25, 2016 So you seriously want to tell me you came up with nothing when searching for hotkeys in either this forum or helpfile? ..and please be honest or else your noise will start growing! Jos 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...
jasondd95 Posted January 25, 2016 Author Share Posted January 25, 2016 Just now, Jos said: So you seriously want to tell me you came up with nothing when searching for hotkeys in either this forum or helpfile? ..and please be honest or else your noise will start growing! Jos i did find alotta threads about hotkeys but like i said i aint no scripter and i didnt understand most of it, dude if i was in ur position i would totally help a brother out Link to comment Share on other sites More sharing options...
kylomas Posted January 25, 2016 Share Posted January 25, 2016 (edited) Dumpster fire...staight ahead!!!! edit: Seriously, you wrote the code you posted and can't figure out hotkeys? and why on earth do you want to spin your mouse around like its been on a wine bender with Jos? Edited January 25, 2016 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
jasondd95 Posted January 25, 2016 Author Share Posted January 25, 2016 #include <Constants.au3> ; Press Esc to terminate script, Pause/Break to "pause" Global $Paused HotKeySet("{a}", "TogglePause") HotKeySet("{s}", "Terminate") $centerX = @DesktopWidth / 2 $centerY = @DesktopHeight / 2 $radius = 100 $i = 0 While 1 MouseMove($centerX + ($radius * Cos($i)), $centerY + ($radius * Sin($i)),0) $i += 0.55 Sleep(10) WEnd While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc GUYS I DID IT, ARENT YOU PROUD OF ME? MY FIRST SCRIPT! Link to comment Share on other sites More sharing options...
kylomas Posted January 25, 2016 Share Posted January 25, 2016 Quote GUYS I DID IT, ARENT YOU PROUD OF ME? MY FIRST SCRIPT Yes, actually, why all the whining at first? jasondd95 1 Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Developers Jos Posted January 25, 2016 Developers Share Posted January 25, 2016 That wasn't too hard now was it. So the lesson for today: Stop the begging and start learning so you can get it done yourself. Jos mLipok 1 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...
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