Mit diesem Skript kann man automatisch alle offenen Fenster auf dem Bildschirm anordnen, auf welchem der Mauscursor ist:
Spoiler anzeigen
Func _TileWindows()
;Tile Windows on that screen where the mouse is!
;Call: _TileWindows()
;Don't miss to include the Func_GetMonitorInfo.au3 (#include "Func_GetMonitorInfo.au3")
;Don't miss to include the Func_GetMouseInfo.au3 (#include "Func_GetMouseInfo.au3")
Local $MonNr, $Left, $Top, $Right, $Bottom, $tStruct, $Rect
$MonNr = _GetMouseInfo()
$Left = _GetMonitorInfo("PosX",$MonNr)
$Top = _GetMonitorInfo("PosY",$MonNr)
$Right = $Left + _GetMonitorInfo("ResX",$MonNr)
$Bottom = $Top + _GetMonitorInfo("ResY",$MonNr)
$tStruct = DllStructCreate("int[4]");4 points of values that are integers
DllStructSetData($tStruct, 1, $Left, 1)
DllStructSetData($tStruct, 1, $Top, 2)
DllStructSetData($tStruct, 1, $Right, 3)
DllStructSetData($tStruct, 1, $Bottom, 4)
$Rect = DllStructGetPtr($tStruct);Now $rect holds our left/top/right/bottom values in a type of array basically
DllCall("user32.dll", "int", "TileWindows", "int", 0, "int", 0, "Ptr", $Rect, "int", 0, "int", 0)
EndFunc
Dazu werden noch zwei Funktionen gebraucht, welche ich bereits hier veröffentlicht habe.
Viel Spass!
Veronesi