Remap keypad function keys

Get help with using AutoHotkey and its commands and hotkeys
cteixeira
Posts: 3
Joined: 05 Jun 2017, 07:35

Remap keypad function keys

05 Jun 2017, 08:09

Hello
I recently bought a Mitsai K120 keypad that have four functions keys on the first row (calculator, internet, email and favourites). I’ve read in other forums that I could remap keypad keys using macros with HidMacros, which is a very reasonable program to start with, if you’re not a programmer (like me :headwall: ). I have successfully remap all keys except those 4 function keys. AutoHotkeys is the solution for me? If yes, can someone give me a guideline on how to?
You can see below a link to other post I created on avsim forums:

https://www.avsim.com/forums/topic/5115 ... hidmacros/

You guys are my last hope…

Thanks
Attachments
mitsai k120.jpg
Mitsai K120 numeric Keypad
mitsai k120.jpg (89.98 KiB) Viewed 1126 times
IMEime
Posts: 750
Joined: 20 Sep 2014, 06:15

Re: Remap keypad function keys

05 Jun 2017, 12:29

Code: Select all

Sc121	Calculator
Sc16C	Mail  		
Sc132	WWW Home  	
Sc166	WWW Favorites
Coulb be..
cteixeira
Posts: 3
Joined: 05 Jun 2017, 07:35

Re: Remap keypad function keys

05 Jun 2017, 16:57

:D
Ok the result of the script is the following. I pressed on keypad the calculator key, then on keyboard letter “a”, then keypad email, then letter “s” on keyboard and so on..
“VK SC Type Up/Dn Elapsed Key Window
-------------------------------------------------------------------------------------------------------------
B7 121 a d 5.69 Launch_App2 Program Manager
B7 121 a u 0.16 Launch_App2
41 01E d 1.84 a Calculadora
41 01E u 0.14 a
B4 16C a d 1.92 Launch_Mail
B4 16C a u 0.14 Launch_Mail
53 01F d 1.51 s Welcome to Microsoft Outlook 2016
53 01F u 0.16 s
AC 132 a d 1.28 Browser_Home
AC 132 a u 0.16 Browser_Home
44 020 d 0.92 d Your Personal Dashboard | Netvibes - Mozilla Firefox
44 020 u 0.19 d
AB 166 a d 0.76 Browser_Favorites
AB 166 a u 0.16 Browser_Favorites
46 021 d 1.61 f
46 021 u 0.14 f

Let’s say that when I hit Keypad key “121” instead of “Launch_app2” would result the same as pressing letter “a” (01E) on keyboard and when pressing keypad key “16C” would result the same as pressing letter “s” (01F) on keyboard. Can you give me a hand writing this into a script? Just for keypress, with no action for releasing the key. (wonder if there are different actions)
Thanks ;)
cteixeira
Posts: 3
Joined: 05 Jun 2017, 07:35

Re: Remap keypad function keys

06 Jun 2017, 02:01

:idea: I managed to do it :superhappy: made the following script:

Launch_App2 ::a
Launch_Mail::s

And voila, very simple

How to differentiate the keyboard and keypad?
For example if I want to assign different keys for both numpad?

Thanks :D
User avatar
evilC
Posts: 4780
Joined: 27 Feb 2014, 12:30

Re: Remap keypad function keys

06 Jun 2017, 05:45

By adding the ability to differentiate between keyboards, you would lose the ability to block the original functionality.

RawInput (The API that can differentiate between devices) cannot block.

At some point in the near future, we may be able to solve this (Using Nefarius' HidGuardian), but not at the moment.

Return to “Ask For Help”

Who is online

Users browsing this forum: alek_05, Bing [Bot], Chunjee, FanaticGuru, goldgold, Google [Bot], Laeark, mikeyww, mythofechelon, pixl, Psygnosis, Xtra and 54 guests