Basically I have an app on my phone I'm trying to create a script for, by doing this I've connected my phone to my pc so I can view the phone screen on my pc (Bluestacks isn't working with this app sadly so can't use that).
What I have to do in the game is press the falling objects in the order they fall before they reach the bottom of the screen.
https://imgur.com/a/BMZU4hm
The white dots are the falling objects that I want my mouse to locate and click on.
Currently this is how far I've gotten
Code: Select all
^P::
MouseClick, left, 356, 939 ; The start button for the game
return
Loop, 210
$location = PixelSearch (3, 321, 529, 789, FEFFFE, 5, fast RGB)
If IsArray ($location) = True Then
MouseClick, left, $location[0], $location[1], 1, 0
}
^L::Pause
Right now my problem is that the pixel search is not locating the falling objects nor clicking them
I'd really appreciate help with this and please ask further questions if I didn't explain well enough cause I'm really awful at explaining