Jump to content

Winmove Second Screen


Recommended Posts

Well, the @DektopWidth and @DesktopHeight Macros will return the resolution of your primary monitor. For me though, because both of my monitors are the same resolution, I could move a window to the center of the 2nd monitor like this:

$size = WinGetPos("Title", "Text")
$Width = $size[2]
$Height = $size[3]
WinMove("Title","Text", @DesktopWidth+(@DesktopWidth/2) - ($Width/2), (@DestopHeight/2)-($Height/2))

You could try this. If both of your monitors are the same resolution it should work

Edited by Paulie
Link to comment
Share on other sites

  • 2 weeks later...

is there a way to detect the second monitor and get the desktop size?

edit: http://www.autoitscript.com/forum/index.php?showtopic=82353&st=0&p=590685&#entry590685

Edited by PiroX
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...