Jump to content



Photo

Textract (Screen OCR) UDF


  • Please log in to reply
5 replies to this topic

#1 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 09 February 2009 - 01:12 PM

This UDF provides text capturing support for applications and controls using Textract - an OCR Screen Text Capture Library for Windows 95/98/ME/NT/2000/XP.

This is an alternative to using the Microsoft Office Document Imaging library that comes with Office 2003 and higher.

At the time of writing this UDF, Textract is available on a free 40 day trial, with a purchase price of $219US for 1 copy.

REQUIREMENTS:
  • AutoIt3 3.2 or higher
  • Textract 2.9 or above
INSTALLATION:
To install the Textract trial:
LIST OF FUNCTIONS:

_TextractCapture($win_title, $win_text = "", $ctrl_id = "", $delimiter = "", $expand = 1, $scrolling = 1, $cleanup = 1)
_TextractFind($win_title, $win_text = "", $ctrl_id = "", $find_str = "", $partial = 1, $delimiter = "", $expand = 1, $scrolling = 1, $cleanup = 1)

DEMONSTRATION:
<Under Construction>

EXAMPLES:
Attached File  _TextractCapture.au3   746bytes   572 downloadsAttached File  _TextractFind.au3   362bytes   465 downloads

DOWNLOAD:

Latest Version - v0.2 (12/02/09)
Attached File  Textract.au3   8.34K   585 downloads

Edited by seangriffin, 21 May 2010 - 11:03 PM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia





#2 Innovative

Innovative

    Super powers FTW!

  • Active Members
  • PipPipPipPipPipPip
  • 572 posts

Posted 09 February 2009 - 01:17 PM

Are you afraid that you won't have a place to post your script that you are posting it even before it was ready ?

#3 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 09 February 2009 - 01:52 PM

Are you afraid that you won't have a place to post your script that you are posting it even before it was ready ?


:) What better place to construct a post than in the post itself?

Not sure if I'll get a V0.1 done tonight. I'm gunna try though. :)
Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia

#4 longfields

longfields

    Seeker

  • Active Members
  • 10 posts

Posted 28 February 2009 - 03:36 PM

It doesn't seem to work. Syntax of the call:

$gamwind = WinGetTitle("[ACTIVE]", "")
$newdata = _TextractCapture($gamwind, "", "", "", 1, 1, 1)

I get the following error message:

C:\Program Files\AutoIt3\Include\Textract.au3 (111) : ==> The requested action with this object has failed.:
$TextractOCX.ReadWindow(Number($hwnd))
$TextractOCX.ReadWindow(Number($hwnd))^ ERROR

Any thoughts?

#5 pabloruiz55

pabloruiz55

    Seeker

  • New Members
  • 2 posts

Posted 05 January 2010 - 11:55 AM

It doesn't seem to work. Syntax of the call:

$gamwind = WinGetTitle("[ACTIVE]", "")
$newdata = _TextractCapture($gamwind, "", "", "", 1, 1, 1)

I get the following error message:

C:\Program Files\AutoIt3\Include\Textract.au3 (111) : ==> The requested action with this object has failed.:
$TextractOCX.ReadWindow(Number($hwnd))
$TextractOCX.ReadWindow(Number($hwnd))^ ERROR

Any thoughts?

Hi, i am getting the same error, how can i solve this? Thanks

#6 H4CK3D

H4CK3D

    Seeker

  • Active Members
  • 8 posts

Posted 11 July 2011 - 01:10 PM

Error Code:

>"x:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "xxx" /autoit3dir "x:\Program Files\AutoIt3" /UserParams     +>15:07:28 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0415  Keyboard:00000415  OS:WIN_7/  CPU:X64 OS:X86) >Running AU3Check (1.54.19.0)  from:D:\Program Files\AutoIt3 +>15:07:29 AU3Check ended.rc:0 >Running:(3.3.6.1):D:\Program Files\AutoIt3\autoit3.exe "xxx\123.au3"     x:\Program Files\AutoIt3\Include\Textract.au3 (86) : ==> Variable used without being declared.: $sel_index = _GUICtrlListBox_GetCurSel($hwnd) $sel_index = _GUICtrlListBox_GetCurSel(^ ERROR ->15:07:32 AutoIT3.exe ended.rc:1 >Exit code: 1    Time: 6.842


My Code:
#include <Textract.au3> $omg = _TextractCapture("java aplication") msgbox(0, "", $omg)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users