opps, i forgot to update the thread. the person who wrote the ahk chimed in with a better way to close the window.
add this before the run line (this is what the run line looks like Run(executable ........)
myErrorWindowTitle := "padDemul ahk_class #32770"
Settimer, CloseErrorTest, 5
and add this at the bottom of the ahk
CloseErrorTest:
IfWinExist, %myErrorWindowTitle%
{
ControlSend,, {Enter}, %myErrorWindowTitle%
SetTimer, CloseErrorTest, Off
}
Return
this one is not timed based, it specifically looks for the popup window and close it