search 登录 注册
arrow_back返回列表
ID:124537
light_modestar
Lv.1 韶华一笑间
edit_note帖子 58
stars积分 428
event加入 2012-10-08
怀旧国机

【VB编程】制作外挂第一课

schedule发表于 2012-10-16 10:37:00 visibility查看 161 chat_bubble回复 6
#1 楼主
需要工具:
API函数:工具下载地址
FindWindow ←寻找窗口列表中第一个符合指定条件的顶级窗口
GetWindowThreadProcessId ←获取与指定窗口关联在一起的一个进程和线程标识符
相关API声明:FindWindow

Private * Function FindWindow Lib “user32“ Alias “FindWindowA“ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
GetWindowThreadProcessId

Private * Function GetWindowThreadProcessId Lib “user32“ (ByVal hwnd As Long, lpdwProcessId As Long)
As Long
需要的控件:Label、Timer
自定义函数:Dim hwnd As Long
源代码:
Private * Function FindWindow Lib “user32“ Alias “FindWindowA“ (ByVal lpClassName As String, ByVal lpWindowName As String)
As Long
Private * Function GetWindowThreadProcessId Lib “user32“ (ByVal hwnd As Long, lpdwProcessId As Long)As LongPrivate Sub Timer1_Timer()
Dim hwnd As Long‘ 储存 FindWindow 函数返回的句柄
hwnd = FindWindow(vbNullString, “Windows Media Player“)‘ 取得进程标识符
‘只要把Windows Media Player换成游戏的名称就可了!
If hwnd = 0
ThenLabel1.Caption = “游戏未运行“.
Else
Label1.Caption = “游戏已运行“
End If
End Sub
第一课授课完毕,敬请关注下一节课

全部回复 (6)

ID:5566
light_modedark_modestarstarstar
Lv.1 韶华一笑间
2012-10-16 10:38:00 沙发

落叶゛ 暖 暖じ为你顶贴!!
朋友加入 空白府吧!
ID:5566
light_modedark_modestarstarstar
Lv.1 韶华一笑间
2012-10-16 10:42:00 板凳

落叶゛ 暖 暖じ为你顶贴!!
朋友 加入空白府吧!
ID:5168
light_modedark_modedark_modedark_modestar
Lv.1 韶华一笑间
2012-10-16 10:44:00 地板
繁花家族欢迎你~
ID:59593
light_modedark_modestarstarstar
Lv.1 韶华一笑间
2012-10-16 10:50:00 #5
元芳,
此事你怎么看??
ID:124537
light_modestar
Lv.1 韶华一笑间
2012-10-16 10:52:00 #6
搅尽脑汁看
ID:87830
light_modedark_mode
Lv.3 畅意三江水
2012-10-16 10:55:00 #7
C.Y家族欢迎你~[url]手打教程:
条件一:必须学会易语言
条件二:准备超级模块不追封其实就是换种写挂的方法,DLL换成驱动写法!这种写法不会追封!
下面举个例子:写个简单倍攻的:写个个加密解密程序集比如我们用F1开启倍功:
新建个全局变量:进程ID然后回到启动窗口创建完毕那里写代码:
进程ID=取进程ID(“DNF.exe“)监视热键(&倍功,#F1键)新建个子程序:倍功加密(内存
登录 后才能回复