Hi,
My Application is doing the following:
a) Launch the Notepad.exe application.
b) Open the 'c:\abc.txt' text file.
- Focus the Notepad application{ used SetForegroundWindow() api function }.
- Used the sendkeys to open the 'c:\abc.txt' file{ used sendkeys() function }.
The Problem what i am facing is :
My application is working very well but it fails one time out of 10 times of execution,
the one time is failed because of Notepad application is not got focussed before sending
the sendkeys to open the text file.
You are appreciated if u can figure out this problem.
I am eagerly waiting for ur valuable solution.
Rgds
Adesh.
adesh@kmap.biz,adesh_y@yahoo.com