AutoHotkey Community

It is currently May 24th, 2012, 3:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: January 22nd, 2007, 7:24 am 
Offline

Joined: May 8th, 2005, 12:28 pm
Posts: 41
Location: Jakarta, Indonesia
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2007, 7:45 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
At the top of your script:
Code:
SetTitleMatchMode,2
return


And when you want to refer to Thunderbird:
Code:
WinWait, - Thunderbird


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 22nd, 2007, 11:47 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Or to be sure to match only at the end of the title:
Code:
SetTitleMatchMode RegEx
WinWait - Thunderbird$ ; $ means: at end of string

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: azure, BrandonHotkey, DetroitAutoHotkey, engunneer, Pulover and 27 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group