How can I make this "<" key to act as Left Shift? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
maryo123
Posts: 2
Joined: 26 Aug 2020, 09:01

How can I make this "<" key to act as Left Shift?

Post by maryo123 » 26 Aug 2020, 09:08

My left shift is broken and I want to use this key as my left shift especially when gaming,

https://ibb.co/j4JXPzX (this is image link, forum breaks it for some reason so I put it this way)

I type

<::LShift

to the script, but it doesn't work. Guess I need to enter a specific name for that key, but I don't know what.
Help will be appreciated.
Thanks!!

User avatar
TheDewd
Posts: 1510
Joined: 19 Dec 2013, 11:16
Location: USA

Re: How can I make this "<" key to act as Left Shift?

Post by TheDewd » 26 Aug 2020, 10:12

,::LShift

Use comma. The "<" key is only active while shift is being pressed. In your case, you will need to use comma, which is the active key when the shift-modifier is not used.

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: How can I make this "<" key to act as Left Shift?  Topic is solved

Post by gregster » 26 Aug 2020, 12:36

It depends on the keyboard layout, I guess:

Code: Select all

<::LShift
works for me - and I have a similar key on my layout like shown on the picture, which sends < in unshifted mode (and >, when shifted ).
If it doesn't for you, try to determine the key's scan code - and try that, like shown here: https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys
I get 056 as the scan code, so this works for me as well:

Code: Select all

SC056::Lshift
It could be a different number on your layout...

But I only tested in Notepad - games might cause additional problems.

maryo123
Posts: 2
Joined: 26 Aug 2020, 09:01

Re: How can I make this "<" key to act as Left Shift?

Post by maryo123 » 27 Aug 2020, 11:31

gregster wrote:
26 Aug 2020, 12:36
It depends on the keyboard layout, I guess:

Code: Select all

<::LShift
works for me - and I have a similar key on my layout like shown on the picture, which sends < in unshifted mode (and >, when shifted ).
If it doesn't for you, try to determine the key's scan code - and try that, like shown here: https://www.autohotkey.com/docs/KeyList.htm#SpecialKeys
I get 056 as the scan code, so this works for me as well:

Code: Select all

SC056::Lshift
It could be a different number on your layout...

But I only tested in Notepad - games might cause additional problems.
SC056::Lshift Works perfectly! Thank you!

Post Reply

Return to “Ask for Help (v1)”