victor Posted March 12, 2012 Posted March 12, 2012 Hi , I wonder if ConsoleWrite can out put different text color ? cheer
Shaggi Posted March 12, 2012 Posted March 12, 2012 Using SciTE - you can emit "+->!" at a start of a line. If you're working with consoles, use the winapi instead. Or you can check out my sig for a UDF that can do it Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG
victor Posted March 12, 2012 Author Posted March 12, 2012 Thanks ,Yes it's for SciTE stdout , I had tried the above code and it seem only the BLUE is workingConsoleWrite('> = Blue' & @LF)
Chimaera Posted March 12, 2012 Posted March 12, 2012 Worked fine for me maybe your not on the latest release of Autoit /Scite? If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices()
guwguw Posted October 28, 2012 Posted October 28, 2012 (edited) Thanks , Yes it's for SciTE stdout , I had tried the above code and it seem only the BLUE is working ConsoleWrite('> = Blue' & @LF) Try these ConsoleWrite("> " & @ScriptLineNumber & " makes color BLUE" & @CRLF) ConsoleWrite("! " & @ScriptLineNumber & " makes color RED" & @CRLF) ConsoleWrite("- " & @ScriptLineNumber & " makes color ORANGE" & @CRLF) ConsoleWrite("+ " & @ScriptLineNumber & " makes color GREEN" & @CRLF) Now I'm wondering if there is a way to color single text (like groups or single words) inside console text ... Edited October 28, 2012 by guwguw
caleb41610 Posted October 28, 2012 Posted October 28, 2012 (edited) Thanks ,Yes it's for SciTE stdout , I had tried the above code and it seem only the BLUE is workingConsoleWrite('> = Blue' & @LF)Those will color the entire line. You can't individually color items throughout a single line in the Scite console. Edited October 28, 2012 by caleb41610 Multi-Connection TCP Server
Developers Jos Posted October 28, 2012 Developers Posted October 28, 2012 Now I'm wondering if there is a way to color single text (like groups or single words) inside console text ...When you mean inside of SciTE's Outputpane then the answer is: NoYou are depending on what the lexer in SciTE for the outputpane supports, which is really made to lex the output of compiler programs and automatically does some coloring for warnings and errors.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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