Verify multi-monitor support during run time
- Last UpdatedJul 02, 2024
- 1 minute read
You can download an optional script function from the Technical Support script library that verifies if the local node running the InTouch application provides multi-monitor support.
The WWMultiMonitorNode() function determines if the node supports multi-monitors and the number of monitors attached to the node.
Typically, you run the WWMultiMonitorNode() function from a QuickScript to determine the number of monitors assigned to the node running the InTouch application.
The following example shows an example of a QuickScript statement with the value of the WWMultiMonitorNode() function assigned to an InTouch integer tag. The QuickScript can be set to run when the application starts in WindowViewer.
{MultiMonitors defined as an integer tag}
MultiMonitors = WWMultiMonitorNode();
{After executing this function Result = 4}
WWMultiMonitorNode() reads the MultiScreen parameter specified in the node’s Win.ini file. The WWMultiMonitorNode() function returns either a 0 or a positive integer.
-
0 return value
WWMultiMonitorNode() returns a 0 if MultiScreen=0 or if the MultiScreenWidth or MultiScreenHeight parameters are set incorrectly to 0 in the [InTouch] section of the Win.ini file.
-
Positive integer return value
WWMultiMonitorNode() returns the number of monitors in the multi-monitor configuration if MultiScreen=1 and the MultiScreenWidth and MultiScreenHeight parameters have been assigned correct screen resolution values.