You can use the MainWindow property of the Vegas object which returns an IWin32Window interface. The Handle property of this interface gives you Vegas' main window handle:
Many Thx !
Very more easy than my actual method ;))
I’m making a script to access event on Timeline (it would be nice to have this feature in the Edit Detail Window for future Vegas version)
This script have a non-modal form and I need to know Vegas Handle to send shortcut to it.
Like this :
SetForegroundWindow(vegasHandle);
SendKeys.SendWait("*");
You can find a beta version of my script HERE.
I use the “*” shortcut to center view around cursor.
This schortcut work with a French keyboard on a WinXP French version.
But in the help shortcuts list, this shortcut is “\”.
So I’m not sure my script is working with an English keyboard.
Please, can you tell me if after double clicking a line in my script 's listview, Vegas center view around cursor ?