Getting name of window that just opened

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
n0rm4l
Newbie
Posts: 8
Joined: Tue Nov 10, 2009 2:54 am

Getting name of window that just opened

Post by n0rm4l » Sun Aug 15, 2010 2:53 am

Hi, I am wondering how would I be able to get the name of the window that just opened? After I click something a window will pop up and I need to move it. Theres going to be a lot of windows with very similar names, but different names everytime that I can't predict. When the window pops up there is a good chance that it won't be the active window anymore.

So, I need to know how do I get the name of the window that just popped up so that when it's not the active window anymore, I can setfocus to it and move it.

Thanks

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Post by gdyvig » Sun Aug 15, 2010 6:06 pm

Hi nOrm41,

Here is what you want:

Code: Select all

GetActiveWindow>window_title,X,Y,Width,Height
MDL:Actve window title: %window_title%
MDL:Active window located at: X:%X% Y:%Y%
MDL:Active window size: Width:%Width% Height:%Height%
All of the parms are variables for the function to return information.


Gale

n0rm4l
Newbie
Posts: 8
Joined: Tue Nov 10, 2009 2:54 am

Post by n0rm4l » Mon Aug 16, 2010 1:18 am

Thank You!

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