PyDirectInput
This library aims to replicate the functionality of the PyDirectInput mouse and keyboard inputs, but by utilizing NewInput you can use the duration on moveTo(x, y, duration) and move(x, y, duration).
pip install pynewinput
Documentation
The NewInput and DirectInput key codes are the same ones, https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-input
You might also be interested in the main SendInput documentation here: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput
Features Implemented
- Fail Safe Check
- Pause
- position()
- size()
- moveTo(x, y, duration)
- move(x, y, duration) / moveRel(x, y, duration)
- mouseDown()
- mouseUp()
- click()
- keyDown()
- keyUp()
- press()
- write() / typewrite()
Features NOT Implemented
- scroll functions
- drag functions
- hotkey functions
- support for special characters requiring the shift key (ie. '!', '@', '#'...)
- ignored parameters on mouse functions: logScreenshot
- ignored parameters on keyboard functions: logScreenshot
Metadata
Release files for PyNewInput 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyNewInput-1.0.4.tar.gz | 7.0 kB | Without provenance | Details for PyNewInput-1.0.4.tar.gz |
Release files / PyNewInput-1.0.4.tar.gz
| Download URL | PyNewInput-1.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b5ac357b376227a8af6f9f04c1b92a563288c0a16497ab563f89a8145bb422a
|
|
BLAKE2b-256 checksum How to use checksums |
c6ce48928263019bbaaed3abef2cd5b02f69675d3c2effa522082988156efe54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3
|
Security for PyNewInput 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.