[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to invoke COM function (ActiveX) in Octave that takes input para
From: |
PhilipNienhuis |
Subject: |
Re: How to invoke COM function (ActiveX) in Octave that takes input parameter? |
Date: |
Thu, 21 Nov 2019 11:14:58 -0600 (CST) |
nckhrs wrote
> I use Octave 5.1.0 with "windows" package installed (from Octave Forge). I
> use it to access COM interface (ActiveX) of a windows app.
>
> I can see the COM functions using:
> h = actxserver('MyApp.Application')
> com_invoke(h)
>
> I can access COM function that doesn't take any parameter:
> com_invoke(h, "GetStatus")
>
> However, for function that takes one parameter, I couldn't find the right
> syntax. I have tried these below to no avail:
>
> com_invoke(h, "SetType", 1)
> com_invoke(h, "SetType(1)")
> com_invoke(h, "SetType", {1})
> com_invoke(h, "SetType", ({1}))
> com_invoke(h, "SetType[1]")
> com_invoke(h, "SetType", [1])
> com_invoke(h, "SetType", "1")
>
> I have been searching online, couldn't find any info.
>
> What is the correct way to invoke COM function that takes an input
> parameter?
I'm afraid you have abetter chance for anwers on the various microsoft
developers site(s) for answers, notably for ActiveX, VB (Visual Basic) and
COM.
Or ask on stackoverflow.
I got several potentially good hits with a search for "Activex actxserver
parameters".
Philip
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html