Handle to an external window from MATLAB

8 views (last 30 days)
Hello there,
I am opening an external exe file from MATLAB using the command !program.exe &
Issue 1: Everytime I open this program (in Windows mode 1280*720 and my screen size is 1366*768), it opens at different locations of the screen which makes it difficult for me to do certain processing automatically.
Requirement: Is there a method to solve issue 1
Actually, I want to access the screen size, contents and play around with the new external window (program.exe). I believe getting a handle to this could solve my problem. Any thoughts?

Answers (1)

Walter Roberson
Walter Roberson on 5 Oct 2015
  12 Comments
Walter Roberson
Walter Roberson on 9 Oct 2015
If you save the images with the timer and then run them through the comparison one by one, then do you get a match? If Yes but not when you are running the comparison within the timer callback then that suggests that you have a problem in the callback.
Madhu Kodappully
Madhu Kodappully on 9 Oct 2015
Edited: Madhu Kodappully on 9 Oct 2015
Dear Walter,
Thanks for your reply. 1. I have my reference image already saved.
2. The new image is a crop from screencapture
3. Then I performed image comparison
4. Checked for peak signal to noise ratio
5. That is the end result
Everything works nice ....

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!