AutoClick::User32
Windows User32 API bindings for AutoClick
This module provides Crystal bindings for the Windows User32.dll functions needed for mouse and keyboard automation.
Instance methods
Get current cursor position
- point: Byte buffer to store the position (8 bytes for x,y coordinates) Returns: 1 on success, 0 on failure
Get the state of a virtual key
- virt_key: Virtual key code Returns: Key state (negative if pressed, positive if toggled on)
Get system metrics
- index: System metric index (0=screen width, 1=screen height) Returns: The requested system metric value
Send input events to the system
New canonical order matching WinAPI: UINT SendInput(UINT cInputs, LPINPUT pInputs, int cbSize);
- count: Number of INPUT structures
- inputs: Concatenated INPUT structure bytes
- input_size: Size of a single INPUT structure Returns: Number of events successfully inserted into the input stream
Deprecated legacy parameter order kept for backward compatibility. Will be removed in a future minor release.