windowsscriptingworkflowautohotkeyafter-effects

Add key frame every five frames? Autohotkey?


I am trying to make an AutoHotKey script to smoothen up my After Effects workflow. The deal is i have to make a keyframe, then go 5 keyframes ahead, this ultimately takes me 9 keypresses to do! So I tried to cut this down to just 3.

This is my code:

^+1::
Send, ^ & ! & + & {F1}

Send, ^ & {Right}
Send, ^ & {Right}
Send, ^ & {Right}
Send, ^ & {Right}
Send, ^ & {Right}

return

I want it to press

ctrl+shift+alt+F1 then ctrl+right_arrow 5 times.

What am i missing?

SOLUTION: So I also asked this question on Reddit, where a user told me that the "Send," command is very literal, so it ended up typing " ^ & {Right}" and " ^ & ! & + & {F1}" in letters, furthermore it was unnecessary to type a & and the spaces between the others, which I also found out using a keyboard tester. So the solution was to type:

^+1::
Send ^!+{F1} 

Send ^{Right}
Send ^{Right}
Send ^{Right}
Send ^{Right}
Send ^{Right}

return

Solution

  • For commands do not use the comma after send (this is for text only)