BBrian Posted April 7, 2008 Posted April 7, 2008 I have my first big script complete, it opens three applications while performing its role, MS. Word, Abbyy FineReader and a comand line pdf tool and so far works adequately. It would be perfect if it could run in the background. If I was to run it as a service, would the other applications also operate silently in the background? If they don't then I guess there's no advantage to it being a service!?
exodius Posted April 8, 2008 Posted April 8, 2008 Depending on what you're doing with those three applications, it's possible that it could be run silently in the background (or close to silently anyways)... You could run the PDF command-line tool with the SW_HIDE flag (see the helpfile), you could use MS Word using the COM interface (search the forums) and I've not really used the other one, but you might be able to do a WinSetState ("Title", "", @SW_Hide) on it as soon as it opens or when you Run it and then just do ControlCommands to it... But it really just depends, you're somewhat limited by what other programs have to offer you for an interface.
ptrex Posted April 8, 2008 Posted April 8, 2008 @BBrian If you want to run as a service. look in my signature for AU3@service 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
BBrian Posted April 11, 2008 Author Posted April 11, 2008 (edited) I'm making some headway on this. I have the script running as a service and the Abbyy FineReader part of the script works fine. Winword.exe starts but I can't get the handle for Word using WinGetProcess, I assume because there is no window! I'm looking for a PID -> handle script but the one I found didn't work. I need the handle so I can use _WordAttach and then call a macro. I'm worried this might not be possible. Ideas? Edited April 12, 2008 by BBrian
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