VBS 自动打开软件
生活随笔
收集整理的這篇文章主要介紹了
VBS 自动打开软件
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
VBS 自動(dòng)打開(kāi)軟件 ? 點(diǎn)擊 軟件 ? 關(guān)閉進(jìn)程方法!
Dim WshShell, QQPath QQPath="C:\TM ACv6\TMAC.exe" '需要打開(kāi)的軟件路徑 Set WshShell=WScript.CreateObject("WScript.Shell") path = Chr(34) & QQPath & Chr(34) '去除路徑空格 WshShell.Run path,1WScript.Sleep 10000 '等待1秒鐘 WshShell.sendkeys "%{ESC}" '選中當(dāng)前路徑的界面 WshShell.AppActivate "Technitium MAC Address Changer v6 - by Shreyas Zare" '需要激活的軟件框標(biāo)題名稱 WshShell.sendkeys "{enter}"WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{ENTER}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{TAB}" WshShell.SendKeys "{ENTER}" WScript.Sleep 3000 WshShell.SendKeys "{ENTER}" WScript.Sleep 3000 CreateObject("WScript.Shell").Run "taskkill /f /im TMAC.exe", 0 'TMAC.exe 為需要關(guān)閉的進(jìn)程名稱?
轉(zhuǎn)載于:https://www.cnblogs.com/llxpbbs/p/9169165.html
總結(jié)
以上是生活随笔為你收集整理的VBS 自动打开软件的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 博客园图片显示问题
- 下一篇: InnoDB和MyISAM是否支持has