I'm a mod from the German Autoit Forum. Quite often the question appears, how to resize a window.
Maybe we can offer a func like WinGetPos for the opposite. (WinSetPos)
Something like this :
; WinSetPos() WinSetPos(WinGetTitle(''), 100, 100, 400, 400) Func WinSetPos($title, $text = '', $x = 0, $y = 0, $width = @DesktopWidth, $height = @DesktopHeight) Local $wtmm = Opt("WinTitleMatchMode", 3) Local $wsc = Opt("WinSearchChildren", 1) Local $returnCode = WinMove($title, $text, $x, $y, $width, $height) Opt("WinSearchChildren", $wsc) Opt("WinTitleMatchMode", $wtmm) If $returnCode Then Return 1 Return -1 EndFunc ;==>WinSetPos
Just a thought.
So long,
Mega




