CiVQ Posted February 22, 2013 Posted February 22, 2013 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.
Xenobiologist Posted February 22, 2013 Posted February 22, 2013 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
CiVQ Posted February 22, 2013 Author Posted February 22, 2013 Yes, this is excactly, what I was looking for! Thank you! I know that my code is ugly. But it works. Mostly.
CiVQ Posted February 22, 2013 Author Posted February 22, 2013 (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 February 22, 2013 by CiVQ I know that my code is ugly. But it works. Mostly.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now