key recorder? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
elvisautohotkey
Posts: 28
Joined: 27 Sep 2019, 19:59

key recorder?

09 Oct 2019, 02:03

Years ago when I install an AHK pack, there was a key recorder. Whatever key I press, the recorder shows the key name, and I can use the exact name on my AHK coding. But, days before I install AHK, there is no recorder. How do I know what is the key name I press?

This question is to solve my other question. I want to record the keys to know if AHK and determine the difference between a built-in numeric keypad and an external USB ones.

Thank you.
Rohwedder
Posts: 7895
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: key recorder?  Topic is solved

09 Oct 2019, 04:03

Hallo,
try:

Code: Select all

; Show information for the last pressed key.
#InstallKeybdHook
#InstallMouseHook   
SetTimer, Information, 300
Information:
ToolTip, % Format(
(Join
"Key Name:`t{}`nVirtual Code:`tVK{:02X}`nScan Code:`tSC{:03X}"
,A_PriorKey,GetKeyVK(A_PriorKey),GetKeySC(A_PriorKey))
)
Return
elvisautohotkey
Posts: 28
Joined: 27 Sep 2019, 19:59

Re: key recorder?

09 Oct 2019, 21:28

Thank you very much. The recorder works.

Now I know that numeric keypad doesn't send numpad 0 ~9. It sends simulated 1~9. It is complicated, but I will find a way to remap it eventually.
Guill
Posts: 141
Joined: 09 Jun 2016, 22:00

Re: key recorder?

28 Jul 2021, 21:52

You can add or replace with this TrayTip

Code: Select all

Traytip, THE KEY IS, %A_PriorKey%

SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: key recorder?

29 Jul 2021, 07:18

elvisautohotkey wrote:
09 Oct 2019, 02:03
Years ago when I install an AHK pack, there was a key recorder.
You might want to take a look at the Mouse and Keyboard Macro Recorder by FeiYue- https://www.autohotkey.com/boards/viewtopic.php?t=34184&p=159538

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AlFlo and 148 guests