Jump to content
Sign in to follow this  

Move mouse after idle time

Recommended Posts


i've a problem with an old server. Every time it reboot wait in sleep mode.
Assistence, update bios, deactivate S3, power manage. Nothing work.

In this state machine wait for user input, then, reboot normally.

I've write this :

Global $i = 0;

HotKeySet('{ESC}', 'CloseMe');

TrayTip('To close:', 'Press ESC to stop', 30)

While 1

    $i = $i + 1;

    $s = Round(sin($i/5)*5);
    $c = Round(cos($i/5)*5);

    $m = MouseGetPos();

    MouseMove($m[0]-$s, $m[1]+$c, 0);

 Func CloseMe()

this move continuously mouse in circle.

I want to implement mouse movements only after 10 minutes if user input is not given.

Please, can you help me?


thank you,

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.