venkatb Posted September 4, 2008 Share Posted September 4, 2008 Hi ...friends...what is the purpose of "ConsoleWrite" function. I have an AUTOIT program and in that i have this function. But i could not understand what this function does. This function is writing to console...some text string. But i want to see the string. Cann some body provide a clue for this... Thank You... Link to comment Share on other sites More sharing options...
martin Posted September 4, 2008 Share Posted September 4, 2008 Hi ...friends...what is the purpose of "ConsoleWrite" function. I have an AUTOIT program and in that i have this function. But i could not understand what this function does. This function is writing to console...some text string. But i want to see the string. Cann some body provide a clue for this... Thank You...The output from console write can be read by a program which reads data on STDOUT. If you use SciTE (highly recommended) as your text editor then it will show the output and it is very useful for debugging. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
venkatb Posted September 4, 2008 Author Share Posted September 4, 2008 The output from console write can be read by a program which reads data on STDOUT. If you use SciTE (highly recommended) as your text editor then it will show the output and it is very useful for debugging.Can You please make it more clearer... Link to comment Share on other sites More sharing options...
BrettF Posted September 4, 2008 Share Posted September 4, 2008 That is pretty clear to me... Take a look here for infomation on STDOUT streams. http://en.wikipedia.org/wiki/Standard_streamsSciTe is the best editor around for AutoIt V3. Also includes many important features that help coding. The slim version is included with AutoIt but the full version is better. Get the latest Full version here. http://www.autoitscript.com/autoit3/scite/downloads.shtmlAfter you've done that, copy the following script into Scite, and run it by presisng F5.$msg = MsgBox (3, "Title", "Press a button, and see what the console outputs!") Switch $msg Case 6 ConsoleWrite ("DEBUGGING EXAMPLE: MsgBox() Returned " & $msg & " (Yes)" & @CRLF) Case 7 ConsoleWrite ("DEBUGGING EXAMPLE: MsgBox() Returned " & $msg & " (No)" & @CRLF) Case 2 ConsoleWrite ("DEBUGGING EXAMPLE: MsgBox() Returned " & $msg & " (Cancel)" & @CRLF) EndSwitchHave a look in the console pane (the edit control at the bottom of your window). You should see a line of text saying what button was pressed. Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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