From 86606abec335120bbbbcc40223cbc020626cfb0b Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 24 Jul 2018 16:08:42 +0200 Subject: [PATCH] change hotkey sent --- raspberry-environment/display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/raspberry-environment/display.py b/raspberry-environment/display.py index e457221..3a8af7a 100644 --- a/raspberry-environment/display.py +++ b/raspberry-environment/display.py @@ -128,7 +128,8 @@ def os_echo_bin(filename, string): def send_keypress(): with open('/dev/hidg0', 'wb') as f: - f.write(bytearray(b'\x00\x00\x04\x00\x00\x00\x00\x00')) #press the A-button + #f.write(bytearray(b'\x00\x00\x04\x00\x00\x00\x00\x00')) #press the A-button + f.write(bytearray(b'\x08\x00\x1C\x00\x00\x00\x00\x00')) #press Win+Y time.sleep(0.05) f.write(bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00')) #release all keys