I have a script that imports images from Powerpoint or Word, depending on the hotkey.
But if I enter the key to import from PPT and Word is not open, ComObjActive triggers an error.
Is it possible do avoid the display of this error?
How to determine if Word is open? Topic is solved
How to determine if Word is open?
--
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Re: How to determine if Word is open? Topic is solved
- Two ideas are:
- if WinExist("ahk_class OpusApp") ;MS Word
- A try/catch block:
Try - Syntax & Usage | AutoHotkey
https://autohotkey.com/docs/commands/Try.htm
- if WinExist("ahk_class OpusApp") ;MS Word
- A try/catch block:
Try - Syntax & Usage | AutoHotkey
https://autohotkey.com/docs/commands/Try.htm
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: How to determine if Word is open?
Thank you, jeeswg, that did the trick!
--
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Who is online
Users browsing this forum: mikeyww and 129 guests