Scripting

For advanced users: support for scripting gives you access to UltraMon's powerful features from your own VBScript, JScript or other Windows Script files.

The following VBScript code toggles the enabled state of the second monitor:

Const POS_ALL = &H7

Set sys = CreateObject("UltraMon.System")
Set mon = sys.Monitors("2")

If mon.Enabled = True Then
	sys.SavePositions POS_ALL
	mon.Enabled = False
	sys.ApplyMonitorChanges
Else
	mon.Enabled = True
	sys.ApplyMonitorChanges
	sys.RestorePositions POS_ALL
End If

See the scripting section of the UltraMon Help for more information.

<< PrevNext >>