简体   繁体   English

如何提取windows打开的号码?

[英]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.

相关问题 如何从字符串中提取最大的数字? - how do i extract the largest number from a string? 如何从浮点数中提取单个数字 - How do I extract an individual number from a float 如何从另一个Windows代码中将已存在的打开窗口置于其他窗口的正面? - How do I bring an already existing open window to the front on top of other windows from another windows code? 计算打开的窗户数 - Count the number of windows open 使用ejs时如何使Google Maps Pin打开和关闭信息窗口 - How do I make google maps pins open and close info windows while using ejs 如何使用 JavaScript 在 windows.open() 中设置 pdf 文件名? - How do I set pdf file name in windows.open() using JavaScript? 如何在jQuery中使用文本链接,同时保留打开新标签页/窗口的点击? - How do I use text link in jQuery while preserving clicks that open to new tabs/windows? 如何从Chrome扩展程序在Windows计算机上打开另存为对话框? - How do I open a Save As Dialog on a windows machine from a Chrome Extension? 如何使用Windows.Open在网站上方变暗的同时打开新网页 - How do I use Windows.Open to open a new web page right above my website while dulling out the background 在移动设备上输入时,如何让我的 React TextField 打开数字键盘? - How do I get my React TextField to open the number pad when inputting on a mobile device?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM