How Do I Get Window Name?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
shamigc
Junior Coder
Posts: 37
Joined: Wed Oct 22, 2003 11:38 am
Location: Monterrey, Mexico

How Do I Get Window Name?

Post by shamigc » Sun Apr 03, 2005 5:07 pm

Hi,

I want to develop a macro that needs the window name of a windows explorer window. I going to have windows explorer opened inside the path "My Documents\Encore", in any subdirectory inside of it, and I want to know the exact path, using its title window name. I have used the following command:

FindWindowWithText>My Documents\Encore,1,WindowName

The problem I have is that "WindowName" always have "NOT FOUND", How can I solve this?

Thanks,
Salvador Hernandez
Thanks,
Salvador Hernandez

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sun Apr 03, 2005 9:44 pm

I may be misunderstanding your problem, but I think you want to do something like this to get the name of the window. The name of the window is usually the name of the current address.

In Windows Explore, do the following.
View, Toolbars, AddressBars should be checked YES.
Press CTL-Home, Tab to go the address bar and it will be highlighted.
Press CTL-C to copy to clipboard.
Use GetClipboard> to create a variable, and put the path where you need it
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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