AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Move mouse stop exe

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Bob
Guest





PostPosted: Mon Aug 09, 2004 7:18 am    Post subject: Move mouse stop exe Reply with quote

Hotkey can do a mouse move and stop a program and maybe 15 mins later start it again ?
I have a few exe files that would make nice screensavers .
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Mon Aug 09, 2004 12:04 pm    Post subject: Reply with quote

Someone once mentioned that you can simply rename an EXE to have a .SCR extension and then use it as a screen saver -- though it probably needs to have certain design features to make sure it behaves correctly, i.e. that it turns itself off when the user returns (but maybe the OS does this automatically by telling the screensaver window to close).

As an alternative, something that should help to make your own screensavers is to use the A_TimeIdle variable (not supported in Windows 9x). For example:
Code:
#Persistent
SetTimer, WatchForUserIdle, 30000  ; i.e. check every 30 seconds.
return  ; End of auto-execute section (top part).

WatchForUserIdle:
; If last keystroke or mouse event was less than 10 minutes ago, do nothing.
if A_TimeIdle < 600000  ; See help file for alternative: A_TimeIdlePhysical
     return
; Otherwise, the computer appears to be idle.  Launch screensaver.
; But also watch for the user to return:
Run, MyScreenSaver.exe
SetTimer, WatchForUserReturn, 1000  ; Check more often to be responsive.
SetTimer, WatchForUserIdle, off
return

WatchForUserReturn:
if A_TimeIdle > 60000  ; User is still idle
     return
; Otherwise, user has returned:
SetTimer, WatchForUserReturn, off
SetTimer, WatchForUserIdle, on
; And if necessary, do something here to stop your screen saver
; (depending on how it's designed, it might stop on its own).
return


Also of interest is that Rajat made this nifty custom screen saver script.
Back to top
View user's profile Send private message Send e-mail
Bob
Guest





PostPosted: Mon Aug 09, 2004 12:38 pm    Post subject: Reply with quote

Thank you I will give it a shot after I get some sleep .. lol
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group