Sign in to follow this  
Followers 0
pipobona

How to change a windowname/caption

7 posts in this topic

Hi all,

Maybe this is a newbie question but how to change the name of a window/caption of an external program like winzip or something else that isn't written in auto it.

thanks in advance

Share this post


Link to post
Share on other sites



Hi all,

Maybe this is a newbie question but how to change the name of a window/caption of an external program like winzip or something else that isn't written in auto it.

thanks in advance

Lookup WinSetTitle in the help file.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Lookup WinSetTitle in the help file.

this doesn't work

Share this post


Link to post
Share on other sites

this doesn't work

It works for me, remember it will only work in active windows.

Show us what you tried.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Hmm, I believe it will also work on windows that aren't necessarily active.

Here's some code that renames the Calculator window (it works!):

Run('Calc')
WinWait('Calculator')
WinSetTitle('Calculator', '', 'Klackulator')

Share this post


Link to post
Share on other sites

Hmm, I believe it will also work on windows that aren't necessarily active.

Here's some code that renames the Calculator window (it works!):

Run('Calc')
WinWait('Calculator')
WinSetTitle('Calculator', '', 'Klackulator')
By active I mean the program must be running. It cannot be renamed so that it will always start with a new title.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

By active I mean the program must be running. It cannot be renamed so that it will always start with a new title.

Thank you all , When I implented the winwait part it worked! B)

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  
Followers 0