当前位置: 网学 > 编程文档 > VB > 正文

vb征途外挂源代码

来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 12/10/16
下载{$ArticleTitle}原创论文样式
keybd_event(VK_6, 0, 0, 0)
Sleep 300
Call keybd_event(VK_6, 0, KEYEVENTF_KEYUP, 0)

Case "7"
Call keybd_event(VK_7, 0, 0, 0)
Sleep 300
Call keybd_event(VK_7, 0, KEYEVENTF_KEYUP, 0)

Case "8"
Call keybd_event(VK_8, 0, 0, 0)
Sleep 300
Call keybd_event(VK_8, 0, KEYEVENTF_KEYUP, 0)

Case "9"
Call keybd_event(VK_9, 0, 0, 0)
Sleep 300
Call keybd_event(VK_9, 0, KEYEVENTF_KEYUP, 0)

Case "F1"
Call keybd_event(VK_F1, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F1, 0, KEYEVENTF_KEYUP, 0)

Case "F2"
Call keybd_event(VK_F2, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F2, 0, KEYEVENTF_KEYUP, 0)

Case "F3"
Call keybd_event(VK_F3, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F3, 0, KEYEVENTF_KEYUP, 0)

Case "F4"
Call keybd_event(VK_F4, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F4, 0, KEYEVENTF_KEYUP, 0)

Case "F5"
Call keybd_event(VK_F5, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F5, 0, KEYEVENTF_KEYUP, 0)

Case "F6"
Call keybd_event(VK_F6, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F6, 0, KEYEVENTF_KEYUP, 0)

Case "F7"
Call keybd_event(VK_F7, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F7, 0, KEYEVENTF_KEYUP, 0)

Case "F8"
Call keybd_event(VK_F8, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F8, 0, KEYEVENTF_KEYUP, 0)

Case "F9"
Call keybd_event(VK_F9, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F9, 0, KEYEVENTF_KEYUP, 0)

Case "F10"
Call keybd_event(VK_F10, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F10, 0, KEYEVENTF_KEYUP, 0)

Case "F11"
Call keybd_event(VK_F11, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F11, 0, KEYEVENTF_KEYUP, 0)

Case "F12"
Call keybd_event(VK_F12, 0, 0, 0)
Sleep 300
Call keybd_event(VK_F12, 0, KEYEVENTF_KEYUP, 0)
Case "`"
SendKeys "`"
End Select
End Sub

Private Sub Form_Load()
Dim pid As Long
Hwndfw = FindWindow("zhengtu_client", vbNullString) ''取得目标窗口的句柄
If (Hwndfw = 0) Then
MsgBox "游戏未载入"
End
End If

GetWindowText Hwndfw, Wtxt, 50 ''取得窗口标题

GetWindowThreadProcessId Hwndfw, pid ''取得进程标识符
pHandle = OpenProcess(PROCESS_VM_READ + PROCESS_QUERY_INFORMATION, False, pid) ''取得进程句柄''
Timer1.Enabled = True ''开启时钟

Mdz = Val("&H" & GetFromINI("Setup", "地图地址", App.Path + "\地址.ini"))
Rjz = Val("&H" & GetFromINI("Setup", "人物基址", App.Path + "\地址.ini"))
Rpy = Val("&H" & GetFromINI("Setup", "人物偏移", App.Path + "\地址.ini"))
Gjz = Val("&H" & GetFromINI("Setup", "目标基址", App.Path + "\地址.ini"))
If Mdz = 0 Or Rjz = 0 Or Gjz = 0 Then
MsgBox "数据未搜索到,请保证当前目录下有【征途超强搜索】生成的【地址.ini】文件。"
Unload Me
End
End If
SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE ''总在最前面

Combo1.AddItem "1"
Combo1.AddItem "2"
Combo1.AddItem "3"
Combo1.AddItem "4"
Combo1.AddItem "5"
Combo1.AddItem "6&q

  • 上一篇资讯: MSHFlexGrid用法详解
  • 网学推荐

    免费论文

    原创论文

    浏览:
    设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
    版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
    湘ICP备09003080号