오토핫키 커뮤니티

조회 수 218 추천 0 댓글 3


ZuClkzu.png
색상의 바리에이션을 씹고 같은 계열은 같은 색상으로  (RGB만)

ThKUPgm.png
이렇게 채도가 지멋대로라 바리에이션 만으로는 원하는 작동이 안될 때









;=======================================================================================================

global found2, found3, a:=10, b:=11, c:=12, d:=13, e:=14, f:=15 dec_r, dec_g, dec_b

;=======================================================================================================
gui, submit, nohide
Gui, overlay1:Color, 0000ff
Gui, overlay2:Color, 0000ff
Gui overlay1:+lastfound +AlwaysOnTop -Caption +ToolWindow
Gui overlay2:+lastfound +AlwaysOnTop -Caption +ToolWindow
Gui, overlay1:Font, s11 CDefault Bold, Verdana ;font1
Gui, overlay2:Font, s11 CDefault Bold, Verdana ;font2
Gui, overlay1:Add, Text, w170 vfound2 clime, xxxxx yyyyy
Gui, overlay2:Add, Text, w170 vfound3, xxxxx yyyyy

settimer, pixelGET, 200

pixelGET:
pixelget()


return




PIXELGET() ;rgb
{
MouseGetPos, xx, yy
PixelGetColor, found1, %xx%, %yy%, RGB


loop 6
{
hex%a_index% := substr(found1, a_index+2, 1)

if hex%a_index% is digit ;숫자
{
if (a_index=1 or a_index=3 or a_index=5)
{
hex%a_index% := hex%a_index%*16
}
}

else if hex%a_index% is not digit ;문자열
{
fixer := hex%a_index%
fixer := %fixer%
if (a_index=1 or a_index=3 or a_index=5)
{
hex%a_index% := fixer*16
}
if (a_index=2 or a_index=4 or a_index=6)
{
hex%a_index% := fixer*1
}

}

}
dec_R := hex1+hex2
dec_G := hex3+hex4
dec_B := hex5+hex6

guicontrol,overlay2:text,found3, R:%dec_R%|G:%dec_G%|B:%dec_B% ;
;guicontrol,overlay2:text,found3, %hex1%, %hex2%, %hex3%, %hex4%, %hex5%, %hex6% ;테스트 용

whatcolor :=whatcolor(dec_r,dec_g,dec_b)

guicontrol,overlay1:text,found2,%found1%%whatcolor%

Gui, overlay1:Show, x0 y400 w200 NoActivate
Gui, overlay2:Show, x0 y450 w200 NoActivate




return
}
;============================================================================================

;========
whatcolor(CR,CG,CB)
{
ID1:=CR*2
ID2:=(CG + CB)*2
if (ID1>ID2)
{
whatcolor=||★Red
}
ID1:=CG*2
ID2:=(CR + CB)*2
if (ID1>ID2)
{
whatcolor=||★Grn
}
ID1:=CB*2
ID2:=(CG + CR)*2
if (ID1>ID2)
{
whatcolor=||★Blue
}
return whatcolor
}


  • 핫키초봉 2022.09.04 07:55
    윈도우 스파이로 찍을때 채도때문에 rgb값 계속 변하는것도 이걸로 해결가능한가요??
  • 슉슉이 2022.10.02 10:49

    오랜만에 왔는데 좋은 팁이 있네요. 감사합니다!

  • vixxt 2023.06.25 23:19

    유용하게 사용 가능하겟네요


List of Articles
분류 제목 글쓴이 최근변경 추천
질문 비활성 메크로는 오토핫키만 가능한가요? 28 으뜸어린이 2014.12.01 0/0
질문 오토핫키 잘하시는분 도움좀 부탁드려요. 3 라디 2014.11.15 0/0
질문 GUI 버튼 체크상태 실시간판별 어떻게하나요. 13 우후훅 2014.11.14 0/0
질문 혹시 핫키 눌러서 수행중에 다른핫키도 먹히게 하는게 ... 3 으뜸어린이 2014.11.15 0/0
질문 이미지서치 확장자 질문드립니다. 7 생물 2024.08.09 0/0
질문 gui버튼 시작중지 보임안보임설정부분요. 11 우후훅 2015.03.07 0/0
자유 SciTE4AutoHotkey 자료 요청드립니다. 8 레이븐 2014.11.18 0/0
질문 이미지서치 부분입니다. 변수에 값을넣는데요. 4 우후훅 2014.11.11 0/0
정보 이미지서치 후 비활성 클릭 17 lidmt 2016.07.02 0/0
질문 비활성 마우스 질문드립니다. 3 lidmt 2018.02.20 0/0
질문 themida 사용하시는분 계신가요? 7 호로록뚝딱 2014.11.26 0/0
자유 숨어야산다님 조언 따라 만들어본 픽셀,좌표 확인기! 12 으뜸어린이 2024.08.09 2/0
질문 return 이 궁금합니다 ㅠㅠ 10 밴클리프 2014.11.11 0/0
질문 이미지서치 안되는점좀 알려주세요.. 4 파더 2014.11.09 0/0
질문 혹시 핫키 하나로 on,off 기능 수행할수 있나요? 10 으뜸어린이 2014.11.10 0/0
질문 외국포럼같은데 보면 직접만든 함수같은게 있던데.. 어... 3 디디마 2014.11.09 0/0
질문 비활성클릭 자꾸 몇픽셀아래쪽 찍네요. 7 우후훅 2015.01.20 0/0
자유 오토핫키 명령어잘아시는분~? 9 파더 2014.12.01 0/0
자유 서버인증 + 하드시리얼 인증 관련 11 파더 2015.11.23 0/0
질문 SciTE4AutoHotKey 쓸때, 한글 입력이 깨지는건 왜 그런... 6 으뜸어린이 2014.11.09 0/0
Board Pagination Prev 1 ... 199200201202203204205206207 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글