I have two displays and need to open them at two monitors (so I have resolution 3840*1200 pixels).
I need to open display at the second one (at VBA of new displat thet I need to open I got this:
"Dim rect As POINTAPI
Call GetCursorPos(rect)
If rect.x >= 1920 Then ThisDisplay.Move (1920)"
one module with this code:
"Public Type POINTAPI
x As Long
y As Long
End Type
Public Declare Sub GetCursorPos Lib "User32" (lpPoint As POINTAPI)"
But this VBA code firstly opens new display at X = 0, Y = 0 and the old one closes when I want to hold old one on it's plase.
I hope you can understend what I'm talking about and can help me. Please)
The first thing to check is how you have your displays configured, if you are going to manually handle positioning and closing, make sure the display is not configured to "Replace".
Right click on an open display to get it's properties.