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