Michel Claveau Posted May 1, 2010 Posted May 1, 2010 (edited) 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 May 1, 2010 by Michel Claveau
trancexx Posted May 1, 2010 Posted May 1, 2010 How did you get those numbers. With mouse? I'm running your script but nothing except what I type. ♡♡♡ . eMyvnE
James Posted May 1, 2010 Posted May 1, 2010 How did you get those numbers. With mouse?I'm running your script but nothing except what I type.Write out what you want it to convert to. Give it a minute. Output. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
gseller Posted May 1, 2010 Posted May 1, 2010 That is Awesome! Just write in with the mouse and click off or on the outer gui and it reads it... Way Cool!!
Shafayat Posted May 1, 2010 Posted May 1, 2010 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]
daluu Posted May 1, 2010 Posted May 1, 2010 (edited) 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 May 1, 2010 by daluu
logmein Posted May 2, 2010 Posted May 2, 2010 (edited) Nothing happened! How can I get those numbers? I'm using XP. Edited May 2, 2010 by logmein [font=arial, helvetica, sans-serif][s]Total USB Security 3.0 Beta[/s] | [s]Malware Kill[/s] | Malware Scanner | Screen Hider | Locker | Matrix Generator[s]AUTO-SYNC 1.0 | MD5 Hash Generator | URL Checker | Tube Take [/s]| Random Text[/font]
Michel Claveau Posted May 2, 2010 Author Posted May 2, 2010 (edited) 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 May 2, 2010 by Michel Claveau
Andreik Posted May 3, 2010 Posted May 3, 2010 How can I use this script? What exactly do? Can someone explain clearly?
Michel Claveau Posted May 3, 2010 Author Posted May 3, 2010 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.
Shafayat Posted May 3, 2010 Posted May 3, 2010 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]
wakillon Posted May 24, 2010 Posted May 24, 2010 (edited) 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 May 24, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now