admin管理员组

文章数量:1625852

大家好,我是大飞,今天给大家带来一个有趣的脚本,感兴趣的可以收藏下来慢慢看。

这篇文章主要介绍了如何使用vb 监控电脑活动记录,帮助大家更好的理解和学习使用vb。

最近看到了一个日文版的监控电脑活动记录的软件,又在win 32 APi中看到了GetForegroundWindow函数,于是决定动动小手用vb写个监控电脑活动记录的小程序。

主要函数

实现

循环获取当前焦点所在窗口的标题,然后写入到日志文件中。最后设置开启自启动,隐藏命令行窗口。


```python

```vbnet
```python
Imports System
Imports System.io
 
Module Module1
 private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
 'Win32 Api
 Private Declare Function GetForegroundWindow Lib "user32" () As Long
 Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (

本文标签: 如何使用电脑VB