Sign in to follow this  
Followers 0
neo291

consolewrite not writing nething to console

17 posts in this topic

M tryin to run this simple code but even this is notworkin, it simply dont show nething written newhere...it ends the script with exit code 0. Any clue if i need to change some settings somewhere ?

;------------------

ConsoleWrite("done")
Local $var = "Test"
ConsoleWrite("var=" & $var & @CRLF)

I'm not a programmer. Just a Power User.

Share this post


Link to post
Share on other sites



Of course it writes it ... run it from SciTE and you will see the output in the OutputPane.

What are you trying to do? Out put written in the CMD window? if so, compile your script with the CUI option.

Jos


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

No no...not in cmd window, but the pane in wich it tells u abt exit codes etc....the one wich appears wen u press F8. Its not showin nething there, n i just cant figure out if theres ne particular settin in scite wich cud disable consolewritin to output pane.

U think i need to reinstall autoit ?


I'm not a programmer. Just a Power User.

Share this post


Link to post
Share on other sites

I have no clou what you are saying.

Maybe you could try explaining what you are doing exactly... for example: you talk about F8 ?

Jos


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 have no clou what you are saying.

Maybe you could try explaining what you are doing exactly... for example: you talk about F8 ?

Jos

F8 brings up the SciTe Console.

This works fine for me (Just tidied up the code a bit)

Global $var = "Test"
ConsoleWrite("done" & @CRLF)
ConsoleWrite('$var="' & $var &'"' &  @CRLF)

Share this post


Link to post
Share on other sites

Maybe this picture will say more than i can explain/type.

Nothin appearin in console

;----------------------------------


I'm not a programmer. Just a Power User.

Share this post


Link to post
Share on other sites

Maybe this picture will say more than i can explain/type.

Nothin appearin in console

;----------------------------------

Check if autoit3.exe still exists because it shows a version of : 0.0.0.0 which means that something is wrong.

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

#8 ·  Posted (edited)

Something's up.

For one, you have a lack of syntax highlighting except for comments, variables, and strings.

Second, in the console output, your Autoit version number should be there after "Running (version) from (yourpath) (Your's shows 0.0.0.0)

That's different.

EDIT: Jos beat me to it.

Edited by KentonBomb

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

It took your machine 1.2 seconds to run that?

Anyway. I ran it and got:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\File path here\testcode.au3"

done

$var="Test"

>Exit code: 0 Time: 0.321

Edited by Nevin

Share this post


Link to post
Share on other sites

It took your machine 1.2 seconds to run that?

Anyway. I ran it and got:

It takes longer because au3check is also ran.

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

thanx jos n keton!

---------------------

Had it been about some script, i wud have gladly used programing standards to highlight syntax etc.

The purpose here is totally different from findin the error in some script.


I'm not a programmer. Just a Power User.

Share this post


Link to post
Share on other sites

neo291,

check the au3.properties for the value of autoit3dir which also looks wrong on the commandline shown in your screen capture.

it should be:

autoit3dir=C:\Program Files\AutoIt3


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

Ahh. Before I edited my post, it made mention of how I know nothing about Scite :P

Apparently I've been tagged "spammer". Maybe I shouldn't try to help so much. :)

I guess I'm not that helpful anyway.

Share this post


Link to post
Share on other sites

"Spammer" is the default tag for anyone over 300 posts. I think it changes again at 500 to Mass Spammer, then somewhere along the line it changes I think.

Share this post


Link to post
Share on other sites

Ahh. Before I edited my post, it made mention of how I know nothing about Scite :P

Apparently I've been tagged "spammer". Maybe I shouldn't try to help so much. :)

I guess I'm not that helpful anyway.

When you load the full SciTE4AutoIt3 packages you get these extra options. AutoIt3 comes with a lite version on SciTE4Autoit3 that only does Run and Compile.

Jos


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

Back.

Reinstalled the entire thingy n instead of putting a AutoIt3.exe installer puts a AutoIt3A.exe. So renamed it n its working fine now.

Thanx a lot jos.

Thanx a lot guys.


I'm not a programmer. Just a Power User.

Share this post


Link to post
Share on other sites

Back.

Reinstalled the entire thingy n instead of putting a AutoIt3.exe installer puts a AutoIt3A.exe. So renamed it n its working fine now.

Thanx a lot jos.

Thanx a lot guys.

There should be an Autoit3.exe (Unicode version) and an Autoit3A.exe (ANSI Version)

If you're missing one, you must be using a broken installer.

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