Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: Python  |  size: 0.28 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import win32api, win32con, time
  2. var = 1
  3. while var == 1 :
  4.         win32api.SetCursorPos((pocatecni_x,pocatecni_y))
  5.         win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,pocatecni_x,pocatecni_y,0,0)
  6.         win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,koncove_x,koncove_y,0,0)
  7.         time.sleep(6)