Skip to content

Commit

Permalink
Try to fix macro (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
dadodasyra authored Mar 10, 2024
1 parent 6d4a4eb commit e91179d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ async fn get_last_updated_server_ip(api: State<'_, Arc<RwLock<Api>>>) -> Result<
fn drop_anchor() -> bool {
if set_focus_to_window("Sea Of Thieves") {
// Maybe we shouldn't hardcode a sleep duration, but I don't see any other way to do it
sleep(Duration::from_millis(10));
sleep(Duration::from_millis(50));

// 2x Left arrow key to focus the button
send_key(0x25);
sleep(Duration::from_millis(1));
sleep(Duration::from_millis(50));
send_key(0x25);

sleep(Duration::from_millis(1));
sleep(Duration::from_millis(50));
send_key(0x0D); // Enter key
return true;
}
Expand Down

0 comments on commit e91179d

Please sign in to comment.