Code: Select all
#IfWinActive They Are Billions
#If (gameon = True)
{
Tab::MsgBox "gameone is true"
}
#if
#IfWInactive
\::gameon := !gameon
Code: Select all
#IfWinActive They Are Billions
#If (gameon = True)
{
Tab::MsgBox "gameone is true"
}
#if
#IfWInactive
\::gameon := !gameon
Code: Select all
#If (gameon = True) && WinActive("They Are Billions")
Tab::MsgBox "gameone is true"
#If
Well, there is no both in this case, since we only have #If - and the function WinActive(), but no #IfWinActive directive, which are different things.