Windows使用情况报告 [英] Windows Usage Report

查看:163
本文介绍了Windows使用情况报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我需要获得有关电脑使用的详细信息,如



1)如何长期使用了吗?



2)空闲时间



3)使用的应用程序和使用时间



4)互联网使用情况和访问的网站



没有关于从哪里开始的线索..有人请帮助

hello,

I need to get detailed information about pc usage like

1) How long its used?

2) idle time

3) used apps and Usage duration

4)Internet usage and websites visited

No clue about where to start.. Somebody please help

推荐答案

根据这些信息,很难提供帮助。

如何定义已使用的应用和使用时间?

- 这个过程有多长时间了?

- 它在前台有多长时间?

- 仅限GUI流程?



定义使用多长时间?

- 用户登录多长时间?

- 每x秒至少移动一次鼠标计为已使用?

- 空闲时间何时开始?



开始:

- 写一个窗口检查后台线程的服务。

- 捕获鼠标位置n和键盘状态 - >如果它改变了,电脑正在使用......如果它没有改变x秒/分钟,开始空闲计数

- 捕获正在运行的进程列表并使用winAPI获取前景窗口(这是你可以称之为app usage)并测量每个窗口的时间。

- 找到一个名为edge,chrome,firefox,internet explorer的窗口,然后抓住标题栏,所以你至少得到网站的名称(而不是真正的网址) - 名称应该没问题。



只需启动一些后台工作线程服务,检查以上所有内容并运行一些内部词典/项目列表,计算和测量时间。



我希望这可以帮助你开始。



问候,

Mike
Based on this information it's hard to help.
How is "used apps and usage duration" defined?
- How long does the process exist?
- How long is it in foreground?
- GUI processes only?

define "how long is a pc used"?
- how long is the user logged in?
- at least a mousemove every x seconds counts as "used"?
- when does "idle time" start?

To start:
- Write a windows service that does checks in background threads.
- capture mouse position and keyboard state -> if it changed, the pc is in use... if it didnt change for x seconds/minutes, start idle counting
- capture a list of running processes and use winAPI to get the foreground window (this is what you could call "app usage") and measure the time per window.
- find a window named "edge","chrome","firefox","internet explorer" and just capture the title bar, so you get at least the name of the website (and not the real url) - name should be fine.

Just launch some background worker threads in your service, checking all of the above and run some internal dictionaries/lists of the items counting and measuring the time.

I hope this helps you to get started.

regards,
Mike


这篇关于Windows使用情况报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆