'-Begin-----------------------------------------------------------------
'-Directives----------------------------------------------------------
Option Explicit
'-Constants-----------------------------------------------------------
Const INFINITE = -1
'-Variables-----------------------------------------------------------
Dim oIPC, hEvent, wsh, extVBS, rc
'-Main----------------------------------------------------------------
Set oIPC = CreateObject("COMIPC")
If IsObject(oIPC) Then
hEvent = oIPC.EventCreate("TestEvent", 0, 0)
If hEvent Then
extVBS = "Script 2.vbs"
Set wsh = CreateObject("WScript.Shell")
If IsObject(wsh) Then
wsh.Run("wscript.exe " & extVBS)
Set wsh = Nothing
End If
rc = oIPC.EventWait("TestEvent", INFINITE)
rc = oIPC.EventClose(hEvent)
End If
Set oIPC = Nothing
End If
MsgBox "End"
'-End-------------------------------------------------------------------'-Begin-----------------------------------------------------------------
'-Directives----------------------------------------------------------
Option Explicit
'-Variables-----------------------------------------------------------
Dim oIPC, rc
'-Main----------------------------------------------------------------
Set oIPC = CreateObject("COMIPC")
If IsObject(oIPC) Then
MsgBox "Event"
rc = oIPC.EventSet("TestEvent")
Set oIPC = Nothing
End If
'-End-------------------------------------------------------------------You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 23 | |
| 19 | |
| 13 | |
| 12 | |
| 11 | |
| 11 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |