I've done ample searches and trials, but I can't seem to figure out how to have the Keyboard Library type the keypad enter key that is on the right side of extended keyboards, as opposed to the normal enter (return on Mac keyboards) that is above the right shift key.
Thanks for the response. Here's what I'm trying to do:
I'm not using an Arduino keypad. I use a set of switches and an Arduino Leonardo as an alternative keyboard for myself. (I'm actually using it to type these posts.)
I use Mac OS X, and in some applications, the keypad enter has a different meaning then the normal enter/return. (For example, in AppleScript Editor, the keypad enter means Compile, while return takes you to a new line of text.)
So, I want to figure out how to have the Leonardo send the keypad enter to the computer. I tried Keyboard.println(), which gave me a new line, Keyboard.write(10), which gave me a new line, Keyboard.write(13), which didn't give me anything, and Keyboard.print("\r\n"), which gave me a new line.
Did you figure it out?
Am having the same problem..
Am trying to automatically login and logout of my PC.
I couldnt find key for enter or windows as KEY_RETURN is not working in my laptop and KEY_LEFT_GUI is not working for windows..
I was looking for an answer and got here, but I realized it takes a few seconds to test them all. Hardest part, find a text editor that does nothing, code editors ‘help’ by indenting newlines which you don’t want. I used TextEdit on Mac and Preferences> Plain text. Based on Keyboard.write() documentation
Press a button attached between pin2 and ground, and watch every character printed before the code used to send it. There is no formatting or spacing on purpose as that would defeat the purpose. For example the line with ,44 printed “,” with Keyboard.write(44). Try a loop testing different modifier key presses. Keyboard.press() with modifiers