I'm an AHK beginner, been trying it out for a day. I've had some success but I'm stuck.
I want to use ahk to automate repetitive tasks done by existing keyboard shortcuts in a program called Shotcut (a video editor). So, in Shotcut I have a series of clips arranged one after the other on the timeline (I'll call them clip1, clip2, clip3 etc).
At present, using Shotcut's keyboard shortcuts, I press:
- Alt+right arrow (to move cursor to end of clip 1)
- Page Up (to move cursor backwards by 1 second)
..then I drag Clip 2 backwards over clip 1, to create a transition (no keyboard shortcut for this in Shotcut).. Then..
- and 4. Alt+right arrow TWICE (to move cursor to end of clip 2)
- Page Up (to move cursor back by 1 second). ...etc etc (repeat this process).
So what I'd like to know is, how can I script ahk to:
- Just automate steps 1 and 2 above (ie. Alt+right arrow then Page Up), by pressing, say, Ctrl+h in Shotcut....
and/or:
- Just automate steps 3,4 and 5 above (ie Alt+right arrow TWICE, then Page Up)...
or, even better, could I:
- automate steps 1, 2, then Pause ahk (while I drag the clips)... then continue with steps 3,4 and 5...?
I used the following to successfully just to get "PageUp" when Ctrl+h was pressed:
^h::
send, {PgUp}
return
However I tried the following just for a solution just to get "Alt+right arrow" on pressing Ctrl+g but it didn't work -the cursor stayed still:
^g::
send, {!alt}
return
Where am I going wrong?