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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Bootimar
Posts: 8
Joined: 10 Aug 2022, 00:38

AutoHotkey can't recognize a key on my keyboard

Post by Bootimar » 11 Aug 2022, 01:37

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 409 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?


User avatar
Bootimar
Posts: 8
Joined: 10 Aug 2022, 00:38

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

Post by Bootimar » 11 Aug 2022, 08:08

Dear @BoBo, thank you very much for your help!

wetware05
Posts: 750
Joined: 04 Dec 2020, 16:09

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

Post by wetware05 » 11 Aug 2022, 08:59

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%
}

Post Reply

Return to “Ask for Help (v1)”