io域回车确认的脚本为什么不起作用?
刘玉蓉
发布于2014-09-16 17:03
12
0
标签:
在io域(输入输出)---事件---键盘---释放中输入vbs脚本:
if keycode=13 then
msgbox 1
else
msgbox 2
end if
结果:在io域中按回车键不起作用?
佳答案
改成这个试试
if ScreenItems("你的画面中IO域的名字").OutputValue = 13 then
msgbox 1
else
msgbox 2
end if
再是你的脚本写在这个地方貌似有些不妥
建议你在 事件 属性主题 输入输出 输入值 更改里面写下
if value = 13 then
msgbox 1
else
msgbox 2
end if