 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
cakepizza Guest
|
Posted: Tue Mar 09, 2010 1:46 pm Post subject: Opens a file fine, but then thinks that it failed |
|
|
I had made a program using ahk on my vista computer, when I copied it over to my windows 7 computer now when i run the program I get the error message...
"Failed attempt to launch program or document"
at the line...
"Run, Audio Process.wrk"
but here is the kicker..it opens the document it is trying to open just fine! but for some reason it thinks that it is not successfully opening it.
Now sometimes it does not produce this error and just works, but it seems to be totally random. I will run my script 10 times in a row and 6 out of the ten times it produces this error. Also, it only happens when I am trying to open this specific kind of file (.wrk files are are work files for cakewalk home studio 2002). I also tested with text documents and it always ran them fine. Is it possible that .wrk files take a little longer to open, so it thinks the file if failing to open when it is really opening just fine??
in the meantime, is there any way I can stop it from producing the false error, it is causing me a lot of problems.. Thanks! |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Tue Mar 09, 2010 1:57 pm Post subject: |
|
|
perhaps try adding %A_ScriptDir%\ and don't post in bugs but in ask for help first, if it is really a bug a mod will move it. Or try setworkingdir _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 3254 Location: Simi Valley, CA
|
Posted: Wed Mar 10, 2010 1:49 am Post subject: |
|
|
| The Manual wrote: | | Run, Target, WorkingDir, UseErrorLevel ... If the launch fails, this option skips the warning dialog, sets ErrorLevel to the word ERROR, and allows the current thread to continue. |
_________________ Ternary (a ? b : c) guide TSV Table Manipulation Library
Post code inside [code][/code] tags! |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Mar 10, 2010 2:45 am Post subject: Re: Opens a file fine, but then thinks that it failed |
|
|
| cakepizza wrote: | | Is it possible that .wrk files take a little longer to open, so it thinks the file if failing to open when it is really opening just fine?? | Yes. I see it all the time with web addresses/html files when Firefox decides to do an update before starting (but does eventually open the address/file). |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|