Hi,
I want to programmatically do the same, as when the user clicks the Cancel button, when Vegas is building peaks. I can do Vegas.CancelAsynchronousTasks();
But that seems to cancel also some other important operations, because if I invoke this, Vegas behaves strange, both when opening and saving projects.
For example, if I invoke CancelAsynchronousTasks() after the project has been opened, Vegas won't save a project when I press Ctrl+S, I have to press Ctrl+S twice. This is 100% reproducible.
The time after CancelAsynchronousTasks() was invoked is unimportant, I can have dinner, come back, and still Ctrl+S has to be pressed twice.
Please, I beg you, don't ask or discuss why I want to cancel Building Peaks. There are countless threads on the Internet where this is discussed. I want, under certain conditions, to cancel Building Peaks in my extension. Period.
So, is there another way to cancel building peaks programmatically? Or something I have overlooked regarding CancelAsynchronousTasks()? Some Vegas events I can use perhaps?
Any help appreciated, very much :)
-Ingvar
I want to programmatically do the same, as when the user clicks the Cancel button, when Vegas is building peaks. I can do Vegas.CancelAsynchronousTasks();
But that seems to cancel also some other important operations, because if I invoke this, Vegas behaves strange, both when opening and saving projects.
For example, if I invoke CancelAsynchronousTasks() after the project has been opened, Vegas won't save a project when I press Ctrl+S, I have to press Ctrl+S twice. This is 100% reproducible.
The time after CancelAsynchronousTasks() was invoked is unimportant, I can have dinner, come back, and still Ctrl+S has to be pressed twice.
Please, I beg you, don't ask or discuss why I want to cancel Building Peaks. There are countless threads on the Internet where this is discussed. I want, under certain conditions, to cancel Building Peaks in my extension. Period.
So, is there another way to cancel building peaks programmatically? Or something I have overlooked regarding CancelAsynchronousTasks()? Some Vegas events I can use perhaps?
Any help appreciated, very much :)
-Ingvar