Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Window placement
#2
run then mov

Code:
Copy      Help
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
or another way




Code:
Copy      Help
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


Messages In This Thread
Window placement - by InterestedNewbie - 09-28-2018, 04:41 PM
RE: Window placement - by Kevin - 09-28-2018, 07:07 PM
RE: Window placement - by InterestedNewbie - 09-29-2018, 12:46 AM
RE: Window placement - by Kevin - 09-29-2018, 01:27 AM
RE: Window placement - by InterestedNewbie - 09-29-2018, 02:35 AM
RE: Window placement - by Kevin - 09-29-2018, 02:37 PM
RE: Window placement - by InterestedNewbie - 09-29-2018, 07:43 PM
RE: Window placement - by Kevin - 09-29-2018, 08:09 PM
RE: Window placement - by InterestedNewbie - 09-30-2018, 03:12 PM
RE: Window placement - by Kevin - 09-30-2018, 04:08 PM
RE: Window placement - by InterestedNewbie - 09-30-2018, 06:36 PM
RE: Window placement - by Kevin - 10-01-2018, 01:55 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)