Hello Guest it is April 19, 2024, 09:24:42 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dz32

Pages: « 1 2
11
Mach SDK plugin questions and answers. / Re: VB6 Automation Sample
« on: February 10, 2016, 07:17:37 PM »
Thanks for the welcome :)

Another file of interest will be a dump of the (192!) function names and prototypes supported by the IMyScriptObject interface.
For some reason they would not show up in the VB6 IDE so I had to dump them with another tool.

They are syntax color highlighted with VB6 prototypes in the attached rtf.
A listing of just the function names is at the bottom which may be easier to scan.

12
Mach SDK plugin questions and answers. / Re: VB6 Automation Sample
« on: February 09, 2016, 01:03:21 PM »
One other note I will put in here. I have seen it mentioned allot that after the first time you use the Mach4.CMach4Doc object, then close your program, that you have to restart Mach in order to get a hold of it again.

This is a COM reference counting issue. It must not be properly calling Addref().

If you make an extra call to it manually, then it wont be unloaded from memory when your plugin exits. With this you can start up your plugin and do testing as many times as you want without having to restart Mach each time.

13
Mach SDK plugin questions and answers. / Re: VB6 Automation Sample
« on: February 08, 2016, 12:12:12 PM »
the git repository where you can find any updates for this is here:

https://github.com/dzzie/home_automation/tree/master/mach3_vb6

14
Mach SDK plugin questions and answers. / VB6 Automation Sample
« on: February 08, 2016, 10:35:52 AM »
Hi, I didnt see any samples of automating mach3 from VB6,
but I was able to put one together see attached example

hopefully others will add to it as they need more features
and probe the api more

Pages: « 1 2