Code: Select all
!+a:: ; SHIFT+ALT+a
If WinExist("Message Center Main@thinkorswim")
{WinActivate ;
}
Return
Is there a way to accomplish this in AHK?
Code: Select all
!+a:: ; SHIFT+ALT+a
If WinExist("Message Center Main@thinkorswim")
{WinActivate ;
}
Return
Code: Select all
#IfWinExist Message Center Main@thinkorswim
!+a:: ; ALT+SHIFT+a
If WinActive(wTitle := "Message Center Main@thinkorswim")
WinMinimize
Else WinActivate, %wTitle%
Return
#IfWinExist
Code: Select all
ontoptoggle:=false
!+a:: winset, % (OnTopToggle:=!OnTopToggle)? "Top" : "Bottom", , Message Center Main@thinkorswim
In addition, this sub-command may have no effect due to the operating system's protection against applications that try to steal focus from the user (it may depend on factors such as what type of window is currently active and what the user is currently doing).
Thanks, that works.mikeyww wrote: ↑14 Jun 2021, 10:32Code: Select all
#IfWinExist Message Center Main@thinkorswim !+a:: ; ALT+SHIFT+a If WinActive(wTitle := "Message Center Main@thinkorswim") WinMinimize Else WinActivate, %wTitle% Return #IfWinExist
Code: Select all
!+a:: ; ALT+SHIFT+a
If WinActive(wTitle := "Message Center Main@thinkorswim")
WinMinimize
Else WinActivate, %wTitle%
Return
Code: Select all
!+a:: ; ALT+SHIFT+a
If WinActive(wTitle := "Message Center Main@thinkorswim")
WinMinimize
Else WinActivate, %wTitle%
Return