Jump to content


Recommended Posts


7: Ok ; Vista: Ok ; XP: some...


$ink = ObjCreate("InkEd.InkEdit.1")
$hGui1 = GUICreate("Ink edit",520,150)
$gink=GUICtrlCreateObj($ink, 10, 10, 500, 125)
$ink.InkInsertMode=0  ;0 for text ; 1 pour ink

While 1
    $Msg = GUIGetMsg()  
    If ($Msg=$GUI_EVENT_CLOSE) Then
Edited by Michel Claveau
Link to comment
Share on other sites

Thanks for sharing. Interesting stuff. Is "InkEd.InkEdit.1" then a graphical ActiveX/COM object that you can insert in a GUI app (built in AutoIt or Visual Basic, etc.)?

By the way, you mention Windows XP support is some. I assume that means you either need the Tablet PC Edition or you need to install the MS Ink Library/SDK? For anyone that just wants to install the Ink library w/o the SDK, read my note below.

FYI, I put together something similar in .NET/C# but for web apps, but never tested it in Windows 7 or Vista. This article includes source code, example binary, and MS Ink library installer for XP. Much less work to build ink app with your code though than what I posted in my article.

Web Ink/Drawing Control



Edited by daluu
Link to comment
Share on other sites

Re, all!

Sorry for delay, but, during night, I sleep...

Several infos:

- The recognize is automatic, with the delay get in $ink.RecognitionTimeout (delay after end of drawing).

- You can force recognize, with $ink.Recognize().

- On XP, TabletPC components should be installed ; on 2008, Vista & 7, these components should NOT be uninstalled.

- Sorry for my bad english (I do not understand english).

- The componant has several properties ; you can play with.

- The componant has also several events ; I have no include that in my exemple.

- The dotNET version is more complete, but very more complicated. And I do not like XML (XAML). Sorry for Silverlight.

- Another componant, quite similar, is InkPicture (msinkaut.InkPicture.1).

- Have a good day.

- You can correct, after recognize, with a "mouse-press-and-trace-left" gesture, or get line-feed with "mouse-press-go-down-then-left" gesture (TabletPC-TIP gestures)

- With a single clic on recognized chars can put the cursor (you can then select with keyboard)

Edited by Michel Claveau
Link to comment
Share on other sites


How can I use this script? What exactly do? Can someone explain clearly?

Basic use:

Write texte (letters) or numbers (digit) in the box, with mouse, or, if your PC is tactile, with finger or stylet.

2 seconds after you finish, the script recognize your write.

Link to comment
Share on other sites

  • 3 weeks later...

Very Interesting !

After Microsoft Windows XP Tablet PC Edition Software Development Kit 1.7 installed,

TabletPC components should be installed : xp pro no problem, but for xp family,

Microsoft Windows XP Tablet PC Edition 2005 Recognizer Pack can not be installed.

I had to change the msi installer ( supress ExitInvalidOs ) with orca.

And it work's fine !

Thank's !!!

Edited by wakillon

AutoIt X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...