Code: Select all
#IfWinActive, ahk_exe Photoshop.exe
#InstallKeybdHook
Loop {
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
}
if color = ff0000 ; Color here
#if getkeystate("Lbutton","p") ; as long im pressing Lbutton this script will run and send the b key
Send, {b}
return
#if