{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/16"}],"enrichment":{"capability":"Automates mouse and keyboard input on Windows using DirectInput scan codes and SendInput(), providing an alternative to PyAutoGUI that works in DirectX applications like video games.","skillfed_tags":["windows-automation","game-input","directinput"],"use_cases":["Automate mouse and keyboard input in video games or DirectX applications where PyAutoGUI fails to register inputs.","Create bots or automation scripts for Windows games that require direct input simulation rather than virtual key codes.","Test game UI or input handling by programmatically simulating player mouse clicks and key presses.","Build automation tools for Windows applications that ignore standard input APIs and require DirectInput.","Supplement PyAutoGUI with DirectInput-based input for specific applications while keeping PyAutoGUI for other tasks."],"what_it_does":"PyDirectInput provides mouse and keyboard input automation for Windows by using DirectInput scan codes and the SendInput() win32 function instead of the older Virtual Key Codes and deprecated mouse_event()/keybd_event() functions. This makes it suitable for automating input in applications that rely on DirectX, such as video games, where PyAutoGUI often fails. The package is designed as a drop-in replacement for PyAutoGUI's input functions\u2014you can use both libraries together, substituting PyDirectInput only where PyAutoGUI doesn't work.\n\nThe library implements core input functions like moveTo(), click(), press(), keyDown(), keyUp(), and write(), but omits some PyAutoGUI features like scroll, drag, and hotkey functions. It has no external runtime dependencies and installs with low friction, but the project is abandoned: the last release was in February 2021 and the last commit in July 2023, so no maintenance or updates should be expected.","worth_installing":"Yes, but with caution. Install if you need DirectInput-based input automation for a Windows game or DirectX application where PyAutoGUI doesn't work, and you are comfortable maintaining the code yourself. The permissive MIT license and low install friction are positives. However, the abandoned status (no releases since 2021, last commit 2023) means no bug fixes, security updates, or compatibility work\u2014you are on your own if issues arise with newer Windows or Python versions."},"id":"pydirectinput","links":{"html":"https://skillfed.io/packages/pydirectinput","md":"https://skillfed.io/packages/pydirectinput.md","pypi":"https://pypi.org/project/pydirectinput/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2021-02-02","license_spdx":null,"license_treatment":"permissive","name":"PyDirectInput","python_support":"supports_current","summary":"Python mouse and keyboard input automation for Windows using Direct Input."},"popularity":{"monthly_downloads":108635,"position":12548,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.4"}
