MasonMill Posted July 29, 2010 Share Posted July 29, 2010 Hey Guys, I have been struggling with consolewrite for a while now. If i am correct what ever is consolewritten gets slapped into the white field below the editor that you can drag down to make bigger? When i write ConsoleWrite("Error Code: " & @error & @CRLF & @CR), reguardless if there is an error or not it should put something down there from what people tell me. Why wouldn't it show? Even if i put something different in the consolewrite. Any help would be greatly appreciated, i think knowing how to see console write would be very beneficial. Thanks! -Mason Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 29, 2010 Moderators Share Posted July 29, 2010 MasonMill,I assume you are usuing SciTE to run your code - you get a cut-down version when you install AutoIt, but there is a much better version available for download here.Open a new file in SciTE, add this line:ConsoleWrite("Hi MasonMill!" & @CRLF)save it and then run it. When I do this I get the following in the lower panel of SciTE:>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "M:\Program\Au3 Scripts\fred4.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>15:37:59 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0409 Keyboard:00000809 OS:WIN_VISTA/Service Pack 2 CPU:X64 OS:X86) >Running AU3Check (1.54.19.0) from:C:\Program Files\AutoIt3 +>15:37:59 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files\AutoIt3\autoit3.exe "M:\Program\Au3 Scripts\fred4.au3" Hi MasonMill! +>15:37:59 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 1.372You should see something similar - although obviously the specifics will be different. Note the line where your name appears - that is where the ConsoleWrite output is displayed as SciTE intercepts the STDOUT stream.Does this work for you? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
MasonMill Posted July 29, 2010 Author Share Posted July 29, 2010 Nope, doesnt show. =( I was using SciTE4 but when i DLed your link now on the editor window it just says SciTE. Eihter way, the consolewrite never showed anything. Always blank. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 29, 2010 Developers Share Posted July 29, 2010 Nope, doesnt show. =( I was using SciTE4 but when i DLed your link now on the editor window it just says SciTE. Eihter way, the consolewrite never showed anything. Always blank.and you really pressed F5 on the script in the SciTE editor to run the script? 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...
MasonMill Posted July 29, 2010 Author Share Posted July 29, 2010 I never knew you could press F5 to run the script. I always right click on the actual file, i feel dumb =(. On the bright side, it works! There it is, bigger than day. Thank you guys! 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