wincc tlgonlinetrend控件中有没有smel属性
郑志武
发布于2013-03-01 23:32
3
0
标签:
wincctlgonlinetrend控件中有没有smel属性,我在wincc工程中看到别人做了几个按钮,个按钮中的脚本为
set_focus(lpszpicturename,"smel");
setpropword(lpszpicturename,"smel","index",0);
tlgtrendwindowpressfirstbutton("sbl");
第二个按钮的脚本为
#pragmacode("kernel32.dll");
voidwinapisleep(dworddwmilliseconds);
#pragmacode();
set_focus(lpszpicturename,"smel");
setpropword(lpszpicturename,"smel","index",0);
tlgtrendwindowpressprevbutton("sbl");//rückgabe-typ:bool
sleep(1500);
tlgtrendwindowpressprevbutton("sbl");
1.请问set_focus(lpszpicturename,"smel")中的smel指的是趋势控件中那个对象呢?
2.请问第二个按钮脚本中的sleep(1500);是什么意思?
佳答案
c脚本的函数大都有个规律,个参数为画面名称,第二个参数为对象名称。
smel就是tlgonlinetrend的对象名称,可以手动改一下。
sleep如上所述为延时。尽量少用,会影响其他脚本的执行。