 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
vdongen
Joined: 08 May 2005 Posts: 41 Location: Jakarta, Indonesia
|
Posted: Mon Jan 22, 2007 6:24 am Post subject: Title changes, how to met with this problem |
|
|
In the header mention:
WinWait, Inbox - Thunderbird,
IfWinNotActive, Inbox - Thunderbird, , WinActivate, Inbox - Thunderbird,
WinWaitActive, Inbox - Thunderbird,
However, sometimes the application title is not "Inbox", but "Sent". How to have a header that activates any moment, but within Thunderbird?
Bart |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 2951 Location: Minnesota
|
Posted: Mon Jan 22, 2007 6:45 am Post subject: |
|
|
At the top of your script:
| Code: | SetTitleMatchMode,2
return |
And when you want to refer to Thunderbird:
| Code: | | WinWait, - Thunderbird |
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Mon Jan 22, 2007 10:47 am Post subject: |
|
|
Or to be sure to match only at the end of the title:
| Code: | SetTitleMatchMode RegEx
WinWait - Thunderbird$ ; $ means: at end of string
|
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|