06-18-2009 01:03 AM
A 3rd party software is running in my PC. The display shows reports of components passed or failed and the condition of failure etc. But this report cannot be retrieved as no local copies are stored. For my reference I would like to
1. capture the screen after every update.
2. Retrive the data and write it to a excel. (Is OCR an option?)
Any light on this will be very helpful.
Solved! Go to Solution.
06-18-2009 01:38 AM
Hi muks,
it should also be possible with windows API. You can get the handle of the control which stores the pass/fail information and read it from there. If this is not possibe, you can use this code to get the image you need:
http://forums.ni.com/ni/board/message?board.id=170&message.id=311290&query.id=1125687#M311290
Mike
06-18-2009 03:22 AM
Hi mike,
Thanks for the reply. But the program crashes labview. "Labview encountered a problem and needs to close". I tried it with the lv 8.0 version in the thread. Do you think my lv is corrupted?
06-18-2009 04:05 AM - edited 06-18-2009 04:05 AM
Hi muks,
it works for me, but here is an alternative. It only reads the image from the clipboard.
Mike
06-18-2009 04:13 AM
take a look at a program called macro express for automating something like this.
06-18-2009 05:44 AM
muks wrote:Hi mike,
But the program crashes labview. "Labview encountered a problem and needs to close". I tried it with the lv 8.0 version in the thread. Do you think my lv is corrupted?
What is your LV version? Can you post here a screenshot of you LV crash?
06-18-2009 07:06 AM
06-18-2009 10:35 AM
Hi muks,
can you work with the vi from my second post?
Mike
06-18-2009 09:36 PM
muks wrote:
AS I mentioned I am using lv 8.0 .
I think you did not...
muks wrote:Hi mike,
I tried it with the lv 8.0 version in the thread. Do you think my lv is corrupted?
This is why I asked what your LV version is...
06-24-2009 03:04 AM
In all the subvis I get this error and when i try bypassing the error connection labVIEW crashes.