You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PacketData [in] - Specifies the array of packet data. The data is an array of Int32 values which, taken in order, form the array of points (x0, y0), (x1, y1), which is passed into the method within a Variant.
PacketDescription [in] - Is a reserved parameter that is currently not implemented.
And which I found to be actually a method on an object named "msinkaut.InkObject.1" apparently (to my significant surprise). I managed to verify that a method with such name gets listed in the output of the following snippet:
I've tried then to call it in a few various ways, but none seemed to succeed (note: "Parametr jest niepoprawny" would translate as "The parameter is incorrect", code 0x80070057; I'm using luacom from luarocks, lists as v1.4-1):
Do you have, by any chance, any idea if/how may it be possible to call this successfully with luacom? I know quite well that all this COM stuff is crazy at low level (safearrays, only one error message ever, etc.), so I don't have my hopes very high here, but I just wanted to ask if you potentially could have any ideas what else I could try.
TIA!
edit: tried with ink: instead of ink. too.
The text was updated successfully, but these errors were encountered:
Have you tried enabling the debug log of LuaCOM (IIRC it is stated in the docs how to do that).
I would have thought that this would work. Seems like the correct incantation to me.
ink.CreateStroke({Value={20, 100, 30, 110}; Type="array of int4"}, {Type="variant";Value=nil})
The only thing that LuaCOM does different than the example you provided is that the lower bound of the array is 1 instead of 0. Besides that... Can you try VBScript and see if you can come up with working code?
I looked in the docs and it seems one has to rebuild the library to enable
logging? I use it as a binary LuaRock, recompiling seems more involved.
As to different language, that's what I planned for debugging too, although
I used LuaCOM in the first place because I quietly hoped I'll be able to
prototype quickly and easily, not that I'll have to dive deep into
debugging, eh...
Have you tried enabling the debug log of LuaCOM (IIRC it is stated in the
docs how to do that).
I would have thought that this would work. Seems like the correct
incantation to me.
ink.CreateStroke({Value={20, 100, 30, 110}; Type="array of int4"}, {Type="variant";Value=nil})
The only thing that LuaCOM does different than the example you provided is
that the lower bound of the array is 1 instead of 0. Besides that... Can
you try VBScript and see if you can come up with working code?
—
Reply to this email directly or view it on GitHub #14 (comment).
I'm trying to access the MS Ink API. I'm interested in the following signature now:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms695054%28v=vs.85%29.aspx
Which also has an usage demo in MSDN at:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms704898%28v=vs.85%29.aspx#code-snippet-2
And which I found to be actually a method on an object named "msinkaut.InkObject.1" apparently (to my significant surprise). I managed to verify that a method with such name gets listed in the output of the following snippet:
I've tried then to call it in a few various ways, but none seemed to succeed (note: "Parametr jest niepoprawny" would translate as "The parameter is incorrect", code 0x80070057; I'm using luacom from luarocks, lists as v1.4-1):
Do you have, by any chance, any idea if/how may it be possible to call this successfully with luacom? I know quite well that all this COM stuff is crazy at low level (safearrays, only one error message ever, etc.), so I don't have my hopes very high here, but I just wanted to ask if you potentially could have any ideas what else I could try.
TIA!
edit: tried with
ink:
instead ofink.
too.The text was updated successfully, but these errors were encountered: