매크로

조회 수 168 추천 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
분류 제목 글쓴이 최근변경 추천
공유 디컴방지 컴파일러 정식버전 v2.00 digim0 2023.04.18 0/0
공유 AHK로 텍스트 타이핑 vim처럼 어디서든 사용하거나 마... 엘런튜링 2023.03.30 0/0
공유 디컴방지 컴파일러 정식버전 v1.01 digim0 2023.03.31 0/0
공유 와이로 컴파일러 디컴파일 도구 (3/16 수정) 6 wejkqv 2023.03.27 0/0
공유 디컴방지 컴파일러 v3 digim0 2023.03.14 0/0
공유 와이로 컴파일러 디컴파일 도구 wejkqv 2023.03.07 0/0
공유 오토핫키 디컴방지 컴파일러 4 digim0 2023.03.09 1/0
공유 롤 자동레디, 선픽 - lol first pick 압살맨블로그 2022.10.24 0/0
공유 gdip 이용한 그레이스케일 데드비프 2022.09.10 0/0
공유 조촐한 색상 검출(16진수, 10진수, RGB) 3 데드비프 2023.06.25 0/0
공유 압살맨 플레이어 ver 1.0.5a 1 압살맨블로그 2022.09.01 0/0
공유 매크로 제작 프로그램 압살맨블로그 2022.08.29 0/0
공유 LoL 토큰작 패스작 메크로 (무료 이벤트중) 아크이 2023.02.24 0/0
공유 LG폰 Q메모+ lqm 파일 일괄 복구. LQM to TXT sama 2023.02.24 0/0
공유 마우스 드래그 선택으로 자동번역 sama 2023.02.24 0/0
공유 프로그램 종료시 스스로 지워지는 스크립트 1 노터스 2020.08.08 0/0
공유 오토핫키 호환 및 퍼플 연동 가능한 HID스틱입니다. M2U 2020.03.06 0/0
공유 자작)매크로 제작에 유용한 툴 ImageTool for Game 14 sama 2021.04.22 2/0
공유 네이버 실시간 검색어 크롤링 10 BotLoi 2020.07.24 1/0
공유 pc카톡 채팅자동반응(비활성) 소스입니다 16 sama 2018.11.26 2/0
Board Pagination Prev 1 2 Next
/ 2

전체 최신 인기글

전체 주간 인기글