I'm trying to create a script that will send either a space or the letter r to a control in a subtitling program called Aegisub. The control in question is an audio waveform, and this would cause the selected portion of the audio to be played while retaining focus in a text editing window, instead of having to switch focus back and forth between the waveform and the text editing window.
I thought the following would work, but nothing happens when I press the hotkey:
Code: Select all
F2::
ControlSend, wxWindowNR11, {Space}, ahk_exe aegisub64.exe
Return
What am I missing?
Thank you in advance!