오토핫키 실행하고 F1 누르면 도움말이 나오는데, 명령어 중에 GUI 를 찾아서 예문들을 보다보면 다음과 같은 예문이 나옵니다. 이 예문은 예전에 프로그램하면서 기억해 둔거라서 쉽게 찾았습니다. 첨엔 보이는 예문들 하나씩 다 해봤죠.
;-----------------------------------
; Example: On-screen display (OSD):
CustomColor = EEAA99 ; Can be any RGB color (it will be made transparent below).
Gui, +AlwaysOnTop +LastFound +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Font, s24
Gui, Add, Text, vMyText cLime, XXXXX YYYYY ; XX & YY serve to auto-size the window.
; Make all pixels of this color transparent and make the text itself translucent (150):
WinSet, TransColor, %CustomColor% 150
Gui, -Caption ; Remove the title bar and window borders.
SetTimer, UpdateOSD, 200
Gosub, UpdateOSD ; Make the first update immediate rather than waiting for the timer.
Gui, Show, x0 y400 NoActivate ; NoActivate avoids deactivating the currently active window.
return
UpdateOSD:
MouseGetPos, MouseX, MouseY
GuiControl,, MyText, X%MouseX%, Y%MouseY%
return
;-----------------------------------------
이것을 열심히 쳐다보면서 숫자 같은거 바꾸면서 여러번 실행해보면 뭐가뭔지 대강 눈에 보입니다.
그래서 이것저것 고쳐보다가 배경색깔이 뭔지 알아내고 글자색이 뭔지 알아내고 글자 붙이는 곳 등등을 알아내어서 만들면 이렇게 됩니다.
;-------------------------------------------------------------
CustomColor = FFFFFF ; FFFFFF는 흰색배경, 000000는 검은색배경
Gui, +AlwaysOnTop +LastFound +ToolWindow
; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Font, s9
Gui, Add, Text, vMyText cBlack, 한글이 이상하게 입력되면 여기를 누르세요
; cBlack은 글자색이 검은색, cWhite는 흰색
;WinSet, TransColor, %CustomColor% 120 ; 투명도 조절
Gui, -Caption ; Remove the title bar and window borders
; Make the first update immediate rather than waiting for the timer.
Gui, Show, x600 y0 NoActivate
; NoActivate avoids deactivating the currently active window. X600 가로위치 Y0 세로위치
return
;----------------------------------------------------------------
이제 해야할 것은 딸깍(클릭)하면 다른 것을 실행하는 명령어를 알아내는 겁니다. 모르니까 시간을 내어서 찾아봐야겠죠?
이런식으로 만듭니다. 복잡해 보이지만 시간있는 분에게는 재미있는 놀이일 수도 있습니다.
;-----------------------------------
; Example: On-screen display (OSD):
CustomColor = EEAA99 ; Can be any RGB color (it will be made transparent below).
Gui, +AlwaysOnTop +LastFound +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Font, s24
Gui, Add, Text, vMyText cLime, XXXXX YYYYY ; XX & YY serve to auto-size the window.
; Make all pixels of this color transparent and make the text itself translucent (150):
WinSet, TransColor, %CustomColor% 150
Gui, -Caption ; Remove the title bar and window borders.
SetTimer, UpdateOSD, 200
Gosub, UpdateOSD ; Make the first update immediate rather than waiting for the timer.
Gui, Show, x0 y400 NoActivate ; NoActivate avoids deactivating the currently active window.
return
UpdateOSD:
MouseGetPos, MouseX, MouseY
GuiControl,, MyText, X%MouseX%, Y%MouseY%
return
;-----------------------------------------
이것을 열심히 쳐다보면서 숫자 같은거 바꾸면서 여러번 실행해보면 뭐가뭔지 대강 눈에 보입니다.
그래서 이것저것 고쳐보다가 배경색깔이 뭔지 알아내고 글자색이 뭔지 알아내고 글자 붙이는 곳 등등을 알아내어서 만들면 이렇게 됩니다.
;-------------------------------------------------------------
CustomColor = FFFFFF ; FFFFFF는 흰색배경, 000000는 검은색배경
Gui, +AlwaysOnTop +LastFound +ToolWindow
; +ToolWindow avoids a taskbar button and an alt-tab menu item.
Gui, Color, %CustomColor%
Gui, Font, s9
Gui, Add, Text, vMyText cBlack, 한글이 이상하게 입력되면 여기를 누르세요
; cBlack은 글자색이 검은색, cWhite는 흰색
;WinSet, TransColor, %CustomColor% 120 ; 투명도 조절
Gui, -Caption ; Remove the title bar and window borders
; Make the first update immediate rather than waiting for the timer.
Gui, Show, x600 y0 NoActivate
; NoActivate avoids deactivating the currently active window. X600 가로위치 Y0 세로위치
return
;----------------------------------------------------------------
이제 해야할 것은 딸깍(클릭)하면 다른 것을 실행하는 명령어를 알아내는 겁니다. 모르니까 시간을 내어서 찾아봐야겠죠?
이런식으로 만듭니다. 복잡해 보이지만 시간있는 분에게는 재미있는 놀이일 수도 있습니다.
첨부파일첨부된 파일이 1개 있습니다.
다음검색
스크랩 원문 :
♡ 세벌식 사랑 모임 ♡