Jump to content
Sign in to follow this  
kalayaan

Identify window it changes title

Recommended Posts

kalayaan

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.

Share this post


Link to post
Share on other sites
scriptkitty

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 by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites
CyberSlug

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 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!

Share this post


Link to post
Share on other sites
scriptkitty

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.