发布于 2014-12-27 11:17:39
1楼
做一个全局脚本周期执行:vbs
dim tag(3)
tag(0)=hmiruntime.tags("plus").read'加动作
tag(1)=hmiruntime.tags("sub").read'减动作
tag(2)=hmiruntime.tags("count").read'加动作
if tag(0) then
tag(2)=tag(2)+1
end if
if tag(1) then
tag(2)=tag(2)-1
end if
hmiruntime.tags("count").write tag(2)
画面按钮中按下加按钮置位plus,抬起复位plus,减按钮按下置位sub,抬起复位sub。
活到老,学到老!为了生活学习吧!