Jump to content

consoleWrite(question)


E1M1
 Share

Recommended Posts

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

:D

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

I don't know what you want Posted Image

ConsoleWrite("stuff generated")
ConsoleWrite("1%")
Sleep(1000)
ControlSend("", "", "Scintilla2", "{BS 2}")
ConsoleWrite("2%")
Exit

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

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=66486

Contains a variety of ways to overwrite and even decorate the ConsoleWrite() output from a CLI compiled script.

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...