Sign in to follow this  
Followers 0
LondonNDIB

Compiled script - can someone help

7 posts in this topic

What am I doing wrong. Its been a long time since i've compiled a script, but I'm certain my compiled scripts behaved like my non-compiled ones in the past. What am I doing wrong? Things like @scriptlinenumber report -1 instead of correct value. And all my Run() calls don't work. I'm sure its a simple setting I'm forgetting.

- Steven

Share this post


Link to post
Share on other sites



From helpfile:

@ScriptLineNumber: Line number currently being executed. Useful for debug statements specially when a function is call you can pass the caller line number. (Not significant in compiled script)

William

Share this post


Link to post
Share on other sites

Yesh, I just saw that.

It really should be useful for compiled scripts though. I've seen someones (lame) answer on here saying scripts should be thoroughly tested before compiling, blah blah... but I did thoroughly test and it worked fine as a script. Compiled and it didn't work at all. In my script I meticulously setup error handling exactly for this reason so I could pinpoint where the problem was.

Anyway, I figured it out. It just kinda sucked that I put in all that effort to include debugging and when the bug involved the compiled script, it was entirely useless.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Well I've never heard of it giving -1 as a scriptline number, a compiled script gives me the scriptline number.

2 points

1 a post suggesting scripts should be tested is not a lame one

2 Maybe you should have read the helpfile before you implimented your "meticulously setup error handling"

Its a no-brainer really.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Well I've never heard of it giving -1 as a scriptline number, a compiled script gives me the scriptline number.

2 points

1 a post suggesting scripts should be tested is not a lame one

2 Maybe you should have read the helpfile before you implimented your "meticulously setup error handling"

Its a no-brainer really.

Obviously your 2nd point flies in the face of your your first statement. Nice superiority complex, btw.

Share this post


Link to post
Share on other sites

Obviously your 2nd point flies in the face of your your first statement. Nice superiority complex, btw.

Yes. yes it does, I was thinking of the errors and there line numbers.

Both points still stand though, and there is no complex, you're projecting.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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