beardawg Posted April 26, 2011 Share Posted April 26, 2011 Can someone explain to me why Aut2Exe supports command line execution, however, in the event of an error blocks as the error dialog requests user input. In a headless environment, this is VERY problematic when executing many scripts. I have a situation where a headless process spawns several scripts to be built, however, if one returns an error, the entire process is blocked. I have searched and searched without success, is there a command line option to execute headless? Or simply generate an error log. Anything besides generating a dialog that requires a user to click an OK button. Link to comment Share on other sites More sharing options...
wakillon Posted April 27, 2011 Share Posted April 27, 2011 The only known Command Line Parameters are : Aut2Exe.exe /in <infile.au3> [/out <outfile.exe>] [/icon <iconfile.ico>] [/comp 0-4] [/nopack] [/pack] [/ansi] [/unicode] [/x64] [/console] [/gui] AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
beardawg Posted April 27, 2011 Author Share Posted April 27, 2011 Thank you for your response, those are the only ones I have been able to find. Here is my situation: I am using Ant to generate exe's from my AutoIt scripts using Aut2Exe and Ant exec task. The problem is that if an error is encountered, it throws up an error dialog. Anyone running Aut2Exe using an Ant exec task? If so, how did you handle errors? Link to comment Share on other sites More sharing options...
jvanegmond Posted April 27, 2011 Share Posted April 27, 2011 beardwag, welcome to the AutoIt forums. 8) I say this because you can write an AutoIt script to handle the error dialog and get the output and pass it back via ConsoleWrite. github.com/jvanegmond Link to comment Share on other sites More sharing options...
beardawg Posted April 27, 2011 Author Share Posted April 27, 2011 Manadar, The error dialog is a result of a missing resource, not execution of the script. Is this possible? The error happens when building the script, not running. I do apologize, I am new to AutoIt, inherited the project and am trying to come up to speed.beardwag, welcome to the AutoIt forums. 8) I say this because you can write an AutoIt script to handle the error dialog and get the output and pass it back via ConsoleWrite. Link to comment Share on other sites More sharing options...
jvanegmond Posted April 27, 2011 Share Posted April 27, 2011 (edited) beardawg, you could use another AutoIt script as a wrapper for Aut2Exe that assists in handling these compilation errors. Edited April 27, 2011 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
beardawg Posted April 27, 2011 Author Share Posted April 27, 2011 Thanks Manadar, I didn't think of that. I will give it a quick shot and see. 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