I have no clue how to get this to work
²::
var2 = PixelGetColor, color, 900, 400, RGB
if (var1 = "C6C6C6")
{
MsgBox succes
}
else {MsgBox c6 fail}
}
pixelgetcolor to variable
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: pixelgetcolor to variable
PixelGetColor Is a command not a function
A command like that has the return as the first parameter
So in your posted code the variable color holds the returned color from 900,400
A command like that has the return as the first parameter
So in your posted code the variable color holds the returned color from 900,400
Courses on AutoHotkey
My Autohotkey Blog
Re: pixelgetcolor to variable
Also, PixelGetColor returns colors in this format: 0xC6C6C6 So you will have check for that.
The line else {MsgBox c6 fail} uses incorrect syntax. Either remove the { } or use them like you did with if.
(Please compare the docs for else and { }-blocks)
The line else {MsgBox c6 fail} uses incorrect syntax. Either remove the { } or use them like you did with if.
(Please compare the docs for else and { }-blocks)
Who is online
Users browsing this forum: Bing [Bot], Spawnova and 263 guests