Hello everyone, thank you very much for trying to help me in this post. My wife is starting a project using an ESP32-S3 and she's feeling a bit lost, so I started studying it as well to try to assist her. This week is her birthday, and as a small gift, I'm setting up the ESP32 as an HID. It's meant to do something very simple:
Open Notepad via Win+R
Type the Happy Birthday song
Open Win+R
Type the link for the birthday song
Press Enter
However, I'm having a problem. Since my keyboard is in Brazilian Portuguese (PT-BR), there seems to be some character incompatibility between the ESP32 and the system. When I try to type ":", it types ";", and when I try to type "?", it types ":".
This makes it a bit frustrating to venture into ESP32 programming, but what's bothering me the most is that I haven't been able to find a way to use the "/" character at all. I've tried Alt + Code, Keyboard.write, and nothing seems to work.
I followed the tip you gave, I did a Keyboard.print on win + r, with all characters that it was possible to type using my keyboard, however even so none returned the character "/", which is used to open any site.
It's a really annoying and discouraging situation, I searched through the forum but couldn't find any topic that solved the problem, the closest I got was adding a US ENG keyboard layout parallel to the PTB I use, but this would only work for my computer, which makes it not so practical, because as I want to surprise her, and eventually explore other activities with the ESP32, this problem will continue to prevent me.
All Char tested:
' 1 2 3 4 5 6 7 8 9 0 - = q w e r t y u i o p [ a s d f g h j k l ç ~ ] \ z x c v b n m , . ; / / * - + , ! @ # $ % ¨ & * ( ) _ + Q W E R T Y U I O P ` { A S D F G H J K L Ç ^ } | Z X C V B N M < > : ? ¹ ² ³ £ ¢ ¬ § ª º ° / ? ° ₢ & á é í ó ú â ê î ô û ä ë ï ö ü"
I do not know about your keyboard but check if it is programmable. For fun we use to reprogram keyboards as a prank but when time we would just reprogram them back to what they were. Some we could program all keys come we could only do a few of them. You may also be able to change the keyboard driver in your PC, not sure as it has been many years since I used windoz. If you have any Linux friends the the "/" character is part of the path specification and they would need a way around that.
Yeah, I did it. My scripts are running on my computer because I changed the entire keyboard layout to US English. However, when I connect to my wife's computer, it doesn't work. I'd have to download the layout on her computer to get it to work. I understand that for us Brazilians, it's not very practical to use HID via ESP32, since navigating between folders, typing URLs, and even using CMD and Powershell requires the "/". I'll keep trying to find a solution or wait for an angel who knows how to do this and sees this post, but thank you very much for trying to help.
One thing I have done many times is use two keyboards. Could you possibly do that with your current one and a US keyboard? My machines recognize the second keyboard and mouse without any problems and both work just fine, I even typed with one hand one each, no problems with the keyboards but my hands got confused.