Jump to content
Sign in to follow this  
Killer

display text in cmd environment

Recommended Posts

Killer

Hi,

Is there anyway to display text in command line environment rather than a popup dialog box?

Share this post


Link to post
Share on other sites
Killer

Yes

I am still clueless.

Share this post


Link to post
Share on other sites
Mat

There a several ways to do it. The easiest way is too compile as a CUI (Console User Interface). You can do this by adding:

#AutoIt3Wrapper_Change2CUI=y

To the top of the script and building through SciTE (assuming you have the full version). Or you can tick the "Console?" checkbox is Aut2exe.

Either way you write to the console using the ConsoleWrite function, just make sure you end any strings you write to the console with @CRLF.

The next way to do it is ridiculously more complex and uses the AllocConsole function which hasn't actually been released yet (I'm working on it :mellow: ) but an example of can be found here.

Share this post


Link to post
Share on other sites
Killer

Thanks for the help

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  

×