Cygnixy Core Lua Plugin
Cygnixy Core Lua Plugin is a plugin for the Cygnixy framework, providing a collection of utility functions for interacting with the system, including mouse control, keyboard input, and logging features. This plugin is designed to integrate seamlessly with Lua scripts, enabling dynamic and flexible interactions within the Cygnixy framework.
The plugin is automatically integrated into the framework, requiring no manual setup. Once registered, its functions are immediately available for use in Lua.
Features
-
System Interaction:
- Control the mouse position and simulate mouse clicks.
- Perform drag-and-drop operations.
- Simulate key presses.
-
Logging:
- Log informational, debug, and error messages to the console using
tracing.
- Log informational, debug, and error messages to the console using
-
Utility Functions:
- Introduce delays in Lua scripts with a
sleepfunction.
- Introduce delays in Lua scripts with a
Available Functions
sleep(milliseconds: u64)
Pauses the execution for the specified duration.
Example:
cygnixy. -- Pause for 1 second
mouse_move(x: i32, y: i32)
Moves the mouse cursor to the specified screen coordinates.
Example:
cygnixy.
drag_and_drop(x: i32, y: i32)
Performs a drag-and-drop operation to the specified screen coordinates.
Example:
cygnixy.
mouse_click_left()
Simulates a left mouse button click.
Example:
cygnixy.
mouse_click_right()
Simulates a right mouse button click.
Example:
cygnixy.
press_key(key: u8)
Simulates a key press.
Example:
cygnixy. -- Press 'A' key
Logging Functions
info(message: String)
Logs an informational message.
Example:
cygnixy.
debug(message: String)
Logs a debug message.
Example:
cygnixy.
error(message: String)
Logs an error message.
Example:
cygnixy.
Join our Discord Community!
Get answers to all your questions, connect with other users, and explore the full potential of the Cygnixy framework.
License
This project is licensed under the MIT License.