Finally I got the solution,I am writing, so someone may find it helpful. I used a software called green screen grabber and program it to take a screen shot in specific area. Then I programmed in Matlab to run the software within the program. Once that was done i applied the OCR technique to read the image and get the number and perform my rest of the operation.
Thanks and regards, J