kalayaan Posted November 11, 2004 Share Posted November 11, 2004 hi all, is there a way to tag particular windows so that even if they change titles, autoit can still identify them and work with them? an example would be internet web browser windows that change title when a new page is loaded. thanks for any help. Link to comment Share on other sites More sharing options...
scriptkitty Posted November 11, 2004 Share Posted November 11, 2004 (edited) there are a few, each one has its own identifier. $x=WinGetHandle ( "AutoIt Forums","") msgbox(1,"",$x) You can also use the "classname=" if you only have one of that program running, it should show in the autoit window spy Edited November 11, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
kalayaan Posted November 11, 2004 Author Share Posted November 11, 2004 thanks very much Link to comment Share on other sites More sharing options...
CyberSlug Posted November 11, 2004 Share Posted November 11, 2004 (edited) Another example: Opt("WinTitleMatchMode", 4);advanced mode that supports handles $h = WinGetHandle("Some Window Title") WinSetTitle("handle=" & $h, "", "New Title") WinSetTitle("handle=" & $h, "", "Another New Title") Edited November 11, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
scriptkitty Posted November 11, 2004 Share Posted November 11, 2004 yea, or change the one you have up: sleep(1000) $title=WingetTitle("","") Opt("WinTitleMatchMode", 4);advanced mode that supports handles $h = WinGetHandle($title) WinSetTitle("handle=" & $h, "", "New Title") sleep(1000) WinSetTitle("handle=" & $h, "", "Another New Title") sleep(1000) WinSetTitle("handle=" & $h, "",$title) AutoIt3, the MACGYVER Pocket Knife for computers. 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