VBS怎么读取报警控件状态栏中待处理消息数目“MessageListMessagesCount”,待确认消息数目“MessageListQuitCount”
最佳答案
用以下代码去获取。
Dim obj, i
Set obj = HMIRuntime.ActiveScreen.ScreenItems("control1")
For i = 0 To obj.StatusbarElementCount
obj.StatusbarElementIndex = i
HmiRuntime.Trace "序号:" & i & " 文本:" & obj.StatusbarElementText & " 名称:" & obj.StatusbarElementName & vbCrlf
Next
提问者对于答案的评价:
OK
原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc363381.html