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 

WinExist, regular expressions

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



Joined: 13 Sep 2007
Posts: 4
Location: Haiti

PostPosted: Thu Oct 11, 2007 3:55 pm    Post subject: WinExist, regular expressions Reply with quote

Consider the script:

SetTitleMatchMode 2
IfWinExist, OpenOffice.org Writer

...goes to THEN --as expected, since a window 'Untitled1 - OpenOffice.org Writer' exists (minimized), but

IfWinExist, OpenOff.*Writer

...goes to ELSE
why? is the substring 'ice.org ' not implied by the wildcard '.*'? Does IfWinExist ignore regular expressions?
Back to top
View user's profile Send private message
tonne



Joined: 06 Jun 2006
Posts: 1159
Location: Denmark

PostPosted: Thu Oct 11, 2007 4:51 pm    Post subject: Reply with quote

Code:
SetTitleMatchMode,RegEx

_________________
there's a dog barking close within the range of my ear
sounds like he wants to escape the chain
he would probably bite me to death if he could
but the chain lets me spit in his face

- Kashmir
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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