What I would like to do is have it so as soon as this window (and not any other popup, which is the hard part) shows up, I send {Tab}{Enter} so that I actually click OK and remain logged in to that program.
I have been testing this with a msgbox. I have
Code: Select all
#8::Msgbox This is a popup!
Code: Select all
Loop
{
WinWait, ahk_class #32770
Send {Tab}{Enter}
}
return
This is a problem, since many things that I work on pop up in my browser. I have to find a way to distinguish these popups from other popups. Any suggestions? I don't know the syntax to make this kind of pseudocode work:
Code: Select all
Loop
{
WinWait, ahk_class #32770
If title = Timeout Warning...
Send {Tab}{Enter}
Else
return
}
return