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!
No products are associated with this question.
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.
6 Comments
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/44236#comment_90946
We need to know your operating system manufacturer and version.
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/44236#comment_91057
and if it is Linux which WM and DE you are using...
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/44236#comment_91063
If you have a multi-monitor setup, do you want absolute or relative positions? What about a virtual screen manager? Do you know the window handle of the wanted applications?
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/44236#comment_92094
windows - my OS. I have one monitor setup. I know name of the wanted application.
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/44236#comment_92095
Is that Windows 98SE, or Windows Vista Pro Edition ?
Direct link to this comment:
http://mathworks.com/matlabcentral/answers/44236#comment_92100
Windows 7