Untitled
unknown
plain_text
a year ago
547 B
12
Indexable
#Persistent
toggle := false ; Start with script off
F2:: ; Press F2 to toggle
toggle := !toggle
if (toggle) {
SetTimer, SendMessage, 500 ; Run every 10 seconds (500 ms)
ToolTip, Auto-message: ON
} else {
SetTimer, SendMessage, Off ; Stop sending
ToolTip, Auto-message: OFF
}
SetTimer, RemoveToolTip, -1000 ; Hide tooltip after 1s
return
SendMessage:
IfWinExist, ahk_exe Discord.exe
{
Send, 1{Enter}
}
return
RemoveToolTip:
ToolTip
return
Editor is loading...
Leave a Comment