I have searched the web and asked many questions to many people and with a little help from Roger_74 (thank you!!!) on this forum I finally managed to write my frist VBscript example that works!
-----------------------------------------
Imports System.Windows.Forms
Imports SonicFoundry.Vegas
Public Module MainModule
Public Sub Main()
ShowMessage()
End Sub
Private Sub ShowMessage()
MessageBox.Show("hello world")
End Sub
End Module
----------------------------------
So From what I understand you need to put everything in a Module called MainModule and in there Vegas starts to run code from Sub Main() then you can start doing whatever you want!
-----------------------------------------
Imports System.Windows.Forms
Imports SonicFoundry.Vegas
Public Module MainModule
Public Sub Main()
ShowMessage()
End Sub
Private Sub ShowMessage()
MessageBox.Show("hello world")
End Sub
End Module
----------------------------------
So From what I understand you need to put everything in a Module called MainModule and in there Vegas starts to run code from Sub Main() then you can start doing whatever you want!