Sign in to follow this  
Followers 0
myspacee

Move mouse after idle time

2 posts in this topic

Hello,
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
    Sleep(10)

    $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);
 WEnd

 Func CloseMe()
    Exit;
EndFunc

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

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