unifiedremote / Remotes

http://www.unifiedremote.com
202 stars 136 forks source link

Need slash for windows #131

Open YAMLcase opened 4 years ago

YAMLcase commented 4 years ago

Is there a keyboard.stroke for the slash character on a Windows keyboard? I'm sending UTF8 for the solidus "/" character (0x2F) and at keybaordtester.com doesn't register as that particulary keypress. Youtube also doesn't see that as the button press for putting you in the search window. Is there a way to simulate the scancode?

pqvst commented 4 years ago

If you want to simulate pressing the key that shows the "/" character then most likely this is an OEM key (depending on keyboard layout). On US keyboards I believe it is oem_2:

keyboard.press("oem_2")

If that doesn't work then you can try the other oem keys listed here: https://github.com/unifiedremote/Docs/blob/master/res/keys.md