跟踪应用程序,从哪里开始 [英] A tracking application , where to start

查看:84
本文介绍了跟踪应用程序,从哪里开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个想法,我想制作一个程序,显示在PC上运行的程序的统计数据和程序的运行时间,例如你在启动时运行它,到一天结束时你可以看到什么程序你在白天使用了更多,你花了多少时间,我还没有开始编码,但是我有点困惑,从哪里开始,任何提示?或者我可以使用的方向以及我将使用哪些方法来捕获数据?它将成为一个计时器和getTime();对于经过的时间等,但是用于跟踪exes的是什么?



我尝试了什么:



google解决方案以及一些关于使用什么的调用方法

i have this idea , i want to make a program that shows statistics of programs running on the pc and the up time of the programs , for instance u run it on startup and by the end of the day you can see what program you used more during the day and how much time u spent on it, i havent started on the coding yet as im a bit confused on where to start , any tips? or direction i can use and what methods would i use to capture the data? its going to be a timer and the getTime(); for the elapsed times ect ect but what will be used for tracking exes?

What I have tried:

google on solutions and some call methods on what to use

推荐答案

您在对Originalgriff的回复中实际回答了自己的问题。



创建一个简单运行解析Windows中正在运行的应用程序的应用程序,技术上称为枚举所有进程。

该信息已放弃通过Windows通过进程状态应用程序编程接口(PSAPI)。



枚举所有进程(Windows) [ ^ ]



所以那里有你的起点,开始的编码是相当微不足道的你甚至可以找出应用程序的前景和应用程序的背景。
You actually answered your own question in your response to Originalgriff.

Make an application that simply runs parsing the running applications in windows which is technically called "Enumerating All Processes".
That information is given up by Windows via the Process Status Application Programming Interface (PSAPI).

Enumerating All Processes (Windows)[^]

So there you have your start point and the coding to start is rather trivial and you can even work out what app is foreground and what apps are background.


这篇关于跟踪应用程序,从哪里开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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