Skip to main content

Python Human Movement is a python package which imitates human movements

Project description

Python Human Movements is a python package which imitates human movements

Author: Joe Tilsed | Created: 19.06.2020 | Last Updated: 20.06.2020 | Version 0.0.3

pyHM

Python Human Movements is a python package which imitates human movements.

Installation

$ pip install pyHM

Getting Started

Mouse

Importing the mouse object from the parent package.

from pyHM import mouse

print(type(mouse))
>> <class 'mouse.Mouse'>

Mouse.move()

Have your mouse move across your screen to an (x, y) coordinate like a human would.

from pyHM import mouse

destination_x = 16
destination_y = 25

mouse.move(destination_x, destination_y)
>> *Your mouse cursor moves to (16, 25) as if it were a human*

You can also add a multiplier which will either speed-up or slow down the mouse movement depending on what you want. The higher the number the slower the movement, you can also have floats such as 0.1337.

from pyHM import mouse

x = 5
y = 2

mouse.move(x, y, multiplier=10)
>> *Your mouse cursor moves to (5, 2) as if it were a human
    at about 10 times the speed*

Mouse.get_current_position()

This will return your mouses current x and y coordinate.

from pyHM import mouse

print(mouse.get_current_position())
>> (1954, 122)
# That's all folks...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyHM-0.0.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

pyHM-0.0.3-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page