Hey there,
Ed Greenberg wrote:
>I can't find any documentation on the "record keyboard / mouse"
>function under "tools."
Yeah, that's our fault. We should get on that.
>I wonder what it is used for.
It's used for recording your keyboard and/or mouse events into a
script so they can be replayed later by running the script.
>For instance, if I want to write a quoted string that causes autokey
>to emit something, but I'm not sure of the syntax of the various
>special keys, couldn't I record it, and then see what it recorded?
>I can't see what, if anything it recorded.
That's true, and it will work that way. Joe has already given you
some good links, but I'll toss in a basic example of syntax for
a script that causes AutoKey to emit foo into the active window:
keyboard.send_keys("foo")
AutoKey uses the keyboard.send_keys() API call instead of a print
statement, so if you're familiar with Python, you can use that API
call anywhere where you would use a print statement to get it to
print something to the active window.
>Could somebody point me at documentation, or explain?
As you discovered, there isn't any for that yet, but I did some tests
with it today and created a discussion for it in the AutoKey project
here:
https://github.com/autokey/autokey/discussions/1049
Feel free to try out the same tests I did and to join in the
discussion. We'll get this figured out as well as possible and find a
good spot to write it up in the wiki. Unfortunately, we can't
currently edit the AutoKey documentation, but once that's resolved,
we can copy what we put into the wiki over to the official AutoKey
documentation.
--
Little Girl
There is no spoon.