Detecting child window

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Detecting child window

Post by rullbandspelare » Sat Sep 21, 2013 3:09 pm

I whant to trigger on a child window being opened.
If I open Notepad and choose "Save As" , this code triggers no matter what I put as Let>WF_TYPE=
Let>WF_TYPE=0 triggers also.
Have I missunderstood it? I thought that "Save As" was a child window. and putting Let>WF_TYPE=0 would not couse a trigger.

Code: Select all

Let>WF_TYPE=3
WaitWindowOpen>Save As
MessageModal>Child Window is open

I am using V14.0.14

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Post by CyberCitizen » Mon Sep 23, 2013 2:22 am

I Just Confirmed This As Well In v14.0.14.

If The Save As Window Is Indeed A Child Window, Then Yes It Shouldn't Fire.

Hopefully Marcus Can Throw In Some Input Here.
FIREFIGHTER

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Sep 23, 2013 2:27 pm

Notepad's Save As is a top level window owned by the operating system. So not a child windo. It's a system dialog.

If you look under Tools/View System Windows you will see the Save As window at the top level. Not beneath Notepad, and in fact likely nowhere near it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Post by rullbandspelare » Tue Sep 24, 2013 5:15 am

Ahhhh!

I thought a child window was a window that could not exist without its parent.

Good tip to look in the System Windows!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts