Trouble Closing IE Browser with PXV as Reader

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wideeyedguy
Posts: 60
Joined: 11 Feb 2016, 11:49

Trouble Closing IE Browser with PXV as Reader

11 Apr 2017, 16:52

Need suggestions on how to Close (Ctrl-W; Alt-F4) an Internet Explorer window when PDF Xchange Viewer is active as the browser PDF reader.

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
as expected for an IE window, yet this is with Xchange Viewer active with a document in the GUI. There doesn't seem to be any other unique identifier except for ".pdf" in the Title.

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
This hotkey will work for closing the desktop Xchange Viewer program (sans-browser):

Code: Select all

#IfWinActive PDF-XChange Editor
`:: WinClose
Suggestions on what to try?

Thank you,
weg
I say this optimistically . . . One day I'll understand it.
But today is not that day!
wideeyedguy
Posts: 60
Joined: 11 Feb 2016, 11:49

Re: Trouble Closing IE Browser with PXV as Reader

13 Apr 2017, 06:09

Anything I can add here or clarify that would inspire some help?

Thank you,
weg
I say this optimistically . . . One day I'll understand it.
But today is not that day!
wideeyedguy
Posts: 60
Joined: 11 Feb 2016, 11:49

Re: Trouble Closing IE Browser with PXV as Reader

21 Apr 2017, 12:39

Bump
I know this is not too difficult for the experts here.
Perhaps I left out a detail or two.

weg
I say this optimistically . . . One day I'll understand it.
But today is not that day!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, mikeyww and 315 guests