判断指定程序是否已存在

1.判断的语句为Exists(key),如下列脚本:

If SwfWindow("Ragile Vision E-Config_2").Exist(0) Then

         Dim m

         m=SwfWindow("Ragile Vision E-Config_2").Exist(0)

         msgbox  "该程序已被启动,关闭该程序,重新启动亿确保程序被正确启动"

 SwfWindow("Ragile Vision E-Config_2").close

 SwfWindow("Ragile Vision E-Config_2").Dialog("注意").WinButton("(Y)").Click

End If

posted @ 2011-09-28 14:41  izzie_ou  阅读(149)  评论(0编辑  收藏  举报