Örnek - close an application window after it's been idle X minutes?
Şöyle yaparız
#Requires AutoHotkey v1.1
#Persistent ; keeps the script permanently running
SetTimer, close_connection_window, 60000 ; 1 minute timer
return
close_connection_window:
If WinExist("title of the connection window")
time++ ; checks the number in the variable "time" and increases it by 1 every 1 minute (in accordance with the timer period)
else
time := 0 ; reset
If (time = 15) ; 15 minutes
{
WinClose, title of the connection window
time := 0 ; reset
}
return
Örnek - replace keys
Sadece Discord içinde Shift + Del'e basınca Ctrl + X olsun istersek şöyle yaparız
#IfWinActive ahk_exe Discord.exe
+Del::^x
Hiç yorum yok:
Yorum Gönder