Last active
March 1, 2016 15:00
-
-
Save IOExceptional/4ad11f03dab88cbbe771 to your computer and use it in GitHub Desktop.
A coded ui to test in a rough area for a while
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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