20221211 2013
; https://www.autohotkey.com/boards/viewtopic.php?style=17&t=97103 ; AH version 1.x F3:: win := windows() zn := win.count() zx :=round(zn/2) dx:=A_ScreenWidth/zx dy:=A_ScreenHeight/2 ; MsgBox,% A_screenwidth x:=0 y:=0 loop,% win.count() { WinGetTitle,ztmp,% "ahk_id " win[A_Index] MsgBox,% ztmp "," `t x "," `t y if StrLen(ztmp)>0 { winmove,% ztmp, ,%x%,%y%,dx,dy ;WinActivate, % "ahk_id " win[win.Count()] x:=x+dx if (x>=A_screenwidth) { x:=0 y:=y+dy } } } Return windows() { program := [] WinGet, wins, List Loop, %wins% { WinGet, style, Style, % "ahk_id " wins%A_Index% winget,ztmp,ProcessName, % "ahk_id " wins%A_Index% ;MsgBox,% ztmp ;If !(style ~= "0x(9|16)") program.Push(wins%A_Index%) } Return program } |
'[PA] 업무자동화 > [AH]Autohotkey' 카테고리의 다른 글
AH 맨마지막 특정문자 찾기 (0) | 2023.02.25 |
---|---|
AH 윈도우 목록 보여주기 (0) | 2022.12.24 |
AH Gui Text 색깔 바꾸기 color change (0) | 2022.06.02 |
AH 승인요청 - 승인 app (0) | 2022.05.28 |
AH array 배열 (0) | 2022.05.27 |