The script itself works when I run it inside of SciTE. When I compile it into an exe file and then run exe, the exe disappears. I've tried searching on the forum, in the bug reports and in google without any luck. Originally the script was set to take parameters instead of a text file, but that did the same thing.

Share this post

Link to post

Share on other sites

tiveria 0

So add few more at different places in the script. That's how you'll know when it stops to work. That's called debugging.

Thank you for the suggestion. I understand what debugging is as I'm a programmer. I've had other programmers at my office also take a look at it, and we're all confused why it's not working.

It's strange that the exe disappears, but it works without any errors when I run the script on its own. The script itself appears to work. I'm wondering if there's some strange bug in the compilation of the code that's causing it to change.

I came here to see if those who are more familiar with autoIt saw something blatent that me and my co-workers were missing.

I added another msgbox at the beginning of the script, and it's not appearing. It's reacting as if the code is never getting executed.

Share this post

Link to post

Share on other sites

tiveria 0

Originally I had meant for the code to be based on parameters. I'm building a C# app that will use a bunch of autoIt mini-scripts to do things in the background of the C# app. (ie you select something, and it e-mails your team). While I can do much of what I want it to do in C#, I like the way AutoIt typical tends to handle things. So my original script looked like:

Share this post

Link to post

Share on other sites

trancexx 900

It's strange that the exe disappears, but it works without any errors when I run the script on its own. The script itself appears to work. I'm wondering if there's some strange bug in the compilation of the code that's causing it to change.

Everything is possible but what you suggest is extremely unlikely.

You have at least one "bomb" in your script that could cause it to act unexpectedly. It's below FileReadLine line. Deal with that properly and then ask again if there would be problems afterwards.

Share this post

Link to post

Share on other sites

LarryDalooza 37

What have you named your script? what does the exe file name look like? notepad.au3? notepad.exe compiled? I know it is not, but I am familiar with mysterious problems being related to quarky script naming.

Lar.

AutoIt has helped make me wealthy

Share this post

Link to post

Share on other sites

tiveria 0

What have you named your script? what does the exe file name look like? notepad.au3? notepad.exe compiled? I know it is not, but I am familiar with mysterious problems being related to quarky script naming.

Lar.

I found the quirk. I hadn't checked to see if the file itself existed before opening it. (Since my program would always generate it..sigh I know better.) It ran, but it didn't like it in the exe file.