How to emulate a numpad key ? - How To - Flirc Forums (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/) (https://forum.flirc.tv/applications/core/interface/ckeditor/ckeditor/skins/ips/editor.css?t=OAC9) (https://forum.flirc.tv/index.php?/manifest.webmanifest/) (//forum.flirc.tv/applications/core/interface/font/fontawesome-webfont.woff2?v=4.7.0) (https://fonts.googleapis.com) (https://fonts.gstatic.com) (https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap) (https://forum.flirc.tv/uploads/css_built_1/341e4a57816af3ba440d891ca87450ff_framework.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/05e81b71abe4f22d6eb8d1a929494829_responsive.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/90eb5adf50a8c640f633d47fd7eb1778_core.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/5a0da001ccc2200dc5625c3f3934497d_core_responsive.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/62e269ced0fdab7e30e026f1d30ae516_forums.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/76e62c573090645fb99a15a363d8620e_forums_responsive.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/ebdea0c6a7dab6d37900b9190d3ac77b_topics.css?v=b5c6491c0c1731441067) (https://forum.flirc.tv/uploads/css_built_1/258adbb6e4f3e83cd3b355f84e3fa002_custom.css?v=b5c6491c0c1731441067) (Go to main content on this page) Jump to content (https://forum.flirc.tv/) Flirc Forums (https://forum.flirc.tv/index.php?/login/) Existing user? Sign In (a97fd06d87da1a593d643df50bf13236) (aHR0cHM6Ly9mb3J1bS5mbGlyYy50di9pbmRleC5waHA/L3RvcGljLzkwNy1ob3ctdG8tZW11bGF0ZS1hLW51bXBhZC1rZXkv) Sign In (Email Address) (Password) (1) Remember me Not recommended on shared computers (usernamepassword) Sign In (https://forum.flirc.tv/index.php?/lostpassword/) Forgot your password? (https://forum.flirc.tv/index.php?/register/) Sign Up (https://forum.flirc.tv) Browse (https://forum.flirc.tv/index.php) Forums (https://forum.flirc.tv/index.php?/staff/) Staff (https://forum.flirc.tv/index.php?/online/) Online Users (https://forum.flirc.tv/index.php?/leaderboard/) Leaderboard More (https://forum.flirc.tv/index.php?/discover/) Activity (https://forum.flirc.tv/index.php?/discover/) All Activity (https://forum.flirc.tv/index.php?/search/) Search More (https://forum.flirc.tv/index.php?/leaderboard/) Leaderboard More More (Search...) This Topic (all) Everywhere (contextual_{"type":"forums_topic","nodes":42}) This Forum (contextual_{"type":"forums_topic","item":907}) This Topic (core_statuses_status) Status Updates (forums_topic) Topics (core_members) Members (https://forum.flirc.tv/index.php?/forum/42-how-to/) How To (https://forum.flirc.tv/index.php?/discover/) (https://forum.flirc.tv/index.php?/search/) (https://forum.flirc.tv/index.php?/discover/) All Activity (Home) (https://forum.flirc.tv/) Home (https://forum.flirc.tv/index.php?/forum/28-flirc-forums/) Flirc forums (https://forum.flirc.tv/index.php?/forum/104-flirc-usb/) Flirc USB (https://forum.flirc.tv/index.php?/forum/42-how-to/) How To How to emulate a numpad key ? How to emulate a numpad key ? (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) (trentanel) By (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) trentanel (01/29/2014 04:58 PM) January 29, 2014 in (https://forum.flirc.tv/index.php?/forum/42-how-to/) How To Share (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/) (Copy Link to Clipboard) https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/ (https://x.com/share?url=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F) (Share on X) (https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F) (Share on Facebook) (https://www.reddit.com/submit?url=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F&title=How+to+emulate+a+numpad+key+%3F) (Share on Reddit) (mailto:?subject=How%20to%20emulate%20a%20numpad%20key%20%3F&body=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F) (Share via email) (https://pinterest.com/pin/create/button/?url=https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/&media=) (Share on Pinterest) More sharing options... (https://forum.flirc.tv/index.php?/login/) (Sign in to follow this) Followers 1 Reply to this topic (https://forum.flirc.tv/index.php?/forum/42-how-to/&do=add) (Start a new topic in this forum) Start new topic Recommended Posts (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) (trentanel) (https://forum.flirc.tv/index.php?/profile/13195-trentanel/badges/) (Newbie) (Rank: Newbie (1/14)) (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) trentanel (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/#findComment-6011) Posted (01/29/2014 04:58 PM) January 29, 2014 (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) trentanel (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) (trentanel) (Newbie) (Rank: Newbie (1/14)) Members (https://forum.flirc.tv/index.php?/profile/13195-trentanel/content/) (2 posts) 2 (More options...) (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/&do=reportComment&comment=6011) (Report this content) Report Posted (01/29/2014 04:58 PM) January 29, 2014 Hello, I would like to record on my remote the keys from a numpad (1,2,3,4,5,6,7,8,9). This is easy, thanks to Flirc .. but ... This is to emulate a mouse on my PC and the key emulated must be regarded not as a number, but as a key from the numpad. More : i dont know the difference between the two, a number as "4" does not work. The key "4" of the numpad works fine. If someone knows how to do ... Regards (MultiQuote) Quote (https://forum.flirc.tv/index.php?/profile/8500-luziferius/) (Go to luziferius's profile) (luziferius) (https://forum.flirc.tv/index.php?/profile/8500-luziferius/badges/) (Newbie) (Rank: Newbie (1/14)) (https://forum.flirc.tv/index.php?/profile/8500-luziferius/) (Go to luziferius's profile) luziferius (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/#findComment-6114) Posted (02/06/2014 03:44 PM) February 6, 2014 (https://forum.flirc.tv/index.php?/profile/8500-luziferius/) (Go to luziferius's profile) luziferius (https://forum.flirc.tv/index.php?/profile/8500-luziferius/) (Go to luziferius's profile) (luziferius) (Newbie) (Rank: Newbie (1/14)) Members (https://forum.flirc.tv/index.php?/profile/8500-luziferius/content/) (5 posts) 5 (More options...) (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/&do=reportComment&comment=6114) (Report this content) Report Posted (02/06/2014 03:44 PM) February 6, 2014 Hi, below is the solution for your problem: You will need to use the command line. You should know how to navigate through your file system and call programs using the command line. ---Theory:--- For the OS, the numpad keys are different keys than the main field number-keys. The operating system maps the same symbol (the number) to both keys. To get your mouse emulation, you need to map the low level keypad values, instead of the main key field keys. The Flirc GUI can map the main field keys only, but not the numpad keys. ---Obtaining the needed values:--- To program the numpad keys, you need the raw USB-HID values as decimal numbers, and program them with the command line tool and the tool’s record_api function. You can get the raw values from here: (http://www.freebsddiary.org/APC/usb_hid_usages) http://www.freebsddiary.org/APC/usb_hid_usages I’ve quoted the relevant part below: For reference, this is the main keyboard that the GUI programs into Flirc: Quote 0x1E Keyboard 1 and ! 0x1F Keyboard 2 and @ 0x20 Keyboard 3 and # 0x21 Keyboard 4 and $ 0x22 Keyboard 5 and % 0x23 Keyboard 6 and ^ 0x24 Keyboard 7 and & 0x25 Keyboard 8 and * 0x26 Keyboard 9 and ( 0x27 Keyboard 0 and ) using a Hex to decimal number converter (like this online one: (http://www.statman.info/conversions/hexadecimal.html) http://www.statman.info/conversions/hexadecimal.html ), you can convert those to decimal numbers. This is range 30-39 decimal. But you will need those: Quote 0x53 Keypad Num Lock and Clear 0x54 Keypad / 0x55 Keypad * 0x56 Keypad - 0x57 Keypad + 0x58 Keypad ENTER 0x59 Keypad 1 and End 0x5A Keypad 2 and Down Arrow 0x5B Keypad 3 and PageDn 0x5C Keypad 4 and Left Arrow 0x5D Keypad 5 0x5E Keypad 6 and Right Arrow 0x5F Keypad 7 and Home 0x60 Keypad 8 and Up Arrow 0x61 Keypad 9 and PageUp 0x62 Keypad 0 and Insert 0x63 Keypad . and Delete the Keypad numbers 1-0 have decimal values of 89 to 98. You can calculate the other values (+, -, / keys, etc), if needed, by simply counting down from 89. --- Programming Flirc:--- First, unlearn all the keys you want to use for the mouse emulation (with the GUI or command line tool). (For linux, the command line tool we will use is called flirc_util . For windows it *might* be called flirc_util.exe . I don’t know, as I don’t use windows, look in the program’s install folder) Now you use the command line tool to program the Keypad keys, by using the program’s record_api function: Quote from the program’s internal help: Quote Send the raw HID value down to flirc to be linked with button recordedusage:record_api 'arg1 arg2'   arg1 is key-modifierarg2 is HID keyexample:flirc record_api 136 4   '136' represents right cmd + left cmd'4' represents 'a' in HIDKey modifiers are defined in the IEEE HID Spec as follows:LEFT  CONTROL          1LEFT  SHIFT            2LEFT  ALT              4LEFT  CMD|WIN          8RIGHT CONTROL          16RIGHT SHIFT            32RIGHT ALT              64RIGHT CMD|WIN          128To record Control + Shift, logically or 1 & 2 to make 3 You don’t want any modifiers, so the first argument is 0 and the command is: flirc_util record_api 0 or flirc_util.exe record_api 0 , where is a number between 89 and 98. eg.: flirc_util record_api 0 89 to program the keypad 1, flirc_util record_api 0 90 to program the keypad 2, etc… so you start the program with the proper arguments for the key you want to program, then the program waits until you press a key on your remote, programs it and exits. you redo that for every key you want to map, entering the correct value as a start parameter. BTW: note for windows users: you cannot simply click a command-line program, that won’t work. You have to start the command line from the menu, navigate to the exe’s folder (use cd command) and then type the program name and its parameters. can be used for auto-completion, and to recall the last entered commands (so you don’t need to retype the command 10 times, but can use and edit the last command.) I hope that helps (Like) (Like) 1 (MultiQuote) Quote 2 weeks later... (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) (trentanel) (https://forum.flirc.tv/index.php?/profile/13195-trentanel/badges/) (Newbie) (Rank: Newbie (1/14)) (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) trentanel (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/#findComment-6237) Posted (02/15/2014 04:16 PM) February 15, 2014 (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) trentanel (https://forum.flirc.tv/index.php?/profile/13195-trentanel/) (Go to trentanel's profile) (trentanel) (Newbie) (Rank: Newbie (1/14)) Members (https://forum.flirc.tv/index.php?/profile/13195-trentanel/content/) (2 posts) 2 Author (More options...) (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/&do=reportComment&comment=6237) (Report this content) Report Posted (02/15/2014 04:16 PM) February 15, 2014 Thank you very much for your remarks . This is what I wanted. I did and it works perfectly on my raspberryPi that runs Archlinux. Thank you again. (MultiQuote) Quote 3 years later... (https://forum.flirc.tv/index.php?/profile/21174-enigma/) (Go to Enigma's profile) (Enigma) (https://forum.flirc.tv/index.php?/profile/21174-enigma/badges/) (Newbie) (Rank: Newbie (1/14)) (https://forum.flirc.tv/index.php?/profile/21174-enigma/) (Go to Enigma's profile) Enigma (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/#findComment-14298) Posted (09/18/2017 03:28 AM) September 18, 2017 (https://forum.flirc.tv/index.php?/profile/21174-enigma/) (Go to Enigma's profile) Enigma (https://forum.flirc.tv/index.php?/profile/21174-enigma/) (Go to Enigma's profile) (Enigma) (Newbie) (Rank: Newbie (1/14)) Members (https://forum.flirc.tv/index.php?/profile/21174-enigma/content/) (3 posts) 3 (More options...) (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/&do=reportComment&comment=14298) (Report this content) Report Posted (09/18/2017 03:28 AM) September 18, 2017 (edited) Thanks for this - this is what I needed as well. But surely, a profile named 'Full Keyboard' ought to actually have the numpad keys presented for easier programming, right? Alternatively, this works for GNOME: Super +Shift +← Move the current window one monitor to the left. Super +Shift +→ Move the current window one monitor to the right. Edited (09/18/2017 04:01 AM) September 18, 2017 by Enigma (MultiQuote) Quote (a97fd06d87da1a593d643df50bf13236) Join the conversation You can post now and register later. If you have an account, (https://forum.flirc.tv/index.php?/login/) sign in now to post with your account. (1) (a97fd06d87da1a593d643df50bf13236) (1) (1) (2097152) (c35f7f9c69ca7344a27412cd1b2c23f1) (Guest) (Enter your email address (this is not shown to other users)) Reply to this topic... (Keep formatting) × Pasted as rich text. Paste as plain text instead Only 75 emoji are allowed. (Keep embedded content) × Your link has been automatically embedded. Display as a link instead (Keep restored contents) × Your previous content has been restored. Clear editor × You cannot paste images directly. Upload or insert images from URL. Insert image from URL (Return to editing mode) × (View at approximate desktop size) Desktop (View at approximate tablet size) Tablet (View at approximate phone size) Phone Submit Reply Share (https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/) (Copy Link to Clipboard) https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/ (https://x.com/share?url=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F) (Share on X) (https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F) (Share on Facebook) (https://www.reddit.com/submit?url=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F&title=How+to+emulate+a+numpad+key+%3F) (Share on Reddit) (mailto:?subject=How%20to%20emulate%20a%20numpad%20key%20%3F&body=https%3A%2F%2Fforum.flirc.tv%2Findex.php%3F%2Ftopic%2F907-how-to-emulate-a-numpad-key%2F) (Share via email) (https://pinterest.com/pin/create/button/?url=https://forum.flirc.tv/index.php?/topic/907-how-to-emulate-a-numpad-key/&media=) (Share on Pinterest) More sharing options... (https://forum.flirc.tv/index.php?/login/) (Sign in to follow this) Followers 1 (https://forum.flirc.tv/index.php?/forum/42-how-to/) (Go to How To) Go to topic listing (https://forum.flirc.tv/index.php?/discover/) All Activity (Home) (https://forum.flirc.tv/) Home (https://forum.flirc.tv/index.php?/forum/28-flirc-forums/) Flirc forums (https://forum.flirc.tv/index.php?/forum/104-flirc-usb/) Flirc USB (https://forum.flirc.tv/index.php?/forum/42-how-to/) How To How to emulate a numpad key ? (http://x.com/flirc) (http://github.com/flirc) (https://forum.flirc.tv/index.php?/contact/) Contact Us (https://forum.flirc.tv/index.php?/cookies/) Cookies Copyright © 2018 Flirc Inc. (Invision Community) (https://www.invisioncommunity.com/) Powered by Invision Community × (https://forum.flirc.tv/index.php?/login/) Existing user? Sign In (https://forum.flirc.tv/index.php?/register/) Sign Up Browse Back (https://forum.flirc.tv) Browse (https://forum.flirc.tv/index.php) Forums (https://forum.flirc.tv/index.php?/staff/) Staff (https://forum.flirc.tv/index.php?/online/) Online Users (https://forum.flirc.tv/index.php?/leaderboard/) Leaderboard Activity Back (https://forum.flirc.tv/index.php?/discover/) All Activity (https://forum.flirc.tv/index.php?/search/) Search (https://forum.flirc.tv/index.php?/leaderboard/) Leaderboard × Create New...