Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import ctypes
  2. import pygame, sys
  3. from pygame.locals import *
  4.  
  5. pygame.init()
  6.  
  7. def Out(addr, byte):
  8. ctypes.windll.inpout32.Out32(addr, byte)
  9.  
  10. Out(0x378, 0)
  11.  
  12. while True:
  13. for event in pygame.event.get():
  14. if event.type == [K_1]:
  15. Out(0x378, 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement