Combine auto ripple and ignore event grouping?

NickHope wrote on 10/21/2008, 8:32 PM
I would love to get a script that combines the AUTO RIPPLE and IGNORE EVENT GROUPING toggles into a single command. I nearly always click these 2 in succession.

Sounds like it should be fairly straightforward. Anyone? Would be greatly appreciated.

Comments

JohnnyRoy wrote on 10/22/2008, 5:23 AM
> Sounds like it should be fairly straightforward. Anyone? Would be greatly appreciated.

Sure thing. ;-)

//**************************************************************
//* Program: ToggleRippleAndEventGrouping.js
//* Author: John Rofrano
//* Description: Toggles Auto Ripple and Ignore Event Grouping
//* Last Updated: October 22, 2008
//* Copyright: (c) 2008 VASST, All Rights Reserved
//**************************************************************

import Microsoft.Win32;
import System.Windows.Forms;
import Sony.Vegas;

try
{
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.SendKeys("^l"); // Auto Ripple (Ctrl+L)
wshShell.SendKeys("^+u"); // Ignore Event Grouping (Ctrl+Shift+U)
}
catch(e)
{
MessageBox.Show(e.Message, "VASST Toggle Ripple and Event Grouping", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Enjoy,

~jr
Grazie wrote on 10/22/2008, 10:04 AM
Like a Charm! Runs like a charm . . .

Thanks jr

Grazie
NickHope wrote on 10/22/2008, 6:39 PM
Thank you jr! Works great.
JohnnyRoy wrote on 10/23/2008, 4:01 AM
You're welcome. Glad I could help.

~jr