Post by BoBo » 19 May 2020, 05:50
Code: Select all
#NoEnv
Gui, Show, w400 h400, Test
Sleep, 1000
WinGetActiveStats, Title, W, H, X, Y
MsgBox % X "`n" Y ; einfache coordinates
x := X/2
y := Y/2
MsgBox % x "`n" y ; die nach mathematischer verwurstung floatieren (vermutlich da halbe pixel wenig sinn ergeben???)
WinMove, %Title%, , x, y ; was aber bei just me's WinMove nichts hindert.
Return
GuiClose:
ExitApp
Yep, WinMove geht hier scheints problemlos, auch als float-wert. Weird. Danke fürs Testen.
[code]#NoEnv
Gui, Show, w400 h400, Test
Sleep, 1000
WinGetActiveStats, Title, W, H, X, Y
MsgBox % X "`n" Y ; einfache coordinates
x := X/2
y := Y/2
MsgBox % x "`n" y ; die nach mathematischer verwurstung floatieren (vermutlich da halbe pixel wenig sinn ergeben???)
WinMove, %Title%, , x, y ; was aber bei just me's WinMove nichts hindert.
Return
GuiClose:
ExitApp[/code]Yep, WinMove geht hier scheints problemlos, auch als float-wert. Weird. Danke fürs Testen. :)