Jeffbg123 Posted April 5, 2007 Posted April 5, 2007 (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 April 5, 2007 by Jeffbg123
PsaltyDS Posted April 5, 2007 Posted April 5, 2007 Jeffbg123 said: Hey, I'm new to AutoIT, just trying to get the hang of things. I have two simple questions if you wouldn't mind. Thanks1. 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.-JeffAutoIT 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(). 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
Shevilie Posted April 5, 2007 Posted April 5, 2007 If you open them one by one, you can get their handles and then you shouldn't have to worry about the names anymore 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now