Hi everyone!
I need some help creating a simple script that does the following:
Press left arrow key
Wait 3 seconds
Press right arrow key
Wait 3 seconds
This should be done until it detects a certain pixel color on the screen.
Can anyone help me do this or give me any tips?
Thanks!
Simple script for a browser game
-
- Posts: 4
- Joined: 27 Jul 2016, 20:04
- mizutamari
- Posts: 9
- Joined: 02 Dec 2018, 22:06
Re: Simple script for a browser game
Here's an example that may or may not work:
Naturally, you'll need to tell it what xPos, yPos and desiredColor should be.
Code: Select all
While (pxColor != desiredColor) {
SendInput {Left}
Sleep, 3000
SendInput {Right}
Sleep, 3000
PixelGetColor, pxColor, xPos, yPos
}
Naturally, you'll need to tell it what xPos, yPos and desiredColor should be.
Who is online
Users browsing this forum: Gemos and 71 guests