Sign in to follow this  
Followers 0
Immensee

Error handling

6 posts in this topic

Hello,

i've added some command lines into the $CMDLine, but if check (with msgbox) what the return is, using

$CMDLineRaw it returns a: /ErrorStdOut, what is that?

- me

Share this post


Link to post
Share on other sites



Hello,

i've added some command lines into the $CMDLine, but if check (with msgbox) what the return is, using

$CMDLineRaw it returns a: /ErrorStdOut, what is that?

- me

Nobody will understand what you are talking about, without some AU3 code.....


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Hello,

i've added some command lines into the $CMDLine, but if check (with msgbox) what the return is, using

$CMDLineRaw it returns a: /ErrorStdOut, what is that?

- me

the /ErrorStdOut switch is used to tell AutoIt3 to pipe output to STDOUT instead of showing a MSGBOX in case of errors ...


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

well, its very hard to explain,

i've got a file type called [.eq1] i've edited the file types of windows so it will run my autoitscript when you click on the [.eq1] type of file, like: file.eq1.

I was trying to get the filename, using the $CMDLine. It works, it says the whole filename of the clicked file, but the problem is, it shows STDout error in front of the file and then exits my program.

;File: converter.au3
;FileClicked: AnFile.eq1

;;  Setup
$fileN  =   $CMDLineRaw
MsgBox(0, "show result", $CMDLineRaw)
$file   =   FileOpen($fileN, 0)
$read   =   FileRead($file)

i've added a MsgBox command to check what the variable $CMDLineRaw holds, it result equals to: /ErrorStdOut "Converter.au3"

what is the problem, that it gives the error?

(normally, there shouldn't be a "/ErrorStdOut" string inside the $CMDLineRaw variable.)

-me

Share this post


Link to post
Share on other sites

the /ErrorStdOut switch is used to tell AutoIt3 to pipe output to STDOUT instead of showing a MSGBOX in case of errors ...

What do you mean? that it automatically show this because i placed the $CMDLineRaw inside a MsgBox cmd?

-me

Share this post


Link to post
Share on other sites

i've added a MsgBox command to check what the variable $CMDLineRaw holds, it result equals to: /ErrorStdOut "Converter.au3"

what is the problem, that it gives the error?

(normally, there shouldn't be a "/ErrorStdOut" string inside the $CMDLineRaw variable.)

how did you start the script? Maybe from Scite by pressing F5 or ALT+F5?


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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