Open the AutoKey main menu.
Select New->Folder
And give it a name such as My_Scripts.
On the left, you should see a file tree of scripts and phrases.
Select My_Scripts (or whatever you called it).
Select New->Script
This will create a new script called "New Script" in the "My_Scripts" folder.
Right click on that new script and select Rename and give it a name that
makes sense to you the same way you would name a phrase.
Go into my original email to you with the scripts in it and copy the first
one to your clipboard.
Go back to the AutoKey Menu where you just were with your new script
selected.
On the top right, you'll see a big empty panel with
#Enter script code
in it.
Click on that text anywhere.
Type Ctrl+A (the control key and A at the same time).
This should select/highlight the whole text.
Type Ctrl+V (the control key and V at the same time).
This should paste the script from your clipboard into the panel, replacing
the comment
#Enter script code
that was there before.
Now, you have a new script named whatever you named the new script in the
steps above.
Below that panel are Script Settings where you can add a trigger
abbreviation and/or hotkey and other settings for your new script just
like you would for a new phrase.
When you're done, select Save from the main menu to save your changes.
You have just created your first script and saved it in your new scripts
folder.
You can begin using it immediately by typing its trigger abbreviation or
pressing its hotkey exactly as you would invoke a phrase.
If you need to edit it later (e.g. to change the delay time), you just
open its folder and select the script name on the left panel of the main
autokey window. The body of the script will appear in the top right panel
where you pasted it before and you can edit it right there using a simple
editor built into AutoKey.
This editor has some issues displaying the text cursor and, if you have a
dark desktop theme (like I do), some of the text of your script may be a
bit hard to read. If you run into that later, we can deal with it then.
Now, you know how to create, edit, and invoke a script!
Wen you need to create another one, you can copy the one you just created
and repeat all the steps above using the same new folder we created and
giving your new script a new name, new text and triggers, etc.
----
After we're done with this immediate issue, take a look at our wiki
https://github.com/autokey/autokey/wiki
Where there are quite a few sample scripts. To really understand them,
you'll have to learn some very simple concepts of the Python language (a
very small subset to get started) and take a look at our API documentation
to see how you tell AutoKey to do things in your script, but you can do
all of this at your convenience and at your own pace later.
Joe
> Ok, I will try but *where* should I put the script?
>
https://groups.google.com/d/msgid/autokey-users/33f4a6f1-3778-4e87-acb3-a2f8f8b2ad1fn%40googlegroups.com.
>