Sign in to follow this  
Followers 0
arcker

an output when run in dos

7 posts in this topic

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]

Share this post


Link to post
Share on other sites



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

AutoIt Beta

Console*() 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)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

DaveF is also using that text as part of his signature. I copied it straight from his signature.

Share this post


Link to post
Share on other sites

Sigh:

My mistake. I dont make console applications out of Windows API. :)

I hope I remember this for next time... dunno. :whistle:

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)

Share this post


Link to post
Share on other sites

mmm ok

i've tried to attach a console with the compiled script, but no way :whistle:

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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0