FactoryTalk View SE VB Sub to run Macro

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.
 

Similar Topics

Hi guys, I was wondering if anyone could help me with a little problem regarding FactoryTalk View SE (FTV). I am having problems with running...
Replies
17
Views
45,615
Hello all, I'm having trouble opening an application. After clicking open I'm prompted to login and after putting in username & password it...
Replies
0
Views
50
Has anyone found information on using the variable message file? I keep looking for documentation on how to implement the message file name as a...
Replies
0
Views
60
I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
5
Views
225
Hello, I'm using FactoryTalk View ME V10. I created a valve as a global object with multiple parameters and when the object is being used at the...
Replies
2
Views
152
Back
Top Bottom