Track computer desktop in MATLAB

I want to see my computer desktop in MATLAB and track all windows that are open on computer desktop. Is there any possiblity to see the pc desktop in matlab?

답변 (3개)

Daniel Shub
Daniel Shub 2011년 10월 28일

0 개 추천

What do you mean by see? In Linux you can use wmctrl to get a list of all open windows. I am not sure if the Mac window manager is based on X or if it is EWMH compliant. I am guessing the Windows window manager is not.
Jan
Jan 2011년 10월 28일

0 개 추천

Do you want to capture the contents of the screen as pictures?

댓글 수: 4

nopel0n
nopel0n 2011년 10월 30일
I want to see the computer desktop like a movie for further processing. I tried to do that with a virtual webcam, but matlab couldn't recognise my virtual webcam.
Thanks
Walter Roberson
Walter Roberson 2011년 10월 30일
Ah, you want to do infinite recursion then, since the MATLAB session showing the windows would be one of the windows on the desktop...
nopel0n
nopel0n 2011년 10월 31일
Exactly. Any idea how I might be able to do that?
Jan
Jan 2011년 10월 31일
@nopel0n: What's wrong with screencapture?

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2011년 10월 31일

0 개 추천

You cannot do what you ask in any version of MS Windows that is currently supported. As best I recall, all of the versions of MS Windows that are currently supported have Microsoft's built-in DRM (Digital Rights Management) protection, that prevent you from taking screen snapshots of areas that are under DRM protection (such as DVDs)
But even beyond that, if you are working with Vista or Windows 7 or Windows 8, then getframe() can return odd contents for windows that are not under your control. Some strange interaction with themes and different DirectX versions and similar complications.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2011년 10월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by