Products like the X-Keys programmable keypads are a great companion for anyone who uses hot-key heavy software like PhotoShop. They allow you to lay out all your hot keys on one small board complete with labels and with a push of a button activate any macro or keystroke programmed into the software.
But those products cost in excess of $100.00 even for the basic model. If you live overseas the cost of importing and the US Dollar exchange rate can balloon the price and make the products far too expensive.
It's possible to create your own custom macro pad with a basic USB number pad for much less cost. You can easily pick these up on ebay for under $10.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Create Your Custom Labels
I am creating a pad for PhotoShop.
I created a draft layout of paper to decide what functions I needed and where they should be. You can do this easily in Excel too. Put effort into this part so that you don't have to rip off your labels and do them again because you forgot a function.
Google image search each function you desire. I used terms like "fill bucket icon" and "brush icon", etc. In no time you will have a collection of all your buttons.
If you don't have photoshop this part will be hard for you to create, so I have attached a pre-made sheet sezed for A4 paper at 300dpi suitible for keys up to 13mm high by 12mm wide. Printing full size at native dpi will result in correctly sized labels.
Step 2: Print and Cutout Your Custom Labels
Print a test label sheet and cut out one label to make sure that it fits your keys perfectly.
When you're satisfied that the labels have printed correctly, print a new sheet and cover each row of labels with tape.
The tape will provide a durable surface to press and protect the label.
The best tape for this is the invisible kind which is often marketed as being able to be written on, non reflective and invisible. Normal tape (the cheap shiny stuff) is no good because over time it will yellow and peel. Invisible tape doesn't suffer from this problem.
Using your fingernail, rub firmly over the tape to make it stick properly. You'll see the blacks get darker as you do this.
Use a ruler and blade to carefully cut out the labels. Scissors can be used but it's harder to do.
I used a laser printer for my labels; I'm not sure how ink will react to glue. I'm sure it will be fine but if the results are unsatisfactory, take your image file to your local print shop and get them to print it for you. You may also choose to have them laminate the page for you instead of you using sticky tape. Get 2 sheets printed; one to laminate and one not, and experiment.
Step 3: Attach Your Custom Labels
Use a paintbrush to apply an even layer of PVA glue to one key and carefully place one label that you've cut out on the glue lightly. Position, then press.
Do this one key at a time.
PVA glue sticks to paper very well and will set almost instantly to try to position it perfectly before pressing. Once pressed you may not be able to reposition the label.
The layer of PVA that you apply shouldn't be too thin because the paper will soak it up. The layer should be thin but opaque. If it just makes the key look wet, the layer is too thin.
Your labels should not overlap the keys or they will peel off with use. See images.
PVA glue shrinks and sets clear so it's OK to leave any excess that oozes out. It will disappear when it's dry leaving a shiny film. You may like to seal the edges of your labels by brushing lightly some PVA glue around the edges of each label.
Your keyboard is now complete.
Step 4: Getting Your Keypad Working.
HID Macros is the software we will need to get everything working.
This is the only macro software that comes ready to use with the ability to take commands from ONE specified keyboard while ignoring another.
This means you can command macros with the numbers on your USB number pad without having them activate when you press numbers on your main keyboard.
Other software may be able to accomplish this, but not without much tinkering and reading of forums.
HID Macros was designed especially for this purpose and performs the task perfectly.
Attached to this page is a ready to use installation of it complete with macros for photoshop mapped to the labels shown in these photos. You can use it as a guide.
This software runs without installation. Simply download the ZIP file, unpack it and move the folder to a location of your choosing. Recommended folder to put it in is C:\Program Files. Right-click the program and "send to" "desktop" to make a shortcut.
Step 5: Setting Up HID Macros From the Beginning
Plug in your keypad first, then start HIDmacros.
(Note: If you get an error upon launching the software, please follow the guide later in this instructional.)
For this example, I will program the number 7 key on my pad to send the letter b when it is pressed, which is the keyboard shortcut for Brush in Photoshop.
Refer to the screenshot above for details on the following instruction.
Click New and then type a name for your new command. I type the word Brush.
Now click the Scan button in HIDmacros then press the button you want to program on your keypad. The number 7 key.
HIDmacros now knows what button to program and from which particular keyboard.
Now you can specify the action by choosing "Send keyboard sequence" and typing the letter b in the text box.
Click Save Configuration and you can now test the macro.
Any time you press 7 on your number pad, the letter b should be typed by the computer in any application.
Note: HIDmacros is not application specific. An easy workaround is required to make this happen. More on this later in the instructional.
Step 6: Adding and Removing Devices.
HIDmacros can tell which keyboard you want to you and store different macros for each device.
If you add or remove a keyboard device your macros may end up being moved to another device against your wishes. This is unlikely but it can happen.
No need to worry though, you can easily transfer your macros from one device to another.
See the screenshot above.
The device list tells you how many macros are associated with each device. Click on the device which has the macros then click Move macros and select the device you want to move the macros to.
If you're not sure which device your number pad is, click on the Macros tab and push any key on your pad and the Test Area will tell you which device it is. Don't be alarmed if it says your keyboard is a mouse, it can happen.
Step 7: Notes on HID Macros
If upon launching the software for the first time you're faced with an error message, try right clicking the program and clicking on "Troubleshoot compatibility" and follow Windows' suggestions. I run Windows 8.1 and had issues running for the first time. After following the above instruction everything worked fine.
Modifier keys can be added to your macros to simulate Ctrl+S for example. Please refer to the help file in HID Macros, it features a complete list of commands such as...
+ = Shift
^ = Control
% = Alt
& = Tab
You can even program mouse movements. More info on this page http://www.hidmacros.eu/scripting.php
Step 8: Notes About Your Number Pad.
Your number pad (like any) features a number Lock which allows you to change the function of 10 keys. You can take advantage of this to add another 10 macros to your pad.
I use this feature so that I can use the same button functions under another program.
You must strategically place your labels to take advantage of this by putting labels such as Brush on one of these 10 keys. PhotoShop and ArtRage both have Brush tools but use different hot-keys to activate.
So I placed common tools for both programs on the 10 keys so that in Photoshop I have number lock on and Artrage number lock off.
Alternatively, you can keep multiple installations of HIDmacros and program each differently
Make a copy of the HIDmacros program folder and label each for each program and program your macros independently.
Your number pad may feature a "000" key. This key will mimic any macro you have assigned to the 0 key and press it 3 times quickly. I have assigned Undo to key 0 and so pressing the 000 key activates undo 3 times, which can be useful. This si why there is another Undo label with a 3x written on it.