Jump to content

Retrieve full monitor screen area (extended desktop)


DVDRW
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...