Jump to content
Sign in to follow this  
pipobona

How to change a windowname/caption

Recommended Posts

pipobona

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
BigDod

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
pipobona

Lookup WinSetTitle in the help file.

this doesn't work

Share this post


Link to post
Share on other sites
BigDod

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
LxP

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
BigDod

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
pipobona

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  

×

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.