Jump to content
Sign in to follow this  
FinalVersion

ConsoleWrite?

Recommended Posts

FreeFry

ConsoleWrite("This will be on the first line" & @LF & "This will be on the second line" & @LF)

the last @LF is so that the next entry on the console will be on a new line

Quite simple. ^_^

Share this post


Link to post
Share on other sites
MrMitchell

And if you compile as a CUI ConsoleWrite() will output to the command prompt window.

Share this post


Link to post
Share on other sites
FinalVersion

ConsoleWrite("This will be on the first line" & @LF & "This will be on the second line" & @LF)

the last @LF is so that the next entry on the console will be on a new line

Quite simple. ^_^

I know how to use it, it just doesn't work.

And if you compile as a CUI ConsoleWrite() will output to the command prompt window.

Trying this ty.

Share this post


Link to post
Share on other sites
SmOke_N

I know how to use it, it just doesn't work.

Trying this ty.

ConsoleWrite is used in SciTe editor, to print to the pane below the code. If you're not using SciTe, this is probably why it's not working.

It can also be used in process info retrieval from the stream of one application to another and as MrMitchel has stated, can write to the cmd console if compiled in CUI mode.

Typically I use ConsoleWrite for quit output or debug code in SciTe.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
MrMitchell

What are you using to execute your scripts? Scite?

Share this post


Link to post
Share on other sites
DrKovra

Try to read the "AutoIt Help" first ... btw, your answer is red-bolded !

Function Reference

ConsoleWrite

--------------------------------------------------------------------------------

Writes data to a stream that text editors can sometimes read.

ConsoleWrite ( "data" )

Parameters

data: The data you wish to output.

Return Value

None.

Remarks

The purpose for this function is to write to a console which many popular text editors can read.

This does not write to a DOS console.

...


[s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________---------------

Share this post


Link to post
Share on other sites
DrKovra

Edit, Problem Solved.

OK.. LATE BUT .... Check this post on the FORUM ... ^_^ ...THE FRENCH FRIES CUI GUY!


[s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________---------------

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  

×