Skip to content

ron-popov/Python-Input-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Input Library

A library that allowes to simulate windows key presses.
The library consists of 3 sections, each one has different methods that do different things. In this document i will list the methods that each one of the 3 files contains, their description, the parameters you should pass them and also their return value.

utils

GetMonitorRes

Description : Returns the resolution of your monitor. Not tested for multiple monitor setups.
Parameters : None.
Return value : Tuple of length 2, first element represents width and second element represents height.

Delay

Description : Delays the program for a certain amount of time.
Parameters : The number of seconds to delay the program. Doesn't have to be a whole number.
Return value : None.


keyboard

The keyboard file contains methods that interact with the keyboard.

HoldKey

Description : Starts pressing a certain key.
Parameters : A hexadecimal key code of the wanted key. A list of key hexadecimal key codes can be found here.
Return value : None.

ReleaseKey

Description : Releases a certain key.
Parameters : A hexadecimal key code of the wanted key. A list of key hexadecimal key codes can be found here.
Return value : None.


mouse

The mouse file contains method that interact with the mouse.

GetMousePos

Description : Returns the position of the mouse.
Parameters : None.
Return value :

  • The mouse x location.
  • The mouse y location.

SetMousePos

Description : Changes the mouse location
Parameters :

  • The desired x location.
  • The desired y location.

Return value: None.

HoldRightButton

Description : Starts pressing the right mouse button
Parameters : None.
Return value : None.

HoldLeftButton

Description : Starts pressing the left mouse button
Parameters : None.
Return value : None.

ReleaseRightButton

Description : Stops pressing the right mouse button
Parameters : None.
Return value : None.

ReleaseLeftButton

Description : Stops pressing the left mouse button
Parameters : None.
Return value : None.

About

A library that allows simulation of keyboard key presses for windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages