| View previous topic :: View next topic |
| Author |
Message |
Akize
Joined: 16 Jan 2006 Posts: 34
|
Posted: Wed May 30, 2007 9:38 am Post subject: IfWin supported multiple paramaters |
|
|
e.g. IfWinActive (ahk_class class1 || ahk_class2)
It'd save me a lot of else ifwin- statements. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Wed May 30, 2007 9:56 am Post subject: |
|
|
| 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 |
|
 |
Akize
Joined: 16 Jan 2006 Posts: 34
|
Posted: Wed May 30, 2007 9:58 am Post subject: |
|
|
i r stoopid, k?
thx
While you're here, is there a way to template a hotkey?
e.g. replace all ^#'s with !#'s. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Wed May 30, 2007 4:13 pm Post subject: |
|
|
Find and replace? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Guest
|
|
| Back to top |
|
 |
|