| You are here: Home > UltraMon™ > Features > Scripting |
|
Overview |
ScriptingFor 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
UltraMon menu > Help has more information on scripting, detailed documentation is available in the SDK. A collection of scripts is available here.
|