Page 1 of 1

Unbind a key?

Posted: 18 Feb 2018, 20:36
by bootlegRat
Can I undbind a key?

I have tried LShift::Return but it doesn't seem to work, any help?

Re: Unbind a key?

Posted: 18 Feb 2018, 23:15
by boiler
That should kill the left shift key. But if what you mean is to remove a previous binding, then use Hotkey, LShift, Off.

Re: Unbind a key?

Posted: 19 Feb 2018, 02:19
by bootlegRat
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?

Re: Unbind a key?

Posted: 20 Feb 2018, 18:58
by bootlegRat
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?

Re: Unbind a key?

Posted: 20 Feb 2018, 20:54
by boiler
Works perfectly for me. Perhaps try preceding that line with #UseHook.

Re: Unbind a key?

Posted: 20 Feb 2018, 23:31
by Exaskryz
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