Sign in to follow this  
Followers 0
DVDRW

Retrieve full monitor screen area (extended desktop)

3 posts in this topic

#1 ·  Posted (edited)

Hey!

I know @DesktopWidth and @DesktopDepth but how I can retrieve exended monitor DesktopWidth and DesktopDepth or full monitor screen area?

Also important is to retrieve that is my extended monitor is left or right side of primary monitor?

I just want to make script which moves current active window to another monitor (if exist) and maximizes it.

Edited by DVDRW

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not sure about retrieving monitor sizes, but you could do this

WinMove ("title", "", @DesktopWidth + 1, -1, -1, -1, 1)
WinSetState ("title", "", @SW_MAXMIZE)

where -1 represents the default values

Edited by Dampe

Share this post


Link to post
Share on other sites

Isn't default centered positioning and something like 1/4 width/height of the display? You really could just try the macros, what do they return? Do they return the res. of just one monitor or the combined res? If it's simply the] res. of the current monitor then if it's the left you could do something like

WinMove("Form 1","",@DesktopWidth + $window_width,-1,-1,-1,1)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0