Hello, I am experiencing a strange problem where after I run a compiled FoxPro program, an error dialog appears saying that the program failed to run. I can't figure out how to prevent it, so I thought I would make an ahk script to dismiss the dialog box. However, after the program runs, I get an ahk message saying the program failed to run. Any ideas what's going on? I understand this is not exactly an ahk issue, but I've always gotten friendly help in this forum, and figured it's worth asking.
Here's the ahk message:

Here's the ahk script:
run "C:\ahk\HIT List\hit_list.FXP"
SetTitleMatchMode 3 ; The title must match exactly
stWindowName := "C:\ahk\HIT List\hit_list.FXP"
WinWait, %stWindowName%, , 300
IfWinExist, %stWindowName%
{
Send, {ENTER}
}
Here's the dialog that appears after the program is run without using ahk:

- Mike