nihylo Posted April 14, 2008 Posted April 14, 2008 Hi, I apologize if my question has already been asked, I searched a lot but I couldn't find a simple way to check the presence of the text "foobar" in PDF, Word or HTML files. I'm using AutoIt for almost the first time. Thanks by advance.
weaponx Posted April 14, 2008 Posted April 14, 2008 You are going to have a tough time with PDF files. They are encoded in a proprietary format and you will have to find a program that can extract all of the contents to a text file.
junkew Posted April 14, 2008 Posted April 14, 2008 For help earching a solution 0. Read topic in AutoIt help on obj/com reference (below function reference) 1. Word: Search for Word.au3 in this forum for AutoIt samples and in Google for word.application you get zillions of examples on wordautomation object 2. HTML: Search for IE.au3 on the forum and for shdocvw and internetexplorer.application for zillionz of examples 3. PDF: A little harder but look for OCR in this forum and/or press the searchbutton on the adobe reader and use controlsend to send the text to find. $oExcel = ObjCreate("Excel.Application") $oWord = ObjCreate("Word.Application") $oIE = ObjCreate("InternetExplorer.Application") FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
ptrex Posted April 14, 2008 Posted April 14, 2008 @allMS indexing can handle all of these file types.MS indexingLook in Post #9 on how to for PDF's.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
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