Code: Select all
#SingleInstance force
#NoEnv
^+o::
WinMove, A, 577, 257
msgbox, Did it move?
WinGetPos, X, Y,,, A
MsgBox, The active window is at %X%`,%Y%
WinGetTitle, Title, A
MsgBox, The active window is "%Title%".
Return
Code: Select all
#SingleInstance force
#NoEnv
^+o::
WinMove, A, 577, 257
msgbox, Did it move?
WinGetPos, X, Y,,, A
MsgBox, The active window is at %X%`,%Y%
WinGetTitle, Title, A
MsgBox, The active window is "%Title%".
Return
Tryhttps://www.autohotkey.com/docs/commands/WinMove.htm wrote:WinMove, X, Y
WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]
Code: Select all
WinMove, A, , 577, 257
Thank you so much! I stared at that missing comma way to long. I'm still rather new but should have caught that one. Thanks again! It worked!gregster wrote: ↑07 May 2021, 11:35Afaics, your WinMove syntax matches neither of the two allowed variants (the second being the relevant one here):Tryhttps://www.autohotkey.com/docs/commands/WinMove.htm wrote:WinMove, X, Y
WinMove, WinTitle, WinText, X, Y [, Width, Height, ExcludeTitle, ExcludeText]Code: Select all
WinMove, A, , 577, 257