Sign in to follow this  
Followers 0
armoros

Mouse move script,commanded from Gui

4 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not to dissuade you from programming a solution, but this program works great: http://movemouse.codeplex.com/

Edited by GPinzone

Gerard J. Pinzonegpinzone AT yahoo.com

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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..

Thank you too somdcomputerguy


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0