
如何使用自動熱鍵從 Windows 開始功能表啟動某些內容?我可以
Send ^{Esc}MyAppName{Enter}
除了最後一個之外,一切正常{Enter}
。輸入後,畫面停止在開啟的開始功能表上MyAppName
。我可以手動按 Enter 鍵然後它會開啟。我缺什麼?
答案1
以下內容有效,因此可能是開始功能表開啟/回應速度不夠快的問題:
Send ^{Esc}
Sleep 2000
Send MyAppName
Sleep 2000
Send {Enter}
答案2
調整@xdhmoore的答案AutoHotkey v2
:
#!s::{
SendEvent "^{Esc}"
Sleep 1000
Send "HP Smart"
Sleep 1000
SendEvent "{Enter}"
Sleep 1000
MouseMove 440,400
} ; win+alt+s gets mouse ready on Numériser button