Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode, Pixel, Screen
- Loop
- {
- PixelSearch, Px, Py, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x00FF00, 5, Fast RGB
- if ErrorLevel = 0
- {
- MouseMove, %Px%, %Py%, 0
- ; Add actions here once the green color is detected
- ; For example: Click, Left
- }
- Sleep, 1000 ; Adjust the delay as needed
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement