cansik / pyunicon

PyUnicon is a cross platform library to control keyboard and mouse.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyUnicon

PyUnicon is a cross platform library to control keyboard and mouse. Works on MacOSX (Cocoa), Linux (X11) and Windows (Win32)

Install

The easiest way is to install by PIP:

pip install pyunicon

Example

mouse = UCMouse()
x, y = mouse.get_position()
mouse.move(200, 200)
sleep(1)
mouse.move(300, 300)
mouse.click_left()

print('X, Y: %s, %s' % (x, y))

What can you do?

  • Mouse
  • move
  • click left
  • click right
  • get position
  • Keyboard
  • key down
  • key up
  • send key
  • Screen
  • get size
  • App

About

PyUnicon is a cross platform library to control keyboard and mouse.

License:MIT License


Languages

Language:Python 98.1%Language:Shell 1.9%