Jump to content
Sign in to follow this  
Gui

Help with a CUI?

Recommended Posts

Gui

SOLVED.

Edited by Gui

Share this post


Link to post
Share on other sites
wakillon

So I have this Console Application, but it's unable to be appended with text, or be read. Any ideas?

Reading [sOLVED]

Inserting Text [uN SOLVED]

Which console application ?

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Zedna

If you add @CR at begin of your text then it writes at the same line (adding mode).

Example for demo CUI progressbar using this technique:

#AutoIt3Wrapper_Change2CUI=y

#include <string.au3>

For $i = 1 to 79
    $part1 = _StringRepeat(Chr(219), $i)
    $part2 = _StringRepeat(Chr(177), 79 - $i)
    ConsoleWrite(@CR & $part1 & $part2)
    Sleep(50)
Next

; uncomment this if you want to preserve finished progressbar
;~ ConsoleWrite(@CRLF & "DONE!")

; comment this if you want to preserve finished progressbar
ConsoleWrite(@CR & _StringRepeat(' ', 79))
ConsoleWrite(@CR & "DONE!")
Edited by Zedna

Share this post


Link to post
Share on other sites
Gui

@Zedna, I don't mean ConsoleWriting with the function, I mean actually interacting with the Console, literally adding text, or typing into it. With this you'd be able to prompt, etc.

@Walkillin, a CUI (Console Application created with AutoIt)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.