vini Posted March 22, 2006 Posted March 22, 2006 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?
BigDod Posted March 22, 2006 Posted March 22, 2006 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
vini Posted March 22, 2006 Author Posted March 22, 2006 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.
Moderators SmOke_N Posted March 22, 2006 Moderators Posted March 22, 2006 (edited) $Timer = TimerInit() While 1 If TimerDiff($Timer) / 1000 / 60 >= 60 Then MouseMove(10, 10) $Timer = TimerInit() EndIf Sleep(1000) WEndEdit: Forgot a 'f' Edited March 22, 2006 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.
Lakes Posted March 22, 2006 Posted March 22, 2006 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.
vini Posted March 22, 2006 Author Posted March 22, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now