victor Posted March 12, 2012 Share Posted March 12, 2012 Hi , I wonder if ConsoleWrite can out put different text color ? cheer Link to comment Share on other sites More sharing options...
Shaggi Posted March 12, 2012 Share 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 Link to comment Share on other sites More sharing options...
victor Posted March 12, 2012 Author Share 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) Link to comment Share on other sites More sharing options...
Chimaera Posted March 12, 2012 Share 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() Link to comment Share on other sites More sharing options...
guwguw Posted October 28, 2012 Share 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 Link to comment Share on other sites More sharing options...
caleb41610 Posted October 28, 2012 Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted October 28, 2012 Developers Share 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. Link to comment Share on other sites More sharing options...
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