Jump to content

Recommended Posts

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
Posted

  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. 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
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...