09-28-2018, 07:07 PM
run then mov
or another way
int hwnd
run "$system$\notepad.exe" "" "" "" 0x800 win("" "Notepad") hwnd
int x y
RECT r
;top left
;-----------
;x=+1
;y=+1
;Bottom left
;-----------
;x=+1
;y=-1
;top right
;---------
;x=-1
;y=+1
;Bottom Right
;------------
;x=-1
;y=-1
r.left=x; r.top=y
AdjustWindowPos hwnd &r 3
int hwnd
run "$system$\notepad.exe" "" "" "" 0x800 win("" "Notepad") hwnd
;top left
;----------------
;mov 0 0 hwnd
;bottom left
;----------------
;int L T H wH
;GetWorkArea L T 0 H
;GetWinXY hwnd 0 0 0 wH
;mov L T+H-wH hwnd
;bottom right
;------------------------
;int L T H wH w W wW
;GetWorkArea L T W H 1
;GetWinXY hwnd 0 0 wW wH
;mov W-wW H-wH hwnd
;upper right
;-----------------------
;int L T H wH wW W
;GetWorkArea L T W H 1
;GetWinXY hwnd 0 0 wH 0
;mov W-wH 0 hwnd