From 7c6afcf500cdb5d77f97d0c6e350981ff2af0bc6 Mon Sep 17 00:00:00 2001 From: snomiao Date: Tue, 14 Dec 2021 03:36:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AA=97=E5=8F=A3=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E5=90=8C=E5=90=8D=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E6=94=BE=E4=B8=80=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\252\227\345\217\243\345\242\236\345\274\272.ahk" | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git "a/Modules/03.1-\346\217\222\344\273\266-\347\252\227\345\217\243\345\242\236\345\274\272.ahk" "b/Modules/03.1-\346\217\222\344\273\266-\347\252\227\345\217\243\345\242\236\345\274\272.ahk" index b729c28f..ec203ab3 100644 --- "a/Modules/03.1-\346\217\222\344\273\266-\347\252\227\345\217\243\345\242\236\345\274\272.ahk" +++ "b/Modules/03.1-\346\217\222\344\273\266-\347\252\227\345\217\243\345\242\236\345\274\272.ahk" @@ -160,7 +160,9 @@ WindowsListOfMonitorFast(arrangeFlags, MonitorIndex := 0){ continue } } - windowsMatches .= "ahk_pid " this_pid " ahk_id " hWnd "`n" ; . "`t" . this_title . "`n" + WinGet, this_exe, ProcessName, ahk_id %hWnd% + windowsMatches .= "ahk_exe " this_exe " ahk_id " hWnd "`n" ; . "`t" . this_title . "`n" + ; windowsMatches .= "ahk_pid " this_pid " ahk_id " hWnd "`n" ; . "`t" . this_title . "`n" } return windowsMatches } @@ -233,7 +235,10 @@ WindowsListOfMonitor(arrangeFlags, MonitorIndex := 0){ if ( this_class == "ApplicationFrameWindow") { Continue } - windowsMatches .= "ahk_pid " this_pid " ahk_id " hWnd "`n" ; . "`t" . this_title . "`n" + + WinGet, this_exe, ProcessName, ahk_id %hWnd% + windowsMatches .= "ahk_exe " this_exe " ahk_id " hWnd "`n" ; . "`t" . this_title . "`n" + ; windowsMatches .= "ahk_pid " this_pid " ahk_id " hWnd "`n" ; . "`t" . this_title . "`n" } return windowsMatches } @@ -312,7 +317,7 @@ ArrangeWindows(arrangeFlags = "0"){ loop %MonitorCount% { MonitorIndex := A_Index listOfWindow_%MonitorIndex% := WindowsListOfMonitor(arrangeFlags, MonitorIndex) - Sort listOfWindow_%MonitorIndex% + Sort listOfWindow_%MonitorIndex%, R } ; 位置调整 loop %MonitorCount% {