Jump to content

how to check if script runs successfully or not


Recommended Posts

You can create log files heres an example:

FileWriteLine($log1, " Blah Blah Blah was initiated at - " & @HOUR & ":" & @MIN & ":" & @SEC & @LF);

I think thats right. I'm new at this, but I think that is how you would do it from what I have seen.

Edited by HelloIDistance
Link to comment
Share on other sites

FileWriteLine($log1, " Blah Blah Blah was initiated at - " & @HOUR & ":" & @MIN & ":" & @SEC & @LF)

Looks good, but no semicolon at the end (since AutoIt doesn't require it.) Also, a lot of applications that people might use to read logs (like notepad.exe) won't properly display the @LF char. You should probably either use @CRLF, or leave it blank. Remember that with FileWriteLine, it will add @CRLF if you don't have either of them on the end.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

You can create log files heres an example:

FileWriteLine($log1, " Blah Blah Blah was initiated at - " & @HOUR & ":" & @MIN & ":" & @SEC & @LF);

I think thats right. I'm new at this, but I think that is how you would do it from what I have seen.

there's a handy _FileWriteLog in one of the files in the include folder, I think it's file.au3... check it out.

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...