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 

Tab::... return --> Blocks IFWINACTIVE X $*Tab:: ...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 422
Location: Galil, Israel

PostPosted: Mon Apr 30, 2007 12:34 pm    Post subject: Tab::... return --> Blocks IFWINACTIVE X $*Tab:: ... Reply with quote

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
View user's profile Send private message
engunneer



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

PostPosted: Mon Apr 30, 2007 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue May 01, 2007 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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