I have a set of hotkeys which close various app windows when pressing the [Tilde / Accent] key by using #IfWinActive and the appropriate ahk_class or ahk_exe identifier. However, I've tried various combinations of Close type commands and #IfWinActive statements, but AHK just doesn't seem to like them.
Here is how WindowSpy shows the window:
Code: Select all
ahk_exe iexplore.exe
ahk_class IEFrame
Here are a few of the combinations that don't seem to want to work:
Code: Select all
#IfWinActive ahk_class IEFrame ; Has no effect for the Xchange Viewer in-browser window.
`:: WinClose
#IfWinActive .pdf ahk_class IEFrame ; When there is a PDF doc in the reader, yet this does not work.
`:: WinClose
#IfWinActive Internet Explorer ahk_class IEFrame ; Has no effect for the Xchange Viewer in-browser window.
`:: WinClose
Code: Select all
#IfWinActive PDF-XChange Editor
`:: WinClose
Thank you,
weg