E1M1 Posted September 11, 2009 Posted September 11, 2009 if i have #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Change2CUI=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ConsoleWrite("stuff generated") ConsoleWrite("1%") then How I can remove remove 1% and replace it with 2%? edited
Skruge Posted September 11, 2009 Posted September 11, 2009 How I can remove remove 1% and replace it with 2%? There are several ways to interpret what you're asking for. Hopefully this example answers a couple of them...#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Change2CUI=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ConsoleWrite("stuff generated" & @CRLF) For $iX = 1 to 100 ConsoleWrite(@CR & $iX & "% ") Sleep(25) Next [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
PsaltyDS Posted September 11, 2009 Posted September 11, 2009 if i have #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Change2CUI=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ConsoleWrite("stuff generated") ConsoleWrite("1%") then How I can remove remove 1% and replace it with 2%? Don't bother with the DOS parameter variables, use the $CmdLine array. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
funkey Posted September 11, 2009 Posted September 11, 2009 I don't know what you want ConsoleWrite("stuff generated") ConsoleWrite("1%") Sleep(1000) ControlSend("", "", "Scintilla2", "{BS 2}") ConsoleWrite("2%") Exit Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning.
E1M1 Posted September 11, 2009 Author Posted September 11, 2009 I invented method to overwrite line, now I wanna see what u think about it. consoleWrite("1") ConsoleWrite(Chr(8)) ConsoleWrite("2") edited
ResNullius Posted September 13, 2009 Posted September 13, 2009 I invented method to overwrite line, now I wanna see what u think about it.consoleWrite("1")ConsoleWrite(Chr(8))ConsoleWrite("2")You might also want to check out this thread http://www.autoitscript.com/forum/index.php?showtopic=66486Contains a variety of ways to overwrite and even decorate the ConsoleWrite() output from a CLI compiled script.
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