Jump to content

Identify window it changes title


kalayaan
 Share

Recommended Posts

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

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.

Link to comment
Share on other sites

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!
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...