A library used to control programs(mainly games) without focusing them.
This isn't guaranteed to work and will sometimes require to be very creative with how you perform actions.
Example:
import DistanceControl as dc
hwnd = dc.Windows_by_title('GamesTitle', strict=True, limit=1)[0]
# Open up menu(It doesn't close it)
dc.KeyPress_Down(hwnd, dc.con.VK_ESCAPE)
dc.KeyPress_Up(hwnd, dc.con.VK_ESCAPE)
# Press the right key
dc.KeyPress_Down(hwnd, dc.con.VK_RIGHT)
dc.KeyPress_StopAll(hwnd) # KeyPress_Up() won't work. Why? I don't know, for every program it's different!
Module's functions are easy to understand.
Changelog
DistanceControl 0.0.2.5:
- Made usage much cleaner.
- Fixed a few tiny bugs.
DistanceControl 0.0.2:
- Fixed unable to download package.
DistanceControl 0.0.1:
- Initial release.
Metadata
Release files for distancecontrol 0.0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| distancecontrol-0.0.2.5.tar.gz | 3.3 kB | Details |
Release files / distancecontrol-0.0.2.5.tar.gz
| Download URL | distancecontrol-0.0.2.5.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
845109687dab928d91ff76eeec91b369e926a48265a4c073c02b3e1c049de93d
|
|
BLAKE2b-256 checksum How to use checksums |
76042be51d48c1c84304fa8e7845c9029926216b5b3390268c0aaeb4834cda1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.5
|