Crates.io | plugin-lua-cygnixy |
lib.rs | plugin-lua-cygnixy |
version | 0.1.4 |
source | src |
created_at | 2024-12-10 21:30:00.616056 |
updated_at | 2024-12-11 15:09:29.691837 |
description | Cygnixy Core Lua Plugin is a plugin for the Cygnixy framework |
homepage | |
repository | https://github.com/cygnixy/plugin-lua-cygnixy.git |
max_upload_size | |
id | 1479079 |
size | 11,962 |
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.
System Interaction:
Logging:
tracing
.Utility Functions:
sleep
function.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
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!"
)
Get answers to all your questions, connect with other users, and explore the full potential of the Cygnixy framework.
This project is licensed under the MIT License.