Jump to content

console output reuse/rewrite line question


Recommended Posts

Hello, all!

Can somebody explain, how can the console output window be reused?

I mean, like, when you run a command line compressor executable for example,

and it re-uses some of its output lines to write new data into, so, the output screen

keeps looking the same during the process, except the changing lines.

Thanks in advance!

I know that my code is ugly. But it works. Mostly.

Link to comment
Share on other sites

You mean something like this?

Compile and run it.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
$ClearProgress = 0
$processing = "Processing "
$progress = ""
Dim $spin[4] = ['¦', '/', '-', '\']

For $i = 1 To 10
For $s = 1 To UBound($spin) - 1
ConsoleWrite(@CR & $processing & $spin[$s])
ConsoleWrite("Hello World")
ConsoleWrite(@CR & _StringRepeat(' ', 30))
ConsoleWrite(@CR & "DONE!")

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

What is the purpose of the _StringRepeat function (in your script)?

By the way, some people (just like me) often forget, that the modern consoles usually accept the ancient control characters, too.

It's amazing.

Edited by CiVQ

I know that my code is ugly. But it works. Mostly.

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

  • Recently Browsing   0 members

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