This works, pressing button 14 minimizes all open windows, and pressing button 13 open / maximizes them all again. Buttons also change color.
@pmk.on_press(key13)
def press_handler(key13):
pmk.set_led(13, 0, 85, 0)
pmk.set_led(14, 23, 23, 23)
keyboard.send(Keycode.GUI, Keycode.LEFT_SHIFT, Keycode.M)
@pmk.on_press(key14)
def press_handler(key14):
pmk.set_led(14, 23, 0, 85)
pmk.set_led(13, 23, 23, 23)
keyboard.send(Keycode.GUI, Keycode.M)
But this doesn’t?
@pmk.on_press(key14)
def press_handler(key14):
pmk.set_led(14, 23, 0, 85)
keyboard.send(Keycode.GUI, Keycode.M)
@pmk.on_hold(key14)
def hold_handler(key14):
pmk.set_led(14, 0, 85, 0)
keyboard.send(Keycode.GUI, Keycode.SHIFT, Keycode.M)
A short press minimizes all open Windows. Button changes color.
A long press changes button color but that’s all it does.
Also seems to break the Win + shift + m fuctionality?
That key combo works before pressing the button, but not after?