Can I move a window by referencing its Process PID variable=%NewPID% ?
Code: Select all
F3::
Process, wait, calc.exe, 5.5
NewPID = %ErrorLevel% ; Save the value immediately since ErrorLevel is often changed.
if NewPID = 0
{
MsgBox The specified process did not appear within 5.5 seconds.
return
}
; Otherwise:
MsgBox A matching process has appeared (Process ID is %NewPID%).
;Next Line is Where I need the CODE To Move the Process PID's Window - WHAT TO DO ?
; ???
;------------------------------------
WinMove, %NewPID%, ,200, 150
;-----------------------------------
; ???
;
Thank You.
dzur