How to use COM / ActiveX with Rhino #1787
StSchnell
started this conversation in
Show and tell
Replies: 1 comment
-
Please try to generate your com.jacob.activeX.ActiveXComponent to .net assembly and code with C# using .net framework using .NET Javascript library, like Jint, Jurassic, NilJS. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Component Object Model (COM, also known as ActiveX or OLE) is an interesting technology in the context of Windows OS. The programmatic interaction with other software such as Microsoft Excel, Microsoft Word or the scripting of the SAP GUI for Windows is realized on this basis. Reason enough to take a look at how Rhino JavaScript can use this approach. The Java COM Bridge (JaCoB) is used to make this possible. This makes it very easy to call COM automation components with Java.
Here an example with the WScript server, which is available on any Windows OS installation. In this example the classes Network and Shell are used. The network class is used to detect different attributes. The Shell class is used to call a native Windows popup with several parameters and to start and remotely control a program, in this case the calculator.
As we can see, COM can be seamlessly integrated and used in Rhino with JaCoB. This can open up interesting horizons through the combination of JavaScript, Java and COM components that offer functionalities that would otherwise not be available.
Beta Was this translation helpful? Give feedback.
All reactions