[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to invoke COM function (ActiveX) in Octave that takes input paramete
From: |
nckhrs |
Subject: |
How to invoke COM function (ActiveX) in Octave that takes input parameter? |
Date: |
Wed, 20 Nov 2019 19:48:34 -0600 (CST) |
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?
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- How to invoke COM function (ActiveX) in Octave that takes input parameter?,
nckhrs <=