[英]Can I check if a Windows process is running from a Google Chrome extension?
I'm trying to develop a server-side tracker for a video game that runs against an API to update the player's performance, but I only want to track the player's activity when he is playing the game. 我正在尝试为视频游戏开发一个服务器端跟踪器,该跟踪器可通过API运行以更新玩家的性能,但是我只想跟踪玩家在玩游戏时的活动。 Since there's no way to know that just from the API, nor any other service, I'm looking at other ways to tell the tracker to update when the user is running the game's process.
由于无法仅通过API或任何其他服务来了解这一点,因此我正在寻找其他方法来告诉跟踪器在用户运行游戏进程时进行更新。
I'm trying to rule out desktop applications and a Chrome extension seems like a good compromise. 我正在尝试排除桌面应用程序,而Chrome扩展程序似乎是一个不错的折衷方案。 However, I'm aware of the security implications that this has and I know Chrome has some concerns on browser-OS communications.
但是,我知道这会带来安全隐患,而且我知道Chrome浏览器与OS的通信存在一些问题。 Is there a way to safely achieve this in the scope of a Chrome extension?
有没有办法在Chrome扩展程序范围内安全地实现这一目标?
Thanks. 谢谢。
Chrome extensions API does not provide any methods to get the process info other than that of the browser process . 除浏览器进程外 ,Chrome扩展API不提供任何获取进程信息的方法 。 You can try using the native client as a part of the chrome extension.
您可以尝试使用本地客户端作为chrome扩展的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.