Created
November 9, 2016 20:39
-
-
Save glafranceri/25cdc4e7ae46e8804445f5e5ba96c0b8 to your computer and use it in GitHub Desktop.
Smart Calendar Picture Frame - Python uinput test script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import uinput | |
from time import sleep | |
device=uinput.Device([uinput.KEY_H, uinput.KEY_E, uinput.KEY_L, uinput.KEY_O,]) | |
sleep(2) | |
device.emit_click(uinput.KEY_H) | |
sleep(2) | |
device.emit_click(uinput.KEY_E) | |
sleep(2) | |
device.emit_click(uinput.KEY_L) | |
sleep(2) | |
device.emit_click(uinput.KEY_L) | |
sleep(2) | |
device.emit_click(uinput.KEY_O) | |
sleep(4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment