Child Window Capture

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Child Window Capture

Post by kpassaur » Tue Jan 25, 2005 12:26 am

I am having a little difficulty capturing a child Window

The Window's name always changes, however the "Result" in the script below always brings back what I think is the proper name of the Window.

SetFocus>GoldMine*
GetControlText>GoldMine*,GMRecord,1,Result
MDL>%Result%

//////The part above always returns the name on the top of the Window I am trying to Set Focus to. The name is always in the %Result% variable/////////

/Let>WF_TYPE=3
Setfocus>%Result%*
GetactiveWindow>wname,x,y
/Setfocus>%wname%*
MDL>%wname% %x% %y%


When I view system Windows I get the following:

7537198 - GMRecord "Martin Specie"

When I run the above script Martin Specie is what is shown in the first Message box so the *Result* is showing the name of the Window: however, I need the x,y so I can capture info in the box.
Any ideas on what I am doing wrong?

Thanks in advance

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