Advertisement
Guest User

Untitled

a guest
Aug 6th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. self.state = [
  2.  0xA1, # This is an input report
  3.  0x01, # Usage report = Keyboard
  4.  # Bit array for Modifier keys
  5.  [0,   # Right GUI - (usually the Windows key)
  6.   0,   # Right ALT
  7.   0,   # Right Shift
  8.   0,   # Right Control
  9.   0,   # Left GUI - (again, usually the Windows key)
  10.   0,   # Left ALT
  11.   0,   # Left Shift
  12.   0],   # Left Control
  13.  0x00,  # Vendor reserved
  14.  0x04,  # The W key is pressed
  15.  0x00,
  16.  0x00,
  17.  0x00,
  18.  0x00,
  19.  0x00 ]
  20. bt.send_input(self.state)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement