Jump to content

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


vini
 Share

Recommended Posts

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?

Link to comment
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.


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

Link to comment
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.

Link to comment
Share on other sites

  • Moderators

$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

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.

Link to comment
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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...