Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #Persistent
- SetTitleMatchMode, 2
- DetectHiddenText, On
- DetectHiddenWindows, ON
- ; ------------------------------------------------------------------------
- ; This is the USER CHANGE VARIABLE SECTION --- USER CHANE THE LINE BELOW -
- ; Enter in seconds (1000 = 1 second) delay before screensaver begins. ----
- Time_to_start := 5000 ;Default is 5 minutes (50000) -----------------
- ; The rest below shouldn't be changed unless you know what you are doing.-
- ; ________________________________________________________________________
- ;MsgBox, Current Working Directory:`n %A_ScriptDir%
- ;OldWD = %A_ScriptDir%
- SetTimer, SSTimer, 1000 ; Check to see when you are idle
- Return
- SSTimer:
- If A_TimeIdle >= %Time_to_start% ; Start Desktop ScreenSaver after idle Time of XX sec
- {
- If WinExist("ahk_exe DesktopHut.exe")
- {
- ; Sleep
- }
- else
- {
- Run, DesktopHut.exe, D:\Arcade\System roms\Utility\DHut\, Min
- ;Run, D:\Arcade\System roms\Utility\DHut2\DesktopHut.exe, ,Min
- Sleep, 500
- Send #d
- MsgBox, The screen Saver is now ON `n %ErrorLevel% `n %A_LastError%
- }
- }
- If A_TimeIdlePhysical < 100 ; Stop VLC
- {
- If WinExist("ahk_exe DesktopHut.exe")
- {
- Process, Close, DesktopHut.exe
- SoundBeep
- Send #d
- }
- else
- {
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement