if i<>$Second then
i=$Second
if pumpcheckwait>=台数 then
pumpcheckwait=1
else
pumpcheckwait=pumpchecking+1
endif
if autoflag=1 then
pumpcheckon=pumpchecking
else pumpcheckon=0
endif
if autoflag=1 then
if autoseconddec>0 then
autoseconddec=autoseconddec-1
else
autoseconddec=59
if autominutedec > 0 then
autominutedec=autominutedec-1
else
autominutedec=59
if autohourdec >0 then
autohourdec=autohourdec-1
else
autoflag=2
endif
endif
endif
else
if 巡检周期>0 then
autohourdec=巡检周期-1
autominutedec=59
autoseconddec=59
else
autohourdec=0
autominutedec=0
autoseconddec=0
endif
endif
endif
我可把这段代码复制到个窗体的循环脚本下运行,能不这样干
有什么好的方法就一脚本,所有窗体下都运行?