Look for an error Message

Started by jonathanfishbein1, February 28, 2014, 03:21:59 PM

Previous topic - Next topic

jonathanfishbein1

Hi
I have a program running an occasionally there an error message pops up that is undesirable.  I would like to write a WinBatch program that looks for that Error Message and records some key measures, maybe memory usage, a print screen, etc.  Anyone have any ideas about how to get started?  Thanks

Deana

I suppose you could write a script that waits until the window appears:WinWaitExist. You can get system data using wmi, WinSysInfo and Snapshot for a print screen.
Deana F.
Technical Support
Wilson WindowWare Inc.

George Vagenas

If the error window is not a top level window Winbatch may not be able to detect it.  You should verify that Winbatch can detect the window.
Thanks

George

Deana

Quote from: George Vagenas on February 28, 2014, 10:07:49 PM
If the error window is not a top level window Winbatch may not be able to detect it.  You should verify that Winbatch can detect the window.


See WinWaitChild.
Deana F.
Technical Support
Wilson WindowWare Inc.