I found a number of old posts that described using the Windows Script Host (WSH) to send keystrokes after your script had finished running, but this method seems to no longer work.
Is there a way to send keystrokes back to the current Vegas window after a script has completed?
In brief, my script splits an event (and associated audio event) at the cursor (regardless of whether the event at the cursor is selected. The TrackEvent.Split() method doesn't work for me as it leaves both of the events on either side of the cursor grouped. My script copies the event at the cursor then does some AdjustStartLength() and ActiveTake.Offset to get the same result as the split. However, the event on the right of the cursor (the new copy) is not grouped with the corresponding audio event. I therefore leave both of them selected and would like to send a 'g' keystroke to group them. I'm having to remember to do that manually which is obviously not preferred.
Thanks for your help.
Michael
Is there a way to send keystrokes back to the current Vegas window after a script has completed?
In brief, my script splits an event (and associated audio event) at the cursor (regardless of whether the event at the cursor is selected. The TrackEvent.Split() method doesn't work for me as it leaves both of the events on either side of the cursor grouped. My script copies the event at the cursor then does some AdjustStartLength() and ActiveTake.Offset to get the same result as the split. However, the event on the right of the cursor (the new copy) is not grouped with the corresponding audio event. I therefore leave both of them selected and would like to send a 'g' keystroke to group them. I'm having to remember to do that manually which is obviously not preferred.
Thanks for your help.
Michael