Code: Select all
#If WinActive("Google Docs ahk_class Chrome_WidgetWin_1", Tweaks)
!q::
; find the browser
browser = none
If winactive("ahk_exe msedge.exe")
{
browser = Edge
; msgbox u're on edge
}
If winactive("ahk_exe chrome.exe")
{
browser = Chrome
; msgbox u're on Chrome
}
If browser = none
{
msgbox ahk doesn't recognized the browser
}
Return
#If ; reset winactive