Sign in to follow this  
Followers 0
vini

As A Complete Noob, How Would I Simlate The Mouse?

6 posts in this topic

Im just after something that will move the mouse every hour or so (about a centimeter) to stop the screen powering down/screensaver coming on.

I will schedule the .exe to run every hour, so how would i move the mouse <----> this far?

Share this post


Link to post
Share on other sites



Im just after something that will move the mouse every hour or so (about a centimeter) to stop the screen powering down/screensaver coming on.

I will schedule the .exe to run every hour, so how would i move the mouse <----> this far?

Lookup MouseMove and sleep in the help file.

BTW - This is not the correct forum to ask for support.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Lookup MouseMove and sleep in the help file.

BTW - This is not the correct forum to ask for support.

ive read the helpfile and got to:

;
; AutoIt Version: 3.0
;
; Script Function:
;   move the mouse.
;

MouseMove ( 10, 10 [, 10] )


; Finished!

but i get an error.

mods please move this to the right folder, apologies.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

$Timer = TimerInit()
While 1
    If TimerDiff($Timer) / 1000 / 60 >= 60 Then
        MouseMove(10, 10)
        $Timer = TimerInit()
    EndIf
    Sleep(1000)
WEnd
Edit:

Forgot a 'f'

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

ive read the helpfile and got to:

;
; AutoIt Version: 3.0
;
; Script Function:
;   move the mouse.
;

MouseMove ( 10, 10 [, 10] )
; Finished!

but i get an error.

mods please move this to the right folder, apologies.

Why don`t you just turn off the screensaver and change the power settings?

Check out this great tutorial/demo for Autoit: http://www.autoitscript.com/forum/index.php?showtopic=21048


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

the screensaver is off and the power settings are set to never switch the monitor/hdd off. but with it being windows 2000 and on a domain, im not sure, but its locking out after so much inactivity.

we display a static image on the screen and there is no keyb/mouse on the machine itself.

anyway, ive nailed it, so thank you all for your help! much appreciated.

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