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 

Bug in recent fix?

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



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Feb 18, 2005 11:18 pm    Post subject: Bug in recent fix? Reply with quote

The recent fix you made to prefixes (in which tilde hotkeys imply tildes on their prefix counterparts, and vice versa) has apparently caused a bug, or maybe I'm just missing something here:

Code:
space & tab::send,{backspace}

space & capslock::send,{enter}

*space::send,{space}


This being part of my old half-keyboard script. I recently noticed hotkeys like Alt + Space no longer work with it active, so I tried adding the asterisk. Instead of making it work with modifiers, it sent space twice as if it were a pass-through, and the really boggling part was that it didn't activate Alt+Space (it's universal for system menu), even though alt was being held down and spaces were sent.

With no directives, it merely activates the menubar on Alt+Space (as if just Alt were sent). This isn't unusual, though.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Feb 19, 2005 1:17 am    Post subject: Reply with quote

I tried the above with some old versions, as far back as 1.0.12. Alt+Space doesn't appear to work on any version. Do you know for certain that it worked on an old version?

In any case, adding the following line appears to be a work-around:
LAlt & Space::Send {Alt Down}{Space}

The reason it behaves this way is that normal (non-tilde) prefix keys, such as Space in these examples, are suppressed (hidden from the system) even if a modifier such as Alt is down when they are pressed. The other part of the cause is probably that "Send {Space}" will probably put the Alt key into the up position before sending the space character. This is because "Send" is unaware that it's being used inside a wildcard hotkey.
Back to top
View user's profile Send private message Send e-mail
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sat Feb 19, 2005 3:23 am    Post subject: Reply with quote

No, I've only tried it with this version. Thanks for clarifying the behavior of Send, I'll use the work-around you mentioned for that and any other space hotkeys I need.
Back to top
View user's profile Send private message
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