Another short Auto Hotkey macro script for adding slurs and staccato dots

• Apr 22, 2020 - 13:25

I thought I'd share this short Auto HotKey script I wrote to add a specific group of articulations to
measures with the same rhythm. Saved me a lot of time in my project!

Should anyone like to try it out (Windows users only), I attach an extract of my piece. To apply the script to each measure marked "A",
1. Download and start the AHK program
2. Change extension of file from .txt to .ahk. Click OK on the dialog.
3. Run the script (right-click the file, run script).
4. In MS, click first note of a measure marked "A" (first one is done already).
5. Press "1". Articulations will be added automatically.

How it works: On selecting a note then pressing number "1", the script presses a
quick succession of standard keyboard shortcuts in Musescore which perform
the following actions in the following order:

Add slur to the first two notes,
Extend slur one note,
Extend slur one note,
Press "esc" to deselect the slur,
Right arrow to advance one note,
Right arrow to advance one note,
Right arrow to advance one note,
Right arrow to advance one note,
Add staccato note,
Right arrow to advance one note,
Add staccato note,
Stop the process.

Make sure to exit the script via the up arrow (bottom right of taskbar), then right-click green AHK icon and select "exit", or weird things will happen in other progs when you press "1"!

Create your own custom AHK scripts for individual requirements!


Comments

Do you still have an unanswered question? Please log in first to post your question.