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 

is there a way to make LWIN a Hostring EndChar?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Fri Jul 23, 2004 5:45 am    Post subject: is there a way to make LWIN a Hostring EndChar? Reply with quote

I've bound shift, capslock, ctrl, alt, and every other key. The only one i have left that is easily accessible is LWIN.


also, I wish there was a way to send characters even if the keys to those characters are bound to other functions

for instance in the following code I don't want the msgbox to appear

[::msgbox Interrupting Box Here
::mrH::Mr Hammer ===[] was here

i'd rather it draw the little hammer even though i use my left bracket key for another function. Yes i know there's a work around but I have about 15 of my alphanumeric keys switched around and i don't want to rebind them or use suspend (suspend is used for something else in my code). I kinda expected SendRaw to do this before i read about what it did.

Thanks
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Jul 23, 2004 1:25 pm    Post subject: Reply with quote

To prevent hotkeys from being fired by the Send command, make them into hook hotkeys. To do this, either put #UseHook at the top of the script or put a $ in front of each hotkey you want to be a hook hotkey.

For example:
$[::msgbox Interrupting Box Here

Questions about complex key bindings are always welcome. Usually there is an existing way to do it; but if not, sometimes it will be a feature I'm able to add.
Back to top
View user's profile Send private message Send e-mail
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Sat Jul 24, 2004 12:43 am    Post subject: Reply with quote

excellent! I'll put that in immediately.

How about my first question about LWIN as a hotstring endchar? possible? Is there a work-around to make it possible?

If I do this it still doesn't work as an endchar:

Code:
LWIN::send E
#Hotstring EndChars E


Only pressing the E key directly ends the hotstring.
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jul 24, 2004 12:51 am    Post subject: Reply with quote

Quote:
LWIN as a hotstring endchar? possible? Is there a work-around to make it possible?

You can use the Input command to use non-character end-keys. It is also possible to remap your LWIN key in WinXP or 2k by using the registry. This change is fairly permanent because it requires a reboot to undo it. If you want to take this extreme measure, I have more details.
Back to top
View user's profile Send private message Send e-mail
WhiteCloud



Joined: 19 Jun 2004
Posts: 68

PostPosted: Sat Jul 24, 2004 3:10 am    Post subject: Reply with quote

Actually the registry thing is a good idea in my case. It's a computer at work that is only used to run a couple programs. I happened to stumble across a program that will remap keys in the registry before I found AHK. So I can do that on my own. Thanks for the fast response and the lead. I wouldn't have thought of that.
_________________
AHK = Hella fun
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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