Skip to content

Instantly share code, notes, and snippets.

@IOExceptional
Last active March 1, 2016 15:00
Show Gist options
  • Save IOExceptional/4ad11f03dab88cbbe771 to your computer and use it in GitHub Desktop.
Save IOExceptional/4ad11f03dab88cbbe771 to your computer and use it in GitHub Desktop.
A coded ui to test in a rough area for a while
Random rnd = new Random();
for(int i = 0; i < 1000; i++)
{
bool movement = rnd.NextInt(0, 10) > 9;
int x = 635 + (movement ? rnd.NextInt(-3, 3) : 0);
int y = 295 + (movement ? rnd.NextInt(-3, 3) : 0);
Mouse.MoveTo(x, y);
Mouse.Click();
Process.Wait(rnd.NextInt(1500, 3000));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment