Jump to content

Identify window it changes title


Recommended Posts

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 post
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 post
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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...