Win Costumize

창의 위치나 크기, 항상위에 설정, 투명도 등을 조정할수 있는 간단한 툴입니다.


사용방법

1) 파일을 다운받아 적당한 곳에 압축을 풀고 파일(wincus.exe)을 실행합니다.

2) 창이름란에 창이름을 적어 넣습니다. 창 이름의 일부만 넣어도 알아서 찾아줍니다. (대소문자는 구별해야 합니다.)

3) 이름을 찾음과 동시에 해당 창의 위치/크기/항상위/투명도 등을 보여줍니다.

4) 각 입력값을 수정후 <key>Enter</key> 키를 누르거나, 변경버튼을 누르면 반영됩니다.

  • X: 창의 x좌표(가로위치)를 수정할 수 있습니다.
  • Y: 창의 y좌표(세로위치)를 수정할 수 있습니다.
  • W: 창의 가로길이를 수정할 수 있습니다.
  • H: 창의 세로 길이를 수정할 수 있습니다.
  • 항상위에: 체크하면 창의 항상 위 속성을 수정할 수 있습니다. (체크될 경우 항상 위)
  • trans : 투명도값을 수정할수 있습니다. 0이면 완전투명, 255면 완전불투명입니다.

Source

간단한 내용이라 코드를 공개합니다. Autohotkey로 만들었습니다. 주석은 틈날때 달께요.^^;;

SetTitleMatchMode,2
 
;;-----------------------------------
;; 윈도우 커스텀 0.1
;; 간단히 윈도우 사이즈/위치 알아내고 수정하는 툴
;;-----------------------------------
 
Gui, Add, Edit, x106 y20 w250 h20 vwincus_title gget_wintitle, 창이름을 입력하세요(대소문자구분!)
Gui, Add, Text, x26 y20 w70 h40 , Window Name:
Gui, Add, Text, x106 y40 w250 h20 vwincus_ch_title,
;Gui, Add, Button, x366 y20 w80 h30 gget_wintitle, 창정보찾기
Gui, Add, Text, x26 y70 w50 h20 , X:
Gui, Add, Edit, x76 y70 w80 h20 vwincus_x, X좌표
Gui, Add, Text, x176 y70 w50 h20 , Y:
Gui, Add, Edit, x226 y70 w80 h20 vwincus_y, Y좌표
Gui, Add, Text, x26 y100 w0 h0 , Text
Gui, Add, Text, x26 y100 w50 h20 , W:
Gui, Add, Edit, x76 y100 w80 h20 vwincus_w, w(넓이)
Gui, Add, Text, x176 y100 w50 h20 , H:
Gui, Add, Edit, x226 y100 w80 h20 vwincus_h, h(높이)
Gui, Add, Text, x176 y130 w50 h20 , trans
Gui, Add, Edit, x226 y130 w80 h20 vwincus_transparent, 투명도
Gui, Add, CheckBox, x26 y130 w150 h20 vwincus_ontop gget_winstat, 항상위에 
Gui, Add, Button, x206 y155 w250 h30 Default gget_winstat, 변경
 
; Generated using SmartGUI Creator 4.0
Gui, Show, x349 y625 h188 w462, 간단히 창속성 변경하기
Return
 
GuiClose:
ExitApp
 
 
get_wintitle:
 
guicontrolget,wincus_title_text,,wincus_title
wingettitle,wincus_all_title,%wincus_title_text%
 
if wincus_title_text!=
guicontrol,,wincus_ch_title,%wincus_all_title%
 
 
WinGetPos, wincus_x_pos, wincus_y_pos, wincus_width, wincus_height, %wincus_title_text%
winget,wincus_transparent_val,Transparent,%wincus_title_text%
if wincus_transparent_val =
wincus_transparent_val = 255
 
 
WinGet, ExStyle, ExStyle, %wincus_title_text%
if (ExStyle & 0x8)  ; 0x8 is WS_EX_TOPMOST.
guicontrol,,wincus_ontop,1
 
 
guicontrol,,wincus_x,%wincus_x_pos%
guicontrol,,wincus_y,%wincus_y_pos%
guicontrol,,wincus_w,%wincus_width%
guicontrol,,wincus_h,%wincus_height%
guicontrol,,wincus_transparent,%wincus_transparent_val%
 
 
return
 
 
get_winstat:
 
guicontrolget,wincus_title_text,,wincus_title
guicontrolget,wincus_x_pos,,wincus_x
guicontrolget,wincus_y_pos,,wincus_y
guicontrolget,wincus_width,,wincus_w
guicontrolget,wincus_height,,wincus_h
guicontrolget,wincus_ontop_val,,wincus_ontop
guicontrolget,wincus_transparent_val,,wincus_transparent
 
size_stat = %wincus_x_pos%-%wincus_y_pos% W%wincus_width% H%wincus_height%
 
winmove,%wincus_title_text%,,%wincus_x_pos%,%wincus_y_pos%,%wincus_width%,%wincus_height%
 
if wincus_ontop_val = 1
winset,alwaysontop,on,%wincus_title_text%
 
if wincus_ontop_val = 0
winset,alwaysontop,off,%wincus_title_text%
 
 
 
winset,transparent,%wincus_transparent_val%,%wincus_title_text%
 
 
 
return