Can I undbind a key?
I have tried LShift::Return but it doesn't seem to work, any help?
Unbind a key?
-
- Posts: 8
- Joined: 18 Feb 2018, 19:10
Re: Unbind a key?
That should kill the left shift key. But if what you mean is to remove a previous binding, then use Hotkey, LShift, Off.
-
- Posts: 8
- Joined: 18 Feb 2018, 19:10
Re: Unbind a key?
No, it still works normally. Do I need to do anything else? Am I missing something?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.
-
- Posts: 8
- Joined: 18 Feb 2018, 19:10
Re: Unbind a key?
LShift::Return does nothing, the left shift still works. Help?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.
Re: Unbind a key?
Works perfectly for me. Perhaps try preceding that line with #UseHook.
Re: Unbind a key?
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
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