Interactive Ink

How to convert Wacom clipboard device output to text by calling Myscript

Hello,

We are using Wacom clipboard device which works on interactive ink technology. For instance, for every keystroke the clipboard device gives co-ordinates of pixels that were touched. The sample C# code we got from Myscript for windows based development kit, when convert button is clicked the following code is getting executed.

private void AppBar_ConvertButton_Click(object sender, RoutedEventArgs e)
        {
            _editor.Convert(null, _editor.GetSupportedTargetConversionStates(null)[0]);
        }

 where the api of myscript is getting called to convert the hand written notes to text. 


I would like to know how to call Myscript api which collection X,Y co-ordinates of the path. In the sample code no such way is shown.


Please guide me.


Thanks and Regards,

Venkat

 


Dear Venkat,

for such purpose, you should use the PointerEvents function, setting the processGestures boolean to false:

pointerEvents(PointerEvent[] events, boolean processGestures) 
Registers a list of pointer events.

You can find few topics that use this API:
-https://developer-support.myscript.com/support/discussions/topics/16000021050
-https://developer-support.myscript.com/support/discussions/topics/16000021288
-https://developer-support.myscript.com/support/discussions/topics/16000021290

This way, you can provide coordinates gotten from your device to the iink sdk.

Best regards,

Olivier

Dear Oliver,

Thanks for your response. I had understood the pointerEvents API. Our Wacom device code is based on .NET old version ( not on UWP). How to include the reference the Myscript 's  UWP code into the Wacom old .net version ( say .NET 4.6.1)? The reference implementation of Myscript windows version is based on UWP platform. 

If reference implementation is not available for old .NET version, the other possible solution I could think of is calling Cloud Development Kit ( CDK ) API from Wacom code to convert the Point coordinates ( strokes ) into text. 


Please throw some light on the other implementations of Myscript like Application toolkit ( ATK ) and widgets.


Regards,

Venkat

Dear Venkat,

We are currently working on adding support for the Windows desktop legacy .NET platform. It will be available starting with iink SDK 1.1 end of this month and will come with a WPF-based UI Reference Implementation.
You can alternatively use the Cloud APIs (both iink SDK Web or CDK) but it will set different deployment constraints (e.g. an Internet connection is required).
MyScript Application Toolkit and its widgets only support UWP and will not run with your .NET solution.

Best regards,

Thomas

 

Dear Oliver,


We planned to use the desktop version of Myscript API only. We are waiting for the legacy .NET myscript sdk. 

Regard to the earlier conversation, will the legacy version be released by this month end? Our integration process stalled because of unavailability of legacy SDK.

Kindly update the release dates.


Regards,

Venkat

Dear Rajendra,

The release is planned in the coming days, unless unexpected last minute issues.

Best regards,

Olivier
Login or Signup to post a comment