0
使用AppleScript可以使用我的Mac類型嗎? 我想要的是:編譯時,這個applescript將鍵入一個短語,然後按Enter鍵。有沒有模擬按鍵的代碼?使用AppleScript打字
使用AppleScript可以使用我的Mac類型嗎? 我想要的是:編譯時,這個applescript將鍵入一個短語,然後按Enter鍵。有沒有模擬按鍵的代碼?使用AppleScript打字
keystroke
命令將爲您工作。
tell application "System Events" to keystroke "A phrase" & return & "Another phrase"
如果你想有一個特定的應用程序做打字,只是做沿着這些路線的東西:
tell application "System Events" to tell process "TextEdit" to keystroke "A phrase" & return & "Another phrase"
是的,看着按鍵和鍵在系統事件向下>進程套房,雖然你有打開Universal Access