Skip to content

A keyboard and mouse automation functions package for my own convenience.

License

Notifications You must be signed in to change notification settings

Daviid-P/EasyAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mouse and keyboard automation functions for my own convenience.

To install: pip install easyautomation

To use:

from easyautomation import mouse, keyboard

# Move to the (x,y) coordinates (500,500) on the monitor
mouse.moveTo(x=500, y=500)

# Open Chrome
keyboard.win()
keyboard.instaWrite("chrome")
keyboard.enter()
keboard.maximizeWindow()

Mouse methods

  • moveTo(x, y, wiggle=True)
  • moveToAndClick(x, y, wiggle=True, image=None, first=False)

Keyboard Methods

  • newTab()
  • ctrlEnter()
  • maximizeWindow()
  • snapLeft()
  • addressBar()
  • selectAll()
  • copy()
  • paste()
  • write(string)
  • instaWrite(string)
  • f12()
  • enter()
  • backspace()
  • escape()
  • space()
  • win()
  • left()
  • right()
  • up()
  • down()

Note:

I made this years ago, don't even remember why I did what I did and how I did it.

If I ever feel like it I'll update this to take a numpy array as an image input instead of a string to look for a filename in a folder.

About

A keyboard and mouse automation functions package for my own convenience.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages