522235677 (张三)当前离线
少校
Dim objShell Set objShell = CreateObject("WSCript.Shell") objShell.Appactivate "中国好骚年"复制代码
Set objWord = CreateObject("Word.Application") Set colTasks = objWord.Tasks if colTasks.exists("中国好骚年") then msgbox "窗口存在" wscript.quit else msgbox "窗口bu 存在" wscript.quit end if复制代码
TOP
Set objShell = CreateObject("WSCript.Shell") objShell.Appactivate "中国好骚年" ret = objShell.Appactivate("中国好骚年") If ret Then msgbox "窗口存在" wscript.quit Else msgbox "窗口bu 存在" wscript.quit End if复制代码