I need some help writing a very simple script that searches a area of the screen for a certain color and if found sends a keypress.
The script should work like so:
When numpad 7 is pressed, autoit should send a keypress of "W", search the pixel range of 560,620(top left pixel)/580,645(bottom right pixel), wait till it finds color#1, send 2nd "W" keypress
When numpad 8 is pressed, autoit should send a keypress of "W", search the pixel range of 560,620(top left pixel)/580,645(bottom right pixel), wait till it finds color#2, send 2nd "W" keypress
When numpad 8 is pressed, autoit should send a keypress of "W", search the pixel range of 560,620(top left pixel)/580,645(bottom right pixel), wait till it finds color#3, send 2nd "W" keypress
if someone doesn't mind programming this for me I would REALLY appreciate it.
Thanks!