as5bcr Posted January 15, 2007 Posted January 15, 2007 I`ve got a question. Can i close a window that I only know a part of its name? For example, let`s say I want to close a window called 123test456 but I only know that it has "test" in its name. How can i close it? I hope you understood what i want to say.
BALA Posted January 15, 2007 Posted January 15, 2007 (edited) From help file: AutoIt operates in one of four "Window matching" modes. The modes are set with the AutoItSetOption function using the WinTitleMatchMode option. Mode 1 (default) Matches partial titles from the start. In this mode the a window titled Untitled - Notepad would be matched by "Untitled - Notepad", "Untitled", "Un", etc. e.g. WinWait("Untitled") Edited January 15, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
as5bcr Posted January 15, 2007 Author Posted January 15, 2007 ok, i need to use this mode. Mode 2 Matches any substring in the title. In this mode a window titled Untitled - Notepad would be matched by "Untitled - Notepad", "Untitled", "Notepad", "pad", etc. e.g. WinWait("Notepad") how can i use it?
BALA Posted January 15, 2007 Posted January 15, 2007 (edited) "The modes are set with the AutoItSetOption function using the WinTitleMatchMode option." Edited January 15, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com
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