Max in montreal Posted November 11, 2007 Share Posted November 11, 2007 so i have a window opened, location 0,0. in the title of this window therwe is a number in brackets, lets say (12345). another window, i want to click the mouse, until the same number apears in that second windows title... so basically something like; does this new window have (12345) in the title... Link to comment Share on other sites More sharing options...
Nahuel Posted November 11, 2007 Share Posted November 11, 2007 and the problem is...? Link to comment Share on other sites More sharing options...
Max in montreal Posted November 11, 2007 Author Share Posted November 11, 2007 (edited) i trying to figure out how i can compare 2 titles. first title is something like "abcdef(max 12345)", and the second one is "max 12345" the complete title of the second window must be part of the first window title, to get out of my loop. I guess i am asking for a simple example on how to do this; if part of the title of window located at 0,0 is the complete title of window located at 400,400 exit loop thanks in advance! Edited November 11, 2007 by Max in montreal Link to comment Share on other sites More sharing options...
Generator Posted November 11, 2007 Share Posted November 11, 2007 WinTitleMatchMode Alters the method that is used to match window titles during search operations.1 = Match the title from the start (default)2 = Match any substring in the title3 = Exact title match4 = Advanced mode, see Window Titles & Text (Advanced)-1 to -4 = force lower case match according to other type of match. Link to comment Share on other sites More sharing options...
Max in montreal Posted November 11, 2007 Author Share Posted November 11, 2007 (edited) now how do you find the title of the window located at 0,0? im looking at the example in the help; $title = WinGetTitle("Untitled -", "") but i need to do it by location... can we translate this into auto it code.. get the title of the window that is located at 0,0, and put it into a variable called $table1 Edited November 11, 2007 by Max in montreal Link to comment Share on other sites More sharing options...
Generator Posted November 11, 2007 Share Posted November 11, 2007 Maybe... $List=WinList() For $i=1 to $List[0][0] If _WinIsVisible($List[$i][0],"") Then $Pos=WinGetPos($List[$i][1],"") If $Pos[0]=0 and $Pos[1]=0 Then $table1=$List[$i][0] EndIf EndIf Next Func _WinIsVisible($Title, $Text="") Return BitAND(WinGetState($Title, $Text), 2) EndFunc Link to comment Share on other sites More sharing options...
Max in montreal Posted November 11, 2007 Author Share Posted November 11, 2007 WinGetTitle ( "title" [, "text"] )should be WinGetTitle ( "title" [, "text"], x,,y ) where the x, and y is optional...no? Link to comment Share on other sites More sharing options...
Generator Posted November 11, 2007 Share Posted November 11, 2007 Try the loop first... A Combination would be WinGetTitle() and WinGetPos() Link to comment Share on other sites More sharing options...
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