https://github.com/56kyle/window_input
A python library for sending inputs or taking screenshots of minimized / background windows.
https://github.com/56kyle/window_input
python-library
Last synced: 12 months ago
JSON representation
A python library for sending inputs or taking screenshots of minimized / background windows.
- Host: GitHub
- URL: https://github.com/56kyle/window_input
- Owner: 56kyle
- License: mit
- Created: 2020-08-28T17:46:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-22T20:08:34.000Z (about 4 years ago)
- Last Synced: 2025-06-10T23:03:22.242Z (12 months ago)
- Topics: python-library
- Language: Python
- Homepage:
- Size: 144 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# window_input
A set of tools for interacting with windows, primarily those that are non foreground and even minimized.
# Note
I'm currently in the process of rewriting this library in a much better manner under the new name [pywinput](https://github.com/56kyle/pywinput). The goal is to retain existing funcitonality, but in a much easier manner to work on that includes static typing and proper test driven devlopment. Additionally any keyboard and mouse related objects are going to try and mimick the syntax found in the mouse and keyboard libraries as much as possible.
### Installation
pip install window_input
### Recommended Usage
from window_input import Window, Key
### Examples
from window_input import Window, Key
import time
if __name__ == "__main__":
foreground = Window()
foreground.key_down(Key.VK_MENU) # Alt key's name
foreground.key_down(Key.VK_TAB)
time.sleep(.2)
foreground.key_up(Key.VK_MENU)
foreground.key_up(Key.VK_TAB)