04-19-2007, 02:05 PM
It's actually happening again to the new macro.
I thought the macro wouldn't run but now I'm noticing the error log:
run "C:\Program Files\SAP\SAP Business One\SAP Business One.exe" "" "" "" 0 "SAP"
wait 5
int w1=act(win("SAP Business One" "TMFrameClass"))
"Error (RT) in Start SAP: window not found"
It's as though the run statement thinks the app is open but when it goes to activate 5 sec later, can't be found. I only put the wait in to see if it needed time. It was working fine without the wait when it did work. :?
I thought the macro wouldn't run but now I'm noticing the error log:
run "C:\Program Files\SAP\SAP Business One\SAP Business One.exe" "" "" "" 0 "SAP"
wait 5
int w1=act(win("SAP Business One" "TMFrameClass"))
"Error (RT) in Start SAP: window not found"
It's as though the run statement thinks the app is open but when it goes to activate 5 sec later, can't be found. I only put the wait in to see if it needed time. It was working fine without the wait when it did work. :?
