Sign in to follow this  
Followers 0
Jeffbg123

Moving Windows with the same name

3 posts in this topic

#1 ·  Posted (edited)

Hey, I'm new to AutoIT, just trying to get the hang of things.

I have two simple questions if you wouldn't mind. Thanks

1. How do I use winwait and winmove to move 4 windows that have the same title into different locations?

I tried using WinSetTitle and changing the titles as I opened them, but the titles just reverted back to the original.

2. How do I move a window that has no title? And for that matter, how do I move 4 windows that have no title into different positions?

Thanks again.

-Jeff

Edited by Jeffbg123

Share this post


Link to post
Share on other sites



Hey, I'm new to AutoIT, just trying to get the hang of things.

I have two simple questions if you wouldn't mind. Thanks

1. How do I use winwait and winmove to move 4 windows that have the same title into different locations?

I tried using WinSetTitle and changing the titles as I opened them, but the titles just reverted back to the original.

2. How do I move a window that has no title? And for that matter, how do I move 4 windows that have no title into different positions?

Thanks again.

-Jeff

AutoIT can match on both Title and visible Text in the window. That's the easiest way if the text differs.

For more complex matching you want to look in the help file for how to use Opt("WinTitleMatchMode", 4) and Window Handles with WinGetHandle() and WinList().

:shocked:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

If you open them one by one, you can get their handles and then you shouldn't have to worry about the names anymore :shocked:

WinGetHandle (If I remember correct)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0