Package: pyHM
Python Human Movements is a python package which imitates human movementsAuthor:Joe Tilsed| Created: 19.06.2020 | Last Updated: 31.10.2022 | Version 0.0.7pyHMPython Human Movements is a python package which imitates human movements.Installation$ pip install pyHMGetting StartedMouseImporting the mouse object from the parent package.frompyHMimportmouseprint(type(mouse))>> <class 'mouse.Mouse'>Mouse.move()Have your mouse move across your screen to an(x, y)coordinate like a human would.frompyHMimportmousedestination_x=16destination_y=25mouse.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 as0.1337.frompyHMimportmousex=5y=2mouse.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.frompyHMimportmouseprint(mouse.get_current_position())>> (1954, 122)Mouse.click()Will click wherever the mouse is, unless parsed with eitherandxora y or both.
With just thexvalue parsed the y value will be yourcurrent yposition.
With just theyvalue parsed the x value will be yourcurrent xposition.
If bothxandyare parsed, the cursor will move there first then click.
Note: All movements carried out using theMouse.move()method so will still be human-like.For the below examples, assume your current mouse position is (160, 400)Example with no X or YfrompyHMimportmousemouse.click()>> *Your mouse clicks where it is*Example with X but no YfrompyHMimportmousemouse.click(x=50)>> *Your mouse cursor moves to (50, 400) as if it were a human
    and then clicks*Example with not X but with YfrompyHMimportmousemouse.click(y=20)>> *Your mouse cursor moves to (160, 20) as if it were a human
    and then clicks*Example with both X and YfrompyHMimportmousemouse.click(x=50,y=20)>> *Your mouse cursor moves to (50, 20) as if it were a human
    and then clicks*Mouse.double_click()The same with click as far asXandYparameters, however the click will be a double left click.
The interval between each click will be random between 0.001 to 0.499 seconds.frompyHMimportmousemouse.double_click()>> *Your mouse double left clicks where it is*Mouse.right_click()Exactly the same asMouse.click()but with the right button.frompyHMimportmousemouse.right_click()>> *Your mouse right clicks where it is*Mouse.down()Holds down the mouse button, default is your left button, however you can parsebutton='right'for the right button to be used.Example with no argumentsfrompyHMimportmousemouse.down()>> *Your mouse left button is held down*Example with right button argumentfrompyHMimportmousemouse.down(button='right')>> *Your mouse right button is held down*Mouse.up()AlikeMouse.down()but lifts up the mouse button, default is your left button, however you can parsebutton='right'for the right button to be used.Example with no argumentsfrompyHMimportmousemouse.up()>> *Your mouse left button is released*Example with right button argumentfrompyHMimportmousemouse.up(button='right')>> *Your mouse right button is released*# That's all folks...