White to Red pixel Checker

Ask gaming related questions (AHK v1.1 and older)
Veaex
Posts: 1
Joined: 17 Mar 2018, 16:20

White to Red pixel Checker

17 Mar 2018, 16:26

Hello,
i want to make a script that basically react and click on a selected pixel in the hex color of that (#aa170c) in the middle of the screen (1920x1080)

short explaination:

a script that leftclick on a 1920x1080 perfect in the middle, when a white pixel gets to red (#aa170c)
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: White to Red pixel Checker

17 Mar 2018, 22:56

Does this work?

Code: Select all

SetTimer, Check, 0
return

Check:
PixelGetColor, Color, (A_ScreenWidth//2), (A_ScreenHeight//2) 
If (Color = AA170C) 
Click, (A_ScreenWidth//2), (A_ScreenHeight//2) 
return
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 41 guests