오토핫키 커뮤니티

조회 수 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
분류 제목 글쓴이 최근변경 추천
자유 블루스택과 녹스에서 히트 돌릴때 색상차이 8 와이로 2017.11.09 4/0
정보 간단한 방법으로 길오아 오토핫키를 만들어보세요^^ 21 럭셔리형아 2018.02.07 4/0
정보 MS오피스 스타일 GUI 프로토타입 6 예지력1 2016.04.16 4/0
질문 오토핫키 에디터 제작. 9 프리헌터스 2015.09.11 4/0
정보 테일스타 내 포인트 조회기 16 와이로 2017.07.04 4/0
정보 팝업 알림, CleanNotify 3 예지력1 2015.11.11 4/0
정보 브레이브 헌터 ... 매크로.. 1 제발등업좀2 2015.07.10 4/0
자유 비활성이미지서치 중간정리(disp,adb) 11 우후훅 2017.04.03 4/0
정보 블루스택 해상도 변경하기... 10 로뎀나무 2015.04.15 4/0
자유 [AutoPM Ver 1.58] 포켓메이플스토리 매크로 8 은다 2015.04.25 4/0
정보 초보가 초보에게;; 핫키 사용법 9 악동주성 2024.07.11 4/0
질문 매크로좀 오랜만에 다시보고자 접속을... 7 joeypre 2021.09.27 3/0
자유 오랜만에 글남깁니다 ㅋ. 매우많이.. 늦었지만 복들 ... 3 제발등업좀2 2016.01.10 3/0
정보 앱아이콘 터치없이 adb로 앱 실행 시키는 방법 18 와이로 2021.01.23 3/0
정보 오토핫키를 간단히 쓰고싶지만 너무 어렵다고 느낄때 9 HyunsD 2018.02.07 3/0
정보 제가 쓰는 픽셀피커입니다(스크립트) 6 와이로 2017.02.11 3/0
정보 지니모션 디바이스(타이틀) 검색 ddl 소스 9 핸콕 2015.10.11 3/0
질문 텍스트를 가져오고 싶습니다. 6 _Crash 2022.12.14 3/0
정보 INI 를 쉽게 사용해봅시다. 11 모바게 2017.11.01 3/0
정보 DynaScript - Child 프로세스로 코드 실행 13 예지력1 2019.07.16 3/0
Board Pagination Prev 1 2345678910 ... 209 Next
/ 209

전체 최신 인기글

전체 주간 인기글