From WikiChip
Difference between revisions of "mirc/commands/comopen"
< mirc‎ | commands

(Created page with "The '''/comopen command''' opens a COM connection to specified programmatic identifier with the assigned name. Your script should check $comerr a...")
(No difference)

Revision as of 02:48, 1 December 2013

The /comopen command opens a COM connection to specified programmatic identifier with the assigned name. Your script should check $comerr after opening the connection to make sure the connection was established successfully.

Synopsis

/comopen <name> <progid>

Switches

None

Parameters

  • <name> - Connection name to be used
  • <progid> - Programmatic Identifier

Example

Alias Example {
  ;Create a WshShell object 
  comopen Example wscript.shell
 
  ;Destroy object
  comclose Example
}

Compatibility

Added: mIRC v5.9

Added On: 26/04/2001

Note: Individual switches were not taken into consideration.

See also