Advertisement
Guest User

show stats in madVR

a guest
Oct 8th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import win32gui, win32api, win32con
  2. h = win32gui.GetForegroundWindow()
  3.  
  4. win32gui.SetForegroundWindow(YourPlayerHWND)
  5. win32api.keybd_event(win32con.VK_CONTROL, 0,0,0)
  6. win32api.keybd_event(ord('J'), 0,0,0)
  7. win32api.keybd_event(ord('J'),0 ,win32con.KEYEVENTF_KEYUP ,0)
  8. win32api.keybd_event(win32con.VK_CONTROL,0 ,win32con.KEYEVENTF_KEYUP ,0)
  9.  
  10. if h : win32gui.SetForegroundWindow(h)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement