Jump to content

Mouse move script,commanded from Gui


Recommended Posts

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...