arcker Posted July 28, 2006 Share Posted July 28, 2006 I've posted before to know how to have the output of a script when executed under dos (like in a batch) the only solution is to pipe the output, but it can only be draw when the script is finisehd so, is it possible to have an output like in vbs : WScript.Echo reason ? we are converting some vbs=>autoit, but we need the information when they are executed PS : AutoIT POWAAAAA thx... xD -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list] Link to comment Share on other sites More sharing options...
JSThePatriot Posted July 28, 2006 Share Posted July 28, 2006 I've posted before to know how to have the output of a script when executed under dos (like in a batch)the only solution is to pipe the output, but it can only be draw when the script is finisehdso, is it possible to have an output like in vbs : WScript.Echoreason ? we are converting some vbs=>autoit, but we need the information when they are executedPS : AutoIT POWAAAAAthx...xDAutoIt BetaConsole*() Functions and STD*() Functions. Should allow you to output. I am not positive as I have never had that need, but I am pretty certain that is what you are looking for.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Valik Posted July 28, 2006 Share Posted July 28, 2006 Sigh:Compiled AutoIt scripts are not considered console applications by Windows. If you run your compiled script by itself in a DOS window you'll see no output from ConsoleWrite() because the Windows shell disconnects the STDOUT pipe from non-console applications when they are spawned. This is why you don't see any output in your tests. Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 29, 2006 Share Posted July 29, 2006 I like that, thats getting added to my signiture. There is no easy way to create a hybrid application that will connect to an existing console, if started from one or stay consoleless otherwise. If you can find a way to get the process that started the script, check to see if it has a console associated with it, and attach to it, you can output to it. Good luck on that, it seems kinda pointless to me. AutoIt wasn't mean for consoles. Link to comment Share on other sites More sharing options...
Valik Posted July 29, 2006 Share Posted July 29, 2006 DaveF is also using that text as part of his signature. I copied it straight from his signature. Link to comment Share on other sites More sharing options...
JSThePatriot Posted July 29, 2006 Share Posted July 29, 2006 Sigh:My mistake. I dont make console applications out of Windows API. I hope I remember this for next time... dunno. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
arcker Posted July 30, 2006 Author Share Posted July 30, 2006 mmm ok i've tried to attach a console with the compiled script, but no way really frustating when following a process, but i know, there is the gui, and not for nothing ^^ thx a lot for your quick answers c u -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list] 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