IsMonitorConnected

 

The IsMonitorConnected function is a function that allows you to check whether a specific monitor is connected when using multiple monitors.

If the monitor of that index is connected, it returns 1, and if not, it returns 0.

 

void @IsMoniorConnected(int monitorIndex);

 

Paramerters

monitorIndex : Monitor Index (The monitor index can be found through the 'Check Monitor' button in the module setting window.)

 

Return value

1: If the monitor for that index is connected

0 : If the monitor for that index is not connected

 

Example )

i = @IsMonitorConnected(2);

if( i == 1) @LoadModulePosition("POPUP.MODX", 1, 100, 100, 2);

else @LoadModulePosition("POPUP.MODX", 0, 0, 0, 1);

 

Description :

 When monitor 2 is connected, POPUP.MODX module is shown at the position of 100 pixels in the X-axis and 100 pixels in the Y-axis based on the upper left of monitor 2.

If monitor 2 is not connected, show the POPUP.MODX module at the center (method : 0) position of monitor 1.

 

Version information

Supported Version : 10.3.6.21 or later

 

°ü·Ã Ç׸ñ)

CloseModule

LoadModule

LoadModulePosition

LoadModulePositionMonitor

PrintModule

ModuleCloseAll

ModuleCloseName

ModuleInvalidate

ModuleIsAlive