Sometimes you want to make sure you do something to a window, but only the first time it pops
up... you don't want to make your changes repeatedly. The way I mark a window as "processed" is by
using WinGetTitle/WinSetTitle to add a space in front of the title... this automatically
directly makes #IfWinActive and such stop triggering. Or, use Alt+0143, since that is invisible
to the user. (you can add multiple ones as well, if needed)
; Add a prefix to a window's title so it no longer gets triggered by the same #IfWinActive's
PrefixTitle(hwnd, prefix)
{
WinGetTitle,title,ahk_id %hwnd%
title := prefix . title
WinSetTitle,ahk_id %hwnd%,,%title%
}
However, NOTE that if you use Prefix want to #IfWinActive off of the NEW