Jump to content

Help with a CUI?


Gui
 Share

Recommended Posts

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
Link to comment
Share on other sites

@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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...