Page 1 of 1

Dealing with child windows - May 17 zip

Posted: Tue May 18, 2004 11:03 am
by BrainDeath
Latest zip broke my tradeskill macro :(

I've figured it out, but before I go to the trouble of fixing it, I just wanted to make sure MQ2 is working as intended.

For example, the way I was checking before to make sure that the name of the enviro I had opened was what was expected i was using:

${Window[TradeskillWnd].Child[ContainerName].Text}

With the most recent zip, I can only find this info by using:

${Window[tradeskillwnd].Child[combw_rightsidearea].Child[combw_containerarea].Child[containername].Text}
or
${Window[tradeskillwnd].Child[combw_rightsidearea].Child[combw_containerarea].Child[combw_containername].Text}

Of course the same applies to all the buttons, lists, etc.

While I am sure this is technically accurate, I just wanted to make sure this was the expected behavior before I modified my macro.

I was also wondering which it would be better to use for people with custom UIs.

Thanks!

Posted: Tue May 18, 2004 2:48 pm
by Lax
Hmmmm I'll have the get child function check children for children too, right now its only looking for siblings, and thats what the issue you're seeing is

Posted: Thu May 20, 2004 3:12 pm
by BrainDeath
Lax,

Dumbass that I am, I did manage to figure out I only needed to go down 1 level as in :

${Window[COMBW_ContainerArea].Child[COMBW_ContainerName]}

But I went ahead and updated all the Window references and /notify statements in my macro to get it working again. So I don't know that any change to MQ2 is needed unless it's just not functioning the way you intended.

And if I haven't said it before, kick ass job on all the changes you (and the other developers) have made as well as the speed with which you get updates out. :D