How to create a VBscript for Solidworks Composer 2024?

Hey everyone, 

i am trying to write a VBscript for Solidworks Composer 2024. I am using Visual Studio Code and trying to get a script to change the active renderingmode to technical. But i am not able to "connect" to the opend active Doc from the Composer. 

I am not sure why or how to, cause i am pretty new to coding or using the composer.

I was looking in the registry and trying to find some .application or anything familiar but the only thing i found was DSComposerPlayerActiveXCtr1 which seems to work but then i can´t change the RenderMode cause it´s not getting the active Doc, so i need to change something.

 

Thanks for your help