Sign in to follow this  
Followers 0
MasonMill

consolewrite

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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

You 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? :blink:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
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
Sign in to follow this  
Followers 0