Previous Topic

Next Topic

Book Contents

Book Index

Home Page

Close the Call Monitor from a Macro

This example illustrates how to use Windows Script Host objects to close the Call Monitor during an inbound call.

Dim WshShell
' Create a WSH Shell object.
Set WshShell = _
CreateObject("WScript.Shell")
' Activate the Call Monitor.
WshShell.AppActivate _
"Active Call Center Call Monitor"
' Send an Alt-S to Stop Monitoring
WshShell.SendKeys "%S"

Note that this example will not work in the simulator, since Alt-S would not be the key combination used to close the simulator.

The example above makes use of the WScript.Shell object, which is used to start and manipulate programs. More documentation on this object is available at Microsoft's Windows Scripting Host website: http://msdn.microsoft.com/scripting/windowshost/default.htm.

See Also

Automating Windows Tasks

Run an Application from a Macro

Play a Sound File From a Macro