Need help about make the code work Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Galakrond
Posts: 26
Joined: 18 Dec 2022, 12:23

Need help about make the code work

08 May 2023, 12:35

Code: Select all

PixelGetColor, color , 686 , 662, 666, 675 RGB
if color = 0x442E7D
SendInput {1}
How can i make this code work?

Its actually working with '' PixelGetColor, color , 686 , 662' RGB'

But i need to make it work like ''PixelGetColor, color , 686 , 662, 666, 675 RGB''

Thanks for any help.


[Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.]
User avatar
boiler
Posts: 17393
Joined: 21 Dec 2014, 02:44

Re: Need help about make the code work  Topic is solved

08 May 2023, 16:06

You can't just decide you want to use extra parameters with a command. PixelGetColor finds the color at a single pixel location. Why do you think it should work this way? How would that work over a rectangular area since there would be potentially many different colors in that area? Also, the RGB would need to be in a parameter of its own. You have no comma separating it from what would be the parameter before it.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Mateusz53, peter_ahk, Rohwedder and 174 guests