Code: Select all
#Requires AutoHotkey v2.0
~::Send '{LButton}'
Code: Select all
#Requires AutoHotkey v2.0
~::Send '{LButton}'
Code: Select all
WinMove monLeft + n * winWidth - 250, monTop, winWidth, winHeight
Code: Select all
#Requires AutoHotkey v2.0
winTitle := 'ahk_exe Notepad.exe'
closeAfterMins := 60
SoundBeep 2500
WinWait winTitle
SoundBeep 1500
If !WinWaitClose(,, 60 * closeAfterMins) {
WinClose
SoundBeep 1000
DllCall('PowrProf\SetSuspendState', 'Int', 0, 'Int', 0, 'Int', 0) ; Sleep computer
}
ExitApp