Sign in to follow this  
Followers 0
PantZ4

WinGetTitle return more then one window.

5 posts in this topic

I'm trying to make WinGetTitle to work with multi windows with same substring of a title.

Example:

I have one window called : Arto - blah blah blah.

Now I open another Arto window.

Heres the problem. WinGetTitle will only return one window.

I have tried to loop thougth but it always counts the same window.

Is there a option to make the function not to count the same window?

Thank you :whistle:

Share this post


Link to post
Share on other sites



Åbn hjemmesiderne igennem autoit (læs om IE.au3) Det vil spare dig for en hel del


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

#3 ·  Posted (edited)

Åbn hjemmesiderne igennem autoit (læs om IE.au3) Det vil spare dig for en hel del

Well the problem there is the user can open a window with Arto thougth Start Menu and the my program will not get the window.

Besides I'm not using Internet Explore, it's for Firefox.

My program functions:

1. Will make a tooltip in upper left cornor. Which tell you to place the mouse here to "hide" all windows with "arto" in there titlebar.

2. Wait untill the user places the mouse there.

3. If the user places hes mouse there, give the order to find all the windows with "Arto" in titlebar and WinSetState them to @SW_HIDE.

~The problem is that WinGetTitle will only return one window.

4. Now waits to the user place the mouse again in left cornor.

5. Now show them all again.

I have done it all and it works, but only with one window...

Edited by Mr. Zero

Share this post


Link to post
Share on other sites

look up WinList()

Good luck!

Share this post


Link to post
Share on other sites

look up WinList()

Good luck!

Never thought of that. It works! Thank you! :whistle:

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