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.
key recorder? Topic is solved
-
- Posts: 28
- Joined: 27 Sep 2019, 19:59
Re: key recorder? Topic is solved
Hallo,
try:
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
-
- Posts: 28
- Joined: 27 Sep 2019, 19:59
Re: key recorder?
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.
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.
Re: key recorder?
You can add or replace with this TrayTip
Code: Select all
Traytip, THE KEY IS, %A_PriorKey%
Re: 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=159538elvisautohotkey wrote: ↑09 Oct 2019, 02:03Years ago when I install an AHK pack, there was a key recorder.
Who is online
Users browsing this forum: AlFlo and 148 guests