简体   繁体   English

我可以检查Google Chrome扩展程序是否正在运行Windows进程吗?

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

相关问题 我可以判断我的Chrome扩展程序是否在Windows上运行吗? - Can I tell if my Chrome Extension is running on Windows? Windows - 如何在 Windows 服务中创建可以检查谷歌浏览器是否正在运行,如果没有然后执行它 - Windows - how to make in windows service which can check google chrome is running or not if not then execute it 检查是否有从Windows Service运行的进程 - Check if there's a process running from Windows Service 检查进程是否在 Windows 上运行? - Check if a process is running or not on Windows? 如何检查进程是否在Windows上运行? - How to check if a process is running on Windows? 我如何等待检查以测试进程是否正在运行以完成? - How can I wait for a check to test if a process is running to finish? 如何从 windows 上的节点中的谷歌浏览器获取浏览器历史记录? - How can i get browser history from google chrome in node on windows? 如何检查Windows 0可执行文件是否正在会话0进程中运行? - How to check if a Windows executable is running in a Session 0 process? 如何以编程方式检查我是否正在运行Windows 8.1? - How can I programatically check that I am running Windows 8.1? 从Google Chrome扩展程序中读取环境变量 - Read environment variable from Google Chrome extension
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM