Jump to content
NeoDreamer

How to write string on console

Recommended Posts

ConsoleWrite('Wrting before sleep' & @CRLF)
ConsoleWriteError('Error writing before sleep' & @CRLF)

Sleep(2000)

ConsoleWrite('Wrting after sleep' & @CRLF)
ConsoleWriteError('Error writing after sleep' & @CRLF)

I write code like above to write log on console.
and then run script like below command on cmd window. But it does not work. anything was showed.

E:\> autoit3 ConsoleText.au3

E:\>

And I try to execute with pipe option.

E:\>autoit3 ConsoleOutput.au3 | more
Wrting before sleep
Wrting after sleep

E:\>

How to write string on console directly(without pipe options)

Share this post


Link to post
Share on other sites

Download full SciTE package (https://www.autoitscript.com/site/autoit-script-editor/downloads/) and add

#AutoIt3Wrapper_Change2CUI=y

to your script.

Compile it and start it in cmd window.


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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

×
×
  • Create New...