How to detect whether exist an active ms_word document Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
songdg
Posts: 583
Joined: 04 Oct 2017, 20:04

How to detect whether exist an active ms_word document

Post by songdg » 13 Oct 2020, 21:57

Currently I used ComObjActive("Word.Application") in a loop to detect whether an ms_word document has been closed, and want to know if there is a better way.

Rohwedder
Posts: 7672
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to detect whether exist an active ms_word document  Topic is solved

Post by Rohwedder » 14 Oct 2020, 05:26

Hallo,
perhaps:

Code: Select all

Process, WaitClose, WINWORD.EXE

songdg
Posts: 583
Joined: 04 Oct 2017, 20:04

Re: How to detect whether exist an active ms_word document

Post by songdg » 22 Oct 2020, 20:48

Rohwedder wrote:
14 Oct 2020, 05:26
Hallo,
perhaps:

Code: Select all

Process, WaitClose, WINWORD.EXE
Thank you very much, it works :bravo:

Post Reply

Return to “Ask for Help (v1)”