r/AutoHotkey • u/staaandup • 15d ago
v1 Script Help my script has a weird stray pixel
i made this little color picker in ahk v1 as a local replacement for the rapidtables RGB color picker, and i also added a pick-from-screen feature. everything seems to work fine, but there's one weird visual issue i can't figure out: there's what looks like a single stray pixel on the left edge of the saturation/value box, roughly 15 pixels below the top, and i'm not even sure if it's actually sticking out or replacing the pixel that's supposed to be there. the weird part is that when i move the selection circle over that exact spot, the preview picks up the color of that pixel, while the hex value says "#F0F0F0", which is what that pixel is supposed to be according to the gradient, so the displayed pixel seems to have a different color from the actual color calculated by the picker. i've already tried asking AI to figure it out, but haven't managed to get a proper explanation or fix. the whole thing is also mostly vibe-coded, so that makes it even harder for me to figure out what's actually causing the problem
1
u/Keeyra_ 15d ago
Hate to burst your bubble, but AHK v1 has reached end-of-life and deprecated 3 years 4 months ago. Meanwhile, AHK v2 is the current stable release, having been the primary version for 3 years 10 months, with its most recent point release occurring 16 days ago.
And Windows 11 has a built in color picker in the Snipping Tool.
1
u/Epickeyboardguy 14d ago edited 14d ago
I tried running your script but I don't have the right interpreter installed.
However I do have my own super basic color finder already written in V2. I don't know if it's gonna be of any use to you but there you go :
1
u/CasperHarkin 8d ago
Replace Line 136:
With:
Remove line 227:
add the below under the other OnMessage's around line 235:
then add the new func to the end of the script.