armoros Posted April 27, 2012 Share Posted April 27, 2012 With this script i want to move my mouse, so to prevent the screen saver when i see a movie etc. $Twitch = 0 While 1 $TwitchFactor = 100 + (200 * ($Twitch * -1)) MouseMove(MouseGetPos(0) + $TwitchFactor, MouseGetPos(1) + $TwitchFactor) Sleep(1 * 1000) ; 5sec delay $Twitch = Not $Twitch WEnd But i want to run this script from a gui that has a button that activates it and stop it or closes the Gui. So my prob is what function to use to give this order to a button...? Thank you for ant advice . [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
GPinzone Posted April 27, 2012 Share Posted April 27, 2012 (edited) Not to dissuade you from programming a solution, but this program works great: http://movemouse.codeplex.com/ Edited April 27, 2012 by GPinzone Gerard J. Pinzonegpinzone AT yahoo.com Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 27, 2012 Share Posted April 27, 2012 So my prob is what function to use to give this order to a button...?GUICtrlCreateButton - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
armoros Posted April 27, 2012 Author Share Posted April 27, 2012 Not to dissuade you from programming a solution, but this program works great: http://movemouse.codeplex.com/Thank you GPinzone that is very nice but as u commented i want something made by me for practicing..GUICtrlCreateButtonThank you too somdcomputerguy [font="verdana, geneva, sans-serif"] [/font] 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