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 

IfWin supported multiple paramaters

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



Joined: 16 Jan 2006
Posts: 34

PostPosted: Wed May 30, 2007 9:38 am    Post subject: IfWin supported multiple paramaters Reply with quote

e.g. IfWinActive (ahk_class class1 || ahk_class2)

It'd save me a lot of else ifwin- statements.
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Wed May 30, 2007 9:56 am    Post subject: Reply with quote

Code:
If WinActive("ahk_class class1") or WinActive("ahk_class c2")

_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Akize



Joined: 16 Jan 2006
Posts: 34

PostPosted: Wed May 30, 2007 9:58 am    Post subject: Reply with quote

i r stoopid, k?
thx Smile

While you're here, is there a way to template a hotkey?

e.g. replace all ^#'s with !#'s.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Wed May 30, 2007 4:13 pm    Post subject: Reply with quote

Find and replace?
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Wed May 30, 2007 6:45 pm    Post subject: Reply with quote

templates in c++
Back to top
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