Working with Child Windows

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
delta1
Junior Coder
Posts: 26
Joined: Wed Dec 16, 2009 11:23 pm

Working with Child Windows

Post by delta1 » Sun Jan 23, 2011 6:55 pm

Hi, I am trying to make a button bar to quickly switch between specific child windows in my application.
I have no problem opening the desired child window with keystroke commands but what I would like to do is check to see if it already exists then just set focus. I tried to use FindWindowWithText and GetWindowList but they only work with top level windows. Any other ideas? Thanks.
Rob

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

Post by idiot » Wed Jan 26, 2011 2:12 am

well if the windows are already open use could use vk_keys to hit alt+tab to bring up the menu for the windows and just tab to desired window or you could just make a simple mouse click if teh windows are in certain order everytime on task bar to click between them or even more complex use image recognition to see wich window is wich on task bar and you can use wait key down event when a certain key is hit switches to the desired window something like that lol hope these ideas help
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

delta1
Junior Coder
Posts: 26
Joined: Wed Dec 16, 2009 11:23 pm

Post by delta1 » Fri Jan 28, 2011 3:23 pm

Thanks. I will try that.
Rob

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