spudw2k Posted May 19, 2009 Share Posted May 19, 2009 (edited) CAN YOU PLEASE HELP ME?Do you have Proper software installed? It requires the MODI software part of Office. Some people have said the link in this post gets them rolling. I had to go into the Office Add/Rem wizard and be sure that Office Document Imaging was enabled under Office Tools. Hope that helps. Edited May 19, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
spudw2k Posted May 19, 2009 Share Posted May 19, 2009 Does not work on Office 2007.Works fine for me, see post above. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
koticimage Posted May 20, 2009 Share Posted May 20, 2009 Works fine for me, see post above.OK, that's probably why, I have 2007. Thanks for your help. Link to comment Share on other sites More sharing options...
trinitrotoluen Posted July 16, 2009 Share Posted July 16, 2009 (edited) Hi, is this an old script ? Do I have to convert to the new one ? I got these errors :(40,42) : WARNING: $WS_OVERLAPPEDWINDOW: possibly used before declaration. $WS_OVERLAPPEDWINDOW +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^(40,56) : WARNING: $WS_VISIBLE: possibly used before declaration. $WS_OVERLAPPEDWINDOW + $WS_VISIBLE +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^(40,74) : WARNING: $WS_CLIPSIBLINGS: possibly used before declaration. $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^(40,42) : ERROR: $WS_OVERLAPPEDWINDOW: undeclared global variable. $WS_OVERLAPPEDWINDOW +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ - 1 error(s), 3 warning(s)!>05:50:18 AU3Check ended.rc:2+>05:50:19 AutoIt3Wrapper Finished>Exit code: 0 Time: 1.131 Edited July 16, 2009 by trinitrotoluen Link to comment Share on other sites More sharing options...
Jfish Posted July 25, 2009 Share Posted July 25, 2009 You should try to delete these and then run it again - it should work. _$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS P.S. Ptrex, this is amazing. I never knew that Office came with scriptable OCR. I was skeptical that it would work - but I tested it on a PDF that I converted to Tiff and it got every word. Thank you for the post. Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt Link to comment Share on other sites More sharing options...
Skrip Posted July 29, 2009 Share Posted July 29, 2009 Would this be possible in Office 2007? [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
ptrex Posted July 30, 2009 Author Share Posted July 30, 2009 @Firestorm, As far as I remember you can download this as a seperator download from MS. I thinks the link is in this thread somewhere. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
trinitrotoluen Posted August 2, 2009 Share Posted August 2, 2009 I'm using office 07 with SP2. I copied image and paste into Microsoft Office Document Imaging then run OCR but always get this message :OCR was not successful (no text was found) on one or more pages.How can I use it ? Link to comment Share on other sites More sharing options...
spudw2k Posted August 4, 2009 Share Posted August 4, 2009 (edited) Would this be possible in Office 2007?http://www.autoitscript.com/forum/index.php?showtopic=50608&view=findpost&p=684976How can I use it ?Check this out for some ideas. #629661 Edited August 4, 2009 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
trinitrotoluen Posted August 5, 2009 Share Posted August 5, 2009 (edited) Hi,spudw2kSorry I can't understand you.I copied and pasted the image with full of texts on Microsoft Office Document Imaging but always got this error when I used OCR :OCR was not successful (no text was found) on one or more pages.I use directly Microsoft Office Document not through AutoIT code. Edited August 5, 2009 by trinitrotoluen Link to comment Share on other sites More sharing options...
spudw2k Posted August 6, 2009 Share Posted August 6, 2009 Hi,spudw2kSorry I can't understand you.I copied and pasted the image with full of texts on Microsoft Office Document Imaging but always got this error when I used OCR :I use directly Microsoft Office Document not through AutoIT code.I've never used any MODI interface but the code presented in this thread. Sorry for the confusion. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
trinitrotoluen Posted August 6, 2009 Share Posted August 6, 2009 (edited) OK, I wanna try the MODI interface first to find out exactly how it works ! Anyway thank you spudw2k >_< Edited August 6, 2009 by trinitrotoluen Link to comment Share on other sites More sharing options...
xHPx Posted August 12, 2009 Share Posted August 12, 2009 I can't get this to work, I always get COM errors >_<Could it be because I only have Office Basic Edition?Also, I tried this, but the download only contains some readme stuff. Link to comment Share on other sites More sharing options...
xHPx Posted August 12, 2009 Share Posted August 12, 2009 Nevermind, I got it working. Just had to go to Office installation and install MODI >_ Link to comment Share on other sites More sharing options...
JohnOne Posted August 24, 2009 Share Posted August 24, 2009 (edited) This is a very interesting thread, and I could use something like this, if that is I had the know how.Anyway, before I satart looking to install office or try to grasp this concept may I ask a couple of questions ?Firstly, I read this thread and noticed people talking about reading pages of stuff, My question is this......Would if be able to read just a single charactor ?eg. (this is a .jpg, although the image I would want it to read would most likely be .tif)Secondly, could it read it directly off the screen or does it need to save an image and read it from that image ?Appreciate any answersJohn Edited August 24, 2009 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
dexxa Posted August 25, 2009 Share Posted August 25, 2009 anyone having problem getting the script to work in windows 7 with office 2007. i have modi installed and it's working cuz i can use the modi gui to test it out. but it keeps throwing error at line 37 where it creates the modi.document object. Link to comment Share on other sites More sharing options...
JohnOne Posted August 28, 2009 Share Posted August 28, 2009 Finally got this to work, its quite good, thanks. I wonder though, when it reads a tif file it throws up a viewer which you have to close to get resuls, but when reading a bmp file it just throws up the results. Anyone trying to still run this, All I installed out of office 2007 was micrsoft office tools, no word,exel,access etc, just the tools. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
S0789300 Posted September 20, 2009 Share Posted September 20, 2009 I've been using a modified version of this source code, with a screenshot capture program for a while and it works. However, has Ptrex or anyone noticed that the modi capture seems to have a border of 'accuracy' around it? That is, numbers or words around the edge of the image itself doesn't capture accurately sometimes? I am working with a list of items, and sometimes a word will be closer to the edge and therefore the capture isnt as accurate - any thoughts or fixes on this?? If you do please msg me. Link to comment Share on other sites More sharing options...
coopdaveel Posted October 4, 2010 Share Posted October 4, 2010 ptrex, you are da bomb! Your script is most helpful--both in its simplicity and for its educational content (for me at least.)I had to make an edit to make it work under the newer version of AutoIT, but it worked fine.Note to anyone looking to convert MDI files to TIFF (since Office 2010 doesn't have Microsoft Office Document Imaging): the COM object model will work for conversions. Must have a machine with MODI on it of course, but using the MSDN documentation and some edits to this script it can be done very simply. (See http://msdn.microsoft.com/en-us/library/aa202834(v=office.11).aspx)Thank you, ptrex. You've saved me a lot of time, and possibly my company a lot of money. (We'll have to wait and see about the money part.) Link to comment Share on other sites More sharing options...
ptrex Posted October 5, 2010 Author Share Posted October 5, 2010 @coopdaveel You are welcome ! But sharing your code is what it about out here Rgds ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
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