 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 422 Location: Galil, Israel
|
Posted: Mon Apr 30, 2007 12:34 pm Post subject: Tab::... return --> Blocks IFWINACTIVE X $*Tab:: ... |
|
|
If use Tab as hotkey (even if within IfWinActive block),
subsequent use of $*Tab within IfWinActive block does NOT get triggered with Tab.
remap of Tab in first block does NOT cause the same problm.
(have not tested with other keys. IF missed something in doc.. apolgies from the start. hope this report is clear enough to be understood)
"DOTHIS" is not done in this code,
| Code: |
(optional can add IFWINACTIVE for anything..)
Tab::
send {tab}
return
#IfWinActive, ahk_class #32770
$*Tab::
DOTHIS()
return
dothis() {
msgbox did this
}
return
|
but works great with this code
| Code: |
Tab::Tab
#IfWinActive, ahk_class #32770
$*Tab::
DOTHIS()
return
dothis() {
msgbox did this
}
return
|
_________________ Joyce Jamce |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Mon Apr 30, 2007 5:42 pm Post subject: |
|
|
It is not related to tab, it is related to *. I used this script:
| Code: |
#IfWinNotActive, Untitled - Notepad
Tab::
DOTHIS("Tab")
return
q::
DOTHIS("q")
return
#IfWinActive, Untitled - Notepad
$*Tab::
DOTHIS("$*Tab")
return
$*q::
DOTHIS("$*q")
return
dothis(code="") {
msgbox did this:%code%
}
return
|
If I remove the * it works fine.
EDIT:
I also tried to change the order of the code, just in case it was related to Variant (Duplicate) hotkeys (Reference)
| Code: |
#IfWinActive, Untitled - Notepad
$*Tab::
DOTHIS("$*Tab")
return
$*q::
DOTHIS("$*q")
return
#IfWinNotActive, Untitled - Notepad
Tab::
DOTHIS("Tab")
return
q::
DOTHIS("q")
return
dothis(code="") {
msgbox did this:%code%
}
return
|
No change, though. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue May 01, 2007 8:44 pm Post subject: |
|
|
I believe this has been fixed in today's v1.0.46.13: "Fixed hotkeys like *x to fire even when x is also a hotkey that is prevented from firing due to #IfWin."
Please let me know if you have any more problems with it, and thanks for reporting it. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|