我希望在C#中创建一个小进程,用于计数击键并将它们保存到xml文件中。每小时一次。我想用这个来创建一些关于我的输入计数的统计数据。我想象一下xml文件:
结构:
<keystrokes>
<entry time = [date and time ]>
<key id = [Key-id]>[Amount of keystrokes]</key>
<key id = [Key-id]>[Amount of keystrokes]</key>
.
.
</entry>
.
.
</keystrokes>示例:
<keystrokes>
<entry time = "25.08.2015_14:00_15:00">//counted keystrokes between 14:00 and 15:00
<key id = "A">34</key>
<key id = "B">45</key>
.
.
</entry>
.
.
</keystrokes>经常更新当前条目。例如:每10秒将计数的击键写入xml,以防止数据丢失。一个完美的解决方案将是一个完整的鼠标点击计数器。
我希望您能够解释如何访问击键,以及如何使用它们和C#。非常感谢。
发布于 2015-08-25 13:06:43
基本上是一个有分析功能的键盘记录器。
要构建密钥记录器本身,请参见this SO answer。为了收集统计数据,我建议使用SQLite数据库:它非常轻量级,易于使用,而且性能良好。
https://stackoverflow.com/questions/32204155
复制相似问题