Skip to content

Asynchronous experiment to move and click on desktop targets

Notifications You must be signed in to change notification settings

rikettsie/mmove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMOVE

This is a simple Rust program that I wrote with the purpose of learning tokio-rs, an asynchronous runtime for concurrency.

Three concurrent tasks are spawn and are managed in the main thread:

  • One task is spawned to move the mouse pointer in a round indefinitely;
  • Another task is spawned to gently kill the previous task after a while through a cancellation token;
  • Another task is spawned to take the mouse pointer to a target position and make a couple of clicks;

The three tasks are awaited for completion and then all restart in a loop.

Compilation and usage

In your terminal:

cargo build --release

Find the program mmove compiled under the release target directory (target/release/), and launch it:

mmove -x 140 -y 395 --v-offset 27

where x and y are the first target point to click, and v-offset is the vertical offset for the second point to be clicked.

Input parameters are parsed using the clap crate.

About

Asynchronous experiment to move and click on desktop targets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages