Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

如何使用 osascript 在 OS X 中發送“ESC”鍵

tag-icon 2024-7-10 • tag-icon macos applescript osascript
如何使用 osascript 在 OS X 中發送“ESC”鍵

我想在 Mac OS X Snow Leopard 中使用 osascript 建立一個小腳本來模擬按鍵盤上的 Escape 鍵。如何最容易做到這一點?

答案1

osascript -e 'tell application "System Events" to key code 53'
THE END
使用縮排格式化 while 語句(或 for,...) 使用縮排格式化 while 語句(或 for,...)
windows xp啟動 windows xp啟動

相關內容

熱門問答

熱門問答

  • macos
  • applescript
  • osascript
  • format
  • code

© 2024 rvso.com 版權所有. 網站地圖