Problem gettting child window names.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mtcad
Newbie
Posts: 1
Joined: Thu Aug 14, 2003 5:39 pm

Problem gettting child window names.

Post by mtcad » Thu Aug 14, 2003 5:52 pm

The problem is centered around a macro I am trying to create for game play.

The initial game window itself does have a name, when I try and find it using "view system window" it is listed under (number) - "IME Default". To get the macro to find the initial game window I use:

Remark>Get Window
GetActiveWindow>window_title,x,y
Add>x,1
Add>y,1
MouseMove>%x%,%y%
LClick


This works and I get the initial game window. However, that only gets me the main window, if I open pack or want to use a toolbar, which I beleive to be a child window it does not work.

I have tried sending ASCII, charater/text, Send>, movemouse>...none of which seems to work in the "other" windows.

I have also tried to use "code" from this site to get the chicl window but the message that gets returned is 0,0 and no child window name.

Any suggestions?

Thanks in advance.

Lumumba

Post by Lumumba » Fri Aug 15, 2003 11:57 am

OK, remember

a) you've meet a group of girls last night
b) but you can't remember your favourites name.

How would you descripe her?
Buddy, I've meet a girl without a name ... :roll:
Guess no.
Buddy I've meet a girl with nice blonde/brown/black hair and a tiny little nose. :wink:

That's the way it is with windows!
No name to detect, but their appearance should be different enough to descripe/handle them with GetPixelColor>, WaitPixelColor>

Just an assumption :)

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Re: Problem gettting child window names.

Post by Captive » Sun Aug 17, 2003 1:35 am

Set GAW_TYPE to 1.
The help file says:
"If GAW_TYPE is set to 1 (default is 0) this command will retrieve information about the active child window of the active foreground window. For default behaviour set GAW_TYPE back to 0."

Remark>Get Window
Let>GAW_TYPE=1
GetActiveWindow>window_title,x,y
Let>GAW_TYPE=0
Add>x,1
Add>y,1
MouseMove>%x%,%y%
LClick

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