Using a Keybow 2040 to enter system paths

Hi all,

I’m trying to get my Keybow set up as a macropad to boot some commonly used apps and websites. However I’m running into a bit of a problem with using the layout.write function from adafruits HID library to input system paths into a run window. For instance, I’ve got something going on similar to this in my handler function:

pathString = r' C:\Program Files (x86)\Steam\steam.exe',

keyboard.send(Keycode.GUI, Keycode.R)
time.sleep(0.05)
layout.write(pathString)
keyboard.send(Keycode.ENTER)

However, I end up with # in place of \ when the string gets entered. I’m pretty sure that it’s an issue cause by the fact that the only keyboard layout the adafruit library natively supports is US and \ gets moved between the US and UK layouts. Does anyone have any work arounds for this short of sending keycodes manually or creating my own layout object to replace the adafruit one? Any advise would be greatly appreciated.

Haven’t used Windows in years, but if you can set separate layouts to individual keyboard devices, making Windows think the Keybow has a US layout might just work.