>>>I have a Visual FoxPro robot program which is affecting by something. In some situation, I have a temporary file which become corrupted. When that happen, a dialog message appears on the desktop about the file being corrupted. However, my Visual FoxPro robot program continues to run and this is where the problem begins. While having this message on the desktop, the program can't execute certain things like being able to establish a SMTP connection. When I have this message, I really want my program to stop working.
>>>
>>>This is running on a Windows NT 3.51 server with Service Pack 5.
>>>
>>>How can I manage that?
>>
>>Is the temp file your file? What is it?
>
>It is an email that the mail server is using. I send about 50000 emails per day so there is a lot of files being created and deleted.
If that dialog window has a fixed title different from any of the other windows on the desktop, use a timer in your robot program to monitor (with FindWindow API) that dialog window. Do whatever you want when you find the dialog window.
-Fei
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement