5 releases
new 0.1.4 | Dec 11, 2024 |
---|---|
0.1.3 | Dec 11, 2024 |
0.1.2 | Dec 11, 2024 |
0.1.1 | Dec 11, 2024 |
0.1.0 | Dec 10, 2024 |
#525 in Development tools
686 downloads per month
12KB
188 lines
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.
Cygnixy framework is a platform for creating bots in EVE Online.
Features
-
System Interaction:
- Control the mouse position and simulate mouse clicks.
- Perform drag-and-drop operations.
- Simulate key presses.
- Send messages to Discord channels via webhooks.
-
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
sleep
function.
- Introduce delays in Lua scripts with a
Available Functions
sleep(milliseconds: u64)
Pauses the execution for the specified duration.
Example:
cygnixy.sleep(1000) -- Pause for 1 second
mouse_move(x: i32, y: i32)
Moves the mouse cursor to the specified screen coordinates.
Example:
cygnixy.mouse_move(500, 300)
drag_and_drop(x: i32, y: i32)
Performs a drag-and-drop operation to the specified screen coordinates.
Example:
cygnixy.drag_and_drop(800, 600)
mouse_click_left()
Simulates a left mouse button click.
Example:
cygnixy.mouse_click_left()
mouse_click_right()
Simulates a right mouse button click.
Example:
cygnixy.mouse_click_right()
press_key(key: u8)
Simulates a key press.
Example:
cygnixy.press_key(65) -- Press 'A' key
Logging Functions
info(message: String)
Logs an informational message.
Example:
cygnixy.info("This is an info message")
debug(message: String)
Logs a debug message.
Example:
cygnixy.debug("This is a debug message")
error(message: String)
Logs an error message.
Example:
cygnixy.error("This is an error message")
discord_send(webhook_url: String, username: String, message: String)
Sends a message to a Discord channel via a webhook.
Example:
cygnixy.discord_send(
"https://discord.com/api/webhooks/your-webhook-id/your-webhook-token",
"BotName",
"Hello, Discord!"
)
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.
Dependencies
~142MB
~2.5M SLoC