Jump to content
Sign in to follow this  
Michel Claveau

inkedit

Recommended Posts

Michel Claveau

Hi!

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

#include<guiconstants.au3>

$ink = ObjCreate("InkEd.InkEdit.1")
$hGui1 = GUICreate("Ink edit",520,150)
$gink=GUICtrlCreateObj($ink, 10, 10, 500, 125)
$ink.UseMouseForInput=True
$ink.BackColor=200*256*256+250*256+250
$ink.Enabled=True
$ink.RecognitionTimeout=2000
$ink.InkMode=2
$ink.InkInsertMode=0  ;0 for text ; 1 pour ink
$ink.Locked=False
$ink.SelFontName="Arial"
$ink.SelFontSize=14

$ink.Refresh()
 
GUISetState(@SW_SHOW)
While 1
    $Msg = GUIGetMsg()  
    If ($Msg=$GUI_EVENT_CLOSE) Then
      MsgBox(0,"Text",$ink.Text,2)
      Exit
    EndIf
    sleep(12)
WEnd
Exit
Edited by Michel Claveau

Share this post


Link to post
Share on other sites
Michel Claveau

ScreenShot (attachment)

post-5540-1272745974224_thumb.jpg

Share this post


Link to post
Share on other sites
trancexx

How did you get those numbers. With mouse?

I'm running your script but nothing :idea: except what I type.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
gseller

That is Awesome! Just write in with the mouse and click off or on the outer gui and it reads it... Way Cool!!

Share this post


Link to post
Share on other sites
Shafayat

This is really great. Only drawback is that it takes time to complete the recognition process.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
daluu

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

http://www.codeproject.com/KB/mobile/webinkctrl.aspx

http://www.codeproject.com/KB/mobile/webinkctrl/MicrosoftInk17CustomInstaller.zip

Edited by daluu

Share this post


Link to post
Share on other sites
zeffy

Woah, that's way cool! It can even read cursive lol

Share this post


Link to post
Share on other sites
Michel Claveau

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

Share this post


Link to post
Share on other sites
nikitanova

Hey, this is a great way to do this. Thanks a lot.

Share this post


Link to post
Share on other sites
Andreik

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


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Michel Claveau

Hi!

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.

Share this post


Link to post
Share on other sites
Shafayat

Basically, it creates a gui control with an object which can be used to recognize characters drawn in it.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
wakillon

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 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
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
Sign in to follow this  

×