Sendkeys: Command line tool for automating keystrokes and mouse events on macOS github.com 32 points by nateb2022 a day ago
supersixirene a day ago This is legend. I’ll be putting this to extensive use tomorrow. robterrell a day ago You've always had this ability, but with more convoluted syntax: osascript -e "tell application \"System Events\" to keystroke \"whatever\"" Specify the application too with multiple -e parameters. This will copy whatever is selected in Safari: osascript -e "tell application \"Safari\" to activate" -e "tell application \"System Events\" to keystroke \"c\" using {command down}" eviks a day ago How do you stimulate delays, animation intervals, key down/ups a with System Events? robterrell 2 hours ago AppleScript supports the "delay" command. System Events supports both "keydown" and "keyup" in addition to keystroke. bestham 19 hours ago Apple Script is a programming language and you have full control flow at your disposal to wait and branch as needed. eviks 19 hours ago This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.(and neither is delay precision guarantees, which might be important for some key sequences)
robterrell a day ago You've always had this ability, but with more convoluted syntax: osascript -e "tell application \"System Events\" to keystroke \"whatever\"" Specify the application too with multiple -e parameters. This will copy whatever is selected in Safari: osascript -e "tell application \"Safari\" to activate" -e "tell application \"System Events\" to keystroke \"c\" using {command down}" eviks a day ago How do you stimulate delays, animation intervals, key down/ups a with System Events? robterrell 2 hours ago AppleScript supports the "delay" command. System Events supports both "keydown" and "keyup" in addition to keystroke. bestham 19 hours ago Apple Script is a programming language and you have full control flow at your disposal to wait and branch as needed. eviks 19 hours ago This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.(and neither is delay precision guarantees, which might be important for some key sequences)
eviks a day ago How do you stimulate delays, animation intervals, key down/ups a with System Events? robterrell 2 hours ago AppleScript supports the "delay" command. System Events supports both "keydown" and "keyup" in addition to keystroke. bestham 19 hours ago Apple Script is a programming language and you have full control flow at your disposal to wait and branch as needed. eviks 19 hours ago This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.(and neither is delay precision guarantees, which might be important for some key sequences)
robterrell 2 hours ago AppleScript supports the "delay" command. System Events supports both "keydown" and "keyup" in addition to keystroke.
bestham 19 hours ago Apple Script is a programming language and you have full control flow at your disposal to wait and branch as needed. eviks 19 hours ago This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.(and neither is delay precision guarantees, which might be important for some key sequences)
eviks 19 hours ago This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.(and neither is delay precision guarantees, which might be important for some key sequences)
pkoird a day ago Wonder how this compares to Autohotkey on Windows. eviks a day ago Ahk isn't cli, and also is a full-blown programming language, so not as limited in its input
eviks a day ago Ahk isn't cli, and also is a full-blown programming language, so not as limited in its input
lukaslukas a day ago Nice. But why? ivanche a day ago For example to automate what couldn't be automated otherwise. supersixirene a day ago For example to deal with software designers that think web browsers are people
ivanche a day ago For example to automate what couldn't be automated otherwise. supersixirene a day ago For example to deal with software designers that think web browsers are people
supersixirene a day ago For example to deal with software designers that think web browsers are people
biomcgary a day ago Now to finetune my local LLM on the sendkeys syntax, add kyutai for streaming voice recognition, and my mac will be fully voice operable.
This is legend. I’ll be putting this to extensive use tomorrow.
You've always had this ability, but with more convoluted syntax:
Specify the application too with multiple -e parameters. This will copy whatever is selected in Safari:How do you stimulate delays, animation intervals, key down/ups a with System Events?
AppleScript supports the "delay" command. System Events supports both "keydown" and "keyup" in addition to keystroke.
Apple Script is a programming language and you have full control flow at your disposal to wait and branch as needed.
This is too generic to answer this specific question. Key down, for example, is not an inherent property of a programming language.
(and neither is delay precision guarantees, which might be important for some key sequences)
Wonder how this compares to Autohotkey on Windows.
Ahk isn't cli, and also is a full-blown programming language, so not as limited in its input
Nice. But why?
For example to automate what couldn't be automated otherwise.
For example to deal with software designers that think web browsers are people
Now to finetune my local LLM on the sendkeys syntax, add kyutai for streaming voice recognition, and my mac will be fully voice operable.