[英]How do i extract the number of windows open?
How do I detect the number of windows open on the screen?如何检测屏幕上打开的 windows 的数量? Like for example, if I have chrome, visual studio, notepad open, I need to get the number of windows open as 3. Is there a way to detect the number of windows open, specifically from a screen share or via javascript as the application is going to be an online exam taking website?例如,如果我打开了 chrome、Visual Studio、记事本,我需要将 windows 打开的数量设为 3。有没有办法检测 windows 打开的数量,特别是从屏幕共享或通过 ZDE9B9ED78D7E2E2EZDCEEFF 应用程序将成为一个在线考试网站?
Websites are highly sandboxed programs.网站是高度沙盒化的程序。 They don't communicate with the OS directly, only through Web APIs .他们不直接与操作系统通信,只通过Web APIs 。 If the feature you want is not available in the Web APIs, you cannot use it.如果您想要的功能在 Web API 中不可用,则不能使用它。
I don't know every Web API, but i don't think there's any that gives access to the number of open windows.我不知道每个 Web API,但我不认为有任何可以访问打开的 windows 的数量。 The Screen Capture API looks promising, but I found no method that returns the number of open windows. 屏幕截图 API看起来很有希望,但我发现没有返回打开 windows 数量的方法。
Also, even if there was, you would be trusting the user that he/she didn't modify your client (your client-side code), and I believe in this case you don't want to trust the user.此外,即使有,您也会相信用户他/她没有修改您的客户端(您的客户端代码),我相信在这种情况下您不想信任用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.