how to determine the location of the window of other application (not Matlab) and its size?

Asked by quickener on 22 Jul 2012
Latest activity Commented on by quickener on 29 Jul 2012

I do recognition system and I need to decide the location of objects read. So for me the important question of determining the location of the window of a third-party applications, and its size. Thanks!

6 Comments

quickener on 29 Jul 2012

windows - my OS. I have one monitor setup. I know name of the wanted application.

Walter Roberson on 29 Jul 2012

Is that Windows 98SE, or Windows Vista Pro Edition ?

quickener on 29 Jul 2012

Windows 7

quickener

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 29 Jul 2012
Accepted answer

Looks to me as if you may need to drop into a mex function. Use the MS Windows function EnumWindows with a callback; the callback will be called once for each top level MS Windows window. The callback would (somehow) figure out whether it was dealing with the desired window or not. Then you can call the MS Windows function GetWindowPlacement to determine the window screen position.

There is no MATLAB routine for this purpose.

There is a possibility that you might be able to find an existing ActiveX control that was able to return the information.

0 Comments

Walter Roberson

Contact us