| View previous topic :: View next topic |
| Author |
Message |
fogus
Joined: 28 Mar 2007 Posts: 28
|
Posted: Tue Jun 26, 2007 5:16 am Post subject: #ifWinActive, ahk_class X or ahk_class Y <---not working |
|
|
I cannot find the syntax for this. Can someone please help me?
Sorry for being me.
~fogus |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Tue Jun 26, 2007 5:19 am Post subject: |
|
|
GroupAdd _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Tue Jun 26, 2007 10:04 am Post subject: |
|
|
Yes, use groups, or SetTitleMatchMode RegEx and
#ifWinActive ahk_class X|Y |
|
| Back to top |
|
 |
fogus
Joined: 28 Mar 2007 Posts: 28
|
Posted: Tue Jun 26, 2007 5:46 pm Post subject: |
|
|
So, would I do:
| Code: |
SetTitleMatchMode 2
;GROUPS
GroupAdd, explorer, AHK_CLASS ExploreWClass
GroupAdd, explorer, AHK_CLASS CabinetWClass
#ifWinActive, explorer
|
or would it be #ifGroupActive? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Tue Jun 26, 2007 6:08 pm Post subject: |
|
|
that looks right - did you try it? _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
fogus
Joined: 28 Mar 2007 Posts: 28
|
Posted: Tue Jun 26, 2007 6:26 pm Post subject: |
|
|
| Just did. Nothing happens. I think its waiting for a window called "explorer", rather than any of the windows in my group. What is the syntax for a group? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Tue Jun 26, 2007 6:29 pm Post subject: |
|
|
ah... ahk_group explorer
I should have caught that. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
fogus
Joined: 28 Mar 2007 Posts: 28
|
Posted: Tue Jun 26, 2007 6:41 pm Post subject: |
|
|
Works. Thanks tons.
Still learning over here... |
|
| Back to top |
|
 |
|