PSP
 

창 변형 옵션 적용

최고관리자 2026-06-24 (수) 20:56 2개월전 19  
SysGet, 화면, MonitorWorkArea

실행할프로그램 = notepad.exe
Run, % 실행할프로그램, , , 활성창PID
WinWaitActive, ahk_pid %활성창PID%
활성창HWAN := WinExist("A")
WinMove, ahk_id %활성창HWAN%, , , , % 화면Right / 2, % 화면Bottom / 2
WinGetPos, , , 창가로, 창세로, ahk_id %활성창HWAN%
WinMove, ahk_id %활성창HWAN%, , % (화면Right / 2) - (창가로 / 2), % (화면Bottom / 2) - ( 창세로 / 2)

WinSet, Style, -0x40000, A ;Remove Window border(Can not be Window Resizable)
WinSet, Style, -0x10000, A ;Remove the Max buttons from Caption Button
WinSet, Style, -0x20000, A ;Remove the Min buttons from Caption Button
WinSet, Style, -0x30000, A ;Remove the Min/Max buttons from Caption Button

활성창ID := WinExist("A")
상태값 := DllCall("user32\GetSystemMenu", "UInt", 활성창ID, "UInt", 0)
DllCall("user32\DeleteMenu", "UInt", 상태값, "UInt", 0xF060, "UInt", 0x0)

WinSet, AlwaysOnTop, On, A ;Window is always Top Screen
;WinSet, Style, -0xC00000, A ;remove the titlebar 그리고 C다음 인자 0~9까지되며 위치차이 일뿐 같은 옵션임


;WinSet, Style, -0x80000, A ;아이콘, 최소화, 최대화, 종료 버튼 생략된 창이 나오며 응용 프로그램 제목창 더블클릭하면 최대 및 최소화 가능
;WinSet, Style, -0x90000, A ;아이콘, 최소화, 최대화, 종료 버튼 생략된 창이 나오며 응용 프로그램 제목창 더블클릭하면 최대 및 최소화 불가능

WinSet, Style, -0xC40000, A
WinMove, , , 0, 0, A_ScreenWidth, A_ScreenHeight
DllCall("SetMenu", "Ptr", WinExist(), "Ptr", 0)

hi
이전글  다음글  목록 글쓰기

 
 
ragoman@naver.com