How to handle the Run error window
I have to handle the Run Error window which will popup if script have any issues in terms of object not found or any. i need to handle the window without using recovery scenario. I believe it cn be done withe help of Windows API (GetWindow,GetWindowText).
I am not that much familier with API usage.
It would be much helpful some one guide me in this area.
<font class="small">Code:</font><hr /><pre>
Set oWord = CreateObject("Word.Application")
Set oTask = oWord.Tasks
Do Until oTask.Count = 0
For Each Task in oTask
If Instr(Task.Name,"Notepad") Then
This code will work as service and monitor, if any window having Notepad as part of title in the task manager.
But "Run Error" is asn part of QTP Window. so i am unable to handle this.
Re: How to handle the Run error window
You need to either use Recovery scenarios or "on error resume next"