AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Title changes, how to met with this problem

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
vdongen



Joined: 08 May 2005
Posts: 41
Location: Jakarta, Indonesia

PostPosted: Mon Jan 22, 2007 6:24 am    Post subject: Title changes, how to met with this problem Reply with quote

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
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Mon Jan 22, 2007 6:45 am    Post subject: Reply with quote

At the top of your script:
Code:
SetTitleMatchMode,2
return


And when you want to refer to Thunderbird:
Code:
WinWait, - Thunderbird
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Mon Jan 22, 2007 10:47 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group