Sign in to follow this  
Followers 0
CiVQ

console output reuse/rewrite line question

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



You mean something like this?

Compile and run it.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Change2CUI=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include 
$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])
Sleep(50)
Next
Next
ConsoleWrite("Hello World")
Sleep(500)
ConsoleWrite(@CR & _StringRepeat(' ', 30))
Sleep(500)
ConsoleWrite(@CR & "DONE!")
Sleep(500)

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

Share this post


Link to post
Share on other sites

Yes, this is excactly, what I was looking for!

Thank you!


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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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.

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  
Followers 0