LoginSignup
0
1

More than 5 years have passed since last update.

vbsの作法

Posted at

概要

vbsの作法を調べてみた。
ConnectObjectで、イベントを捕らえてみた。

写真

image

サンプルコード

Dim App6
Dim Appflg
Set App6 = Createobject("OHIcompo6.srv")
WScript.ConnectObject App6, "App6_"
App6.text = "hello"
Sub App6_exit()
    Appflg = 2
End Sub
Sub App6_ok()
    Msgbox App6.text
End Sub
Do
    WScript.Sleep(100)
    App6.ping
Loop until Appflg = 2
Set App6 = Nothing

以上。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1