#[mirust_fn]
fn my_command(
m_wnd: HWND,
a_wnd: HWND,
data: String,
parms: String,
show: BOOL,
nopause: BOOL,
) -> mirust::MircResult {
let command = "echo -st * Message from 🦀 Rust: $1-".to_string();
let my_string = format!("You sent me: {}", data);
mirust::MircResult {
code: 2, // Command
data: Some(command),
parms: Some(my_string),
}
}