Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open program to specific area on screen
#1
Hi everyone,
Is there a way to set a window to automatically open to a specific location on the screen? Or like intercept it before it opens and move it to that location? Thanks!  Smile
#2
here is a list of possible screen positions to open the window to
uncomment 1 x= and 1 y= to move to a specific location

Function move window example
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
;center
;------------
;x=0
;y=0
;top center
;x=0
;y=1
;bottom center
;------------
;x=0
;y=-1
;right center
;------------
;x=-1
;y=0
;left center
;------------
;x=1
;y=0

r.left=x; r.top=y
AdjustWindowPos hwnd &r 3
#3
Thank you so much! I'll play around with it, but I might get a bit confused and need a little more guidance... Tongue


Forum Jump:


Users browsing this thread: 1 Guest(s)