Page 1 of 1

AutoHotkey can't recognize a key on my keyboard

Posted: 11 Aug 2022, 01:37
by Bootimar
Hello dear friends,

On Lenovo Ideapad 300 keyboards there is a key above Fn and to the right of Left Shift which can type \ (and | when pressed with Shift).
Untitled.jpg
Untitled.jpg (45.11 KiB) Viewed 428 times
However, AutoHotkey can't recognize this key.
I tried ^\:: and ^|:: codes but nothing happens when I press Ctrl+\.
Would you please tell me what code I have to use for this key or whether there is another solution?

Re: AutoHotkey can't recognize a key on my keyboard  Topic is solved

Posted: 11 Aug 2022, 01:59
by BoBo

Re: AutoHotkey can't recognize a key on my keyboard

Posted: 11 Aug 2022, 08:08
by Bootimar
Dear @BoBo, thank you very much for your help!

Re: AutoHotkey can't recognize a key on my keyboard

Posted: 11 Aug 2022, 08:59
by wetware05
This script tells you the code of the key you press. I hope it helps you. ;)

Code: Select all

SetFormat, Integer, Hex
Gui +ToolWindow -SysMenu +AlwaysOnTop
Gui, Font, s14 Bold, Arial
Gui, Add, Text, w100 h33 vSC 0x201 +Border, {SC000}
Gui, Show,, % "// ScanCode //////////"
Loop 9
  OnMessage( 255+A_Index, "ScanCode" ) ; 0x100 to 0x108
Return

ScanCode( wParam, lParam ) {
 Clipboard := "SC" SubStr((((lParam>>16) & 0xFF)+0xF000),-2) 
 GuiControl,, SC, %Clipboard%
}