Struct rsbot::Bot
[−]
[src]
pub struct Bot { /* fields omitted */ }
Bot is a struct that stores data that might be needed by the underlying functions.
Methods
impl Bot
[src]
fn new() -> Bot
new creates a new Bot struct to store data that might be needed.
fn push_key(&self, string: &str)
push_key performs a single keypress.
fn type_keys(&self, string: &str)
type_keys types a series of keys.
fn set_mouse_pos(&mut self, x: i32, y: i32)
set_mouse_pos moves the mouse absolutely
fn move_mouse(&self, x: i32, y: i32)
move_mouse moves the mouse relatively