Make ahk run script when a color is in coordinates
-
- Posts: 8
- Joined: 16 Jan 2023, 10:13
Make ahk run script when a color is in coordinates
I am looking to have a script I've made run when ahk detects a specific color in a specific area on my screen, can anyone help me out with this? I don't know where I'd begin and it's hard for me to understand.
-
- Posts: 8
- Joined: 16 Jan 2023, 10:13
Re: Make ahk run script when a color is in coordinates
This is my current code,
I have absolutely zero idea how to implement this into my script even when looking at the docs.
Code: Select all
#IfWinActive Chrome
f12::exitapp
`::suspend
*LButton::
While (GetKeyState("LButton", "P")) {
random rand, 41, 100
SendInput {Click Left}
sleep %rand%
}
Last edited by joedf on 08 Jun 2023, 17:20, edited 1 time in total.
Reason: fix [code] tags
Reason: fix [code] tags