Metadata-Version: 2.4
Name: pressing
Version: 0.2.3
Summary: A cross-platform automation module for pressing, releasing, clicking keys and mouse, checking pixels, hotkeys, and more.
Author-email: Mongoose <mongoosethefirst@gmail.com>
Project-URL: Homepage, https://pypi.org/project/pressing/
Project-URL: Source, https://github.com/yourgithub/pressing
Project-URL: Issues, https://github.com/yourgithub/pressing/issues
Keywords: keyboard,automation,macro,pynput,press,pyautogui,input
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: Microsoft :: Windows
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: pynput
Requires-Dist: pyautogui
Requires-Dist: keyboard
Requires-Dist: pywin32

# pressing

A Python automation module for simulating keyboard and pixel actions.

```python
import pressing
from pressing import (
    press,
    release,
    click,
    run_macro,
    pressed,
    pixel,
    pixel_color,
    pixel_is,
    write,
    hotkey,
    wait,
    wait_key,
    hold,
    mouse_click,
    mouse_move,
    creator,
)

# Change typing speed
pressing.typewait = 0.05

# Display creator info
creator()

# Keyboard actions
press("shift")
click("a")
release("shift")

write("hello world")
hotkey("ctrl", "s")

# Run a macro list
run_macro(["a", "b", "c", "enter"])

# Wait for a key press
wait_key("space")

# Pixel checks
color = pixel_color(500, 300)
print("Pixel color:", color)

if pixel_is(500, 300, (255, 0, 0)):
    print("That pixel is red.")

# Pixel + RGB tuple check
if pixel((500, 300), (255, 255, 255)):
    print("Match!")

# Mouse actions
mouse_move(300, 400)
mouse_click("left")
