Unbind a key?

Get help with using AutoHotkey and its commands and hotkeys
bootlegRat
Posts: 8
Joined: 18 Feb 2018, 19:10

Unbind a key?

18 Feb 2018, 20:36

Can I undbind a key?

I have tried LShift::Return but it doesn't seem to work, any help?
User avatar
boiler
Posts: 2662
Joined: 21 Dec 2014, 02:44

Re: Unbind a key?

18 Feb 2018, 23:15

That should kill the left shift key. But if what you mean is to remove a previous binding, then use Hotkey, LShift, Off.
bootlegRat
Posts: 8
Joined: 18 Feb 2018, 19:10

Re: Unbind a key?

19 Feb 2018, 02:19

boiler wrote:That should kill the left shift key. But if what you mean is to remove a previous binding, then use Hotkey, LShift, Off.
No, it still works normally. Do I need to do anything else? Am I missing something?
bootlegRat
Posts: 8
Joined: 18 Feb 2018, 19:10

Re: Unbind a key?

20 Feb 2018, 18:58

boiler wrote:That should kill the left shift key. But if what you mean is to remove a previous binding, then use Hotkey, LShift, Off.
LShift::Return does nothing, the left shift still works. Help?
User avatar
boiler
Posts: 2662
Joined: 21 Dec 2014, 02:44

Re: Unbind a key?

20 Feb 2018, 20:54

Works perfectly for me. Perhaps try preceding that line with #UseHook.
User avatar
Exaskryz
Posts: 2876
Joined: 17 Oct 2015, 20:28

Re: Unbind a key?

20 Feb 2018, 23:31

Explain what you may be trying to do.

LShift::Return would probably work just fine in a video game to prevent me from performing an action; I don't know of any non-video games that react to just a shift press. It also works to prevent capitalization of letters for me. The one other use case I can think of is to prevent the Sticky Keys Ease of Access Prompt from appearing from pressing LShift 5 times in a row, but that is not prevented in my testing.

Edit: As I think of it, make sure you can get your script running for a video game if it's for that purpose. Often times you need to run your script as an administrator. See https://autohotkey.com/boards/viewtopic.php?t=11084

Return to “Ask For Help”

Who is online

Users browsing this forum: ankitkraken, Bing [Bot], hamidi, StefanD and 188 guests