⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 很不错的VB外挂代码上来和大家分想一下谢谢大家支持
💻 FRM
字号:
VERSION 5.00
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   BorderStyle     =   1  'Fixed Single
   Caption         =   "ssfgfsdfdfadfsdfsf"
   ClientHeight    =   6255
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3900
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   6255
   ScaleWidth      =   3900
   StartUpPosition =   3  '窗口缺省
   Begin TabDlg.SSTab SSTab1 
      Height          =   5415
      Left            =   120
      TabIndex        =   3
      Top             =   720
      Width           =   3690
      _ExtentX        =   6509
      _ExtentY        =   9551
      _Version        =   393216
      Tabs            =   5
      TabsPerRow      =   5
      TabHeight       =   617
      TabMaxWidth     =   1288
      BackColor       =   65535
      ForeColor       =   255
      TabCaption(0)   =   "人物"
      Tab(0).ControlEnabled=   -1  'True
      Tab(0).Control(0)=   "Label11"
      Tab(0).Control(0).Enabled=   0   'False
      Tab(0).Control(1)=   "Label12"
      Tab(0).Control(1).Enabled=   0   'False
      Tab(0).Control(2)=   "Frame2"
      Tab(0).Control(2).Enabled=   0   'False
      Tab(0).Control(3)=   "Frame3"
      Tab(0).Control(3).Enabled=   0   'False
      Tab(0).Control(4)=   "Timer2"
      Tab(0).Control(4).Enabled=   0   'False
      Tab(0).ControlCount=   5
      TabCaption(1)   =   "保护"
      Tab(1).ControlEnabled=   0   'False
      Tab(1).ControlCount=   0
      TabCaption(2)   =   "怪物"
      Tab(2).ControlEnabled=   0   'False
      Tab(2).ControlCount=   0
      TabCaption(3)   =   "技能"
      Tab(3).ControlEnabled=   0   'False
      Tab(3).ControlCount=   0
      TabCaption(4)   =   "妖精"
      Tab(4).ControlEnabled=   0   'False
      Tab(4).ControlCount=   0
      Begin VB.Timer Timer2 
         Interval        =   1000
         Left            =   120
         Top             =   2040
      End
      Begin VB.Frame Frame3 
         Height          =   2895
         Left            =   120
         TabIndex        =   16
         Top             =   2400
         Width           =   3495
         Begin VB.CommandButton Command4 
            Caption         =   "停止挂机"
            Height          =   375
            Left            =   1560
            TabIndex        =   25
            Top             =   1680
            Width           =   1095
         End
         Begin VB.CommandButton Command3 
            Caption         =   "开始挂机"
            Height          =   375
            Left            =   120
            TabIndex        =   24
            Top             =   1680
            Width           =   1095
         End
         Begin VB.CheckBox Check6 
            Caption         =   "隐藏建筑"
            Height          =   375
            Left            =   1560
            TabIndex        =   23
            Top             =   1200
            Width           =   1455
         End
         Begin VB.CheckBox Check5 
            Caption         =   "水行无阻"
            Height          =   375
            Left            =   120
            TabIndex        =   22
            Top             =   1200
            Width           =   1095
         End
         Begin VB.CheckBox Check4 
            Caption         =   "穿墙"
            Height          =   375
            Left            =   1560
            TabIndex        =   20
            Top             =   720
            Width           =   1095
         End
         Begin VB.CheckBox Check3 
            Caption         =   "飞行"
            Height          =   375
            Left            =   120
            TabIndex        =   19
            Top             =   720
            Width           =   975
         End
         Begin VB.CheckBox Check2 
            Caption         =   "隐藏外挂"
            Height          =   375
            Left            =   1560
            TabIndex        =   18
            Top             =   240
            Width           =   1095
         End
         Begin VB.CheckBox Check1 
            Caption         =   "隐藏游戏"
            Height          =   375
            Left            =   120
            TabIndex        =   17
            Top             =   240
            Width           =   1095
         End
      End
      Begin VB.Frame Frame2 
         Caption         =   "人物信息"
         ForeColor       =   &H00008000&
         Height          =   1215
         Left            =   120
         TabIndex        =   4
         Top             =   600
         Width           =   3495
         Begin VB.Timer Timer1 
            Interval        =   100
            Left            =   2880
            Top             =   120
         End
         Begin VB.Label Label10 
            Caption         =   "未知"
            Height          =   255
            Left            =   840
            TabIndex        =   14
            Top             =   840
            Width           =   1335
         End
         Begin VB.Label Label9 
            Caption         =   "所在地:"
            ForeColor       =   &H00008080&
            Height          =   255
            Left            =   120
            TabIndex        =   13
            Top             =   840
            Width           =   735
         End
         Begin VB.Label Label8 
            Caption         =   "0"
            ForeColor       =   &H00FF00FF&
            Height          =   255
            Left            =   2040
            TabIndex        =   12
            Top             =   480
            Width           =   1095
         End
         Begin VB.Label Label7 
            Caption         =   "经验:"
            ForeColor       =   &H00FF00FF&
            Height          =   255
            Left            =   1440
            TabIndex        =   11
            Top             =   480
            Width           =   615
         End
         Begin VB.Label Label6 
            Caption         =   "0"
            ForeColor       =   &H00C0C000&
            Height          =   255
            Left            =   720
            TabIndex        =   10
            Top             =   480
            Width           =   615
         End
         Begin VB.Label Label5 
            Caption         =   "等级:"
            ForeColor       =   &H00C0C000&
            Height          =   255
            Left            =   120
            TabIndex        =   9
            Top             =   480
            Width           =   975
         End
         Begin VB.Label Label4 
            Caption         =   "0"
            ForeColor       =   &H00FF0000&
            Height          =   255
            Left            =   2040
            TabIndex        =   8
            Top             =   240
            Width           =   1215
         End
         Begin VB.Label Label3 
            Caption         =   "真气:"
            ForeColor       =   &H00FF0000&
            Height          =   255
            Left            =   1440
            TabIndex        =   7
            Top             =   240
            Width           =   615
         End
         Begin VB.Label Label2 
            Caption         =   "0"
            ForeColor       =   &H000000FF&
            Height          =   255
            Left            =   720
            TabIndex        =   6
            Top             =   240
            Width           =   615
         End
         Begin VB.Label Label1 
            Caption         =   "生命:"
            ForeColor       =   &H000000FF&
            Height          =   255
            Left            =   120
            TabIndex        =   5
            Top             =   240
            Width           =   615
         End
      End
      Begin VB.Label Label12 
         Height          =   375
         Left            =   2040
         TabIndex        =   26
         Top             =   2160
         Width           =   1455
      End
      Begin VB.Label Label11 
         Height          =   375
         Left            =   120
         TabIndex        =   21
         Top             =   2160
         Width           =   1695
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "当前人物"
      Height          =   675
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   3735
      Begin VB.CommandButton Command2 
         Caption         =   "保存"
         Height          =   375
         Left            =   3000
         TabIndex        =   15
         Top             =   240
         Width           =   615
      End
      Begin VB.CommandButton Command1 
         Caption         =   "刷新"
         Height          =   375
         Left            =   2280
         TabIndex        =   2
         ToolTipText     =   "保存当前人物的设置"
         Top             =   240
         Width           =   615
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   2055
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim hwd As Long
Dim pid As Long
Dim hprocess As Long


Private Sub Form_Load()
 hwd = FindWindow("elementclient window", "element client")
  If hwd <> 0 Then
   Label12.ForeColor = vbBlue
   Label12.Caption = "游戏已运行"
   Else
   Label12.ForeColor = vbRed
   Label12.Caption = "游戏未运行"
   End If
 GetWindowThreadProcessId hwd, pid
 hprocess = OpenProcess(PROCESS_ALL_ACCESS, 0, pid)
 
  CloseHandle hprocess
  
End Sub



Private Sub Timer1_Timer()
Dim rw As Long
Dim hp As Long
Dim whp As Long
Dim mp As Long
Dim wmp As Long
Dim jy As Long
Dim dj As Long
 hprocess = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
 If hprocess Then
  ReadProcessMemory hprocess, ByVal &H92764C, rw, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H20, rw, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H450, hp, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H464, whp, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H454, mp, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H498, wmp, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H448, dj, 4, 0&
  ReadProcessMemory hprocess, ByVal rw + &H9C, jy, 4, 0&
  
 CloseHandle hprocess
End If
   Label2.Caption = hp & "/" & whp
   Label4.Caption = mp & "/" & wmp
   Label6.Caption = dj
   Label8.Caption = jy
 
 
End Sub

Private Sub Timer2_Timer()
Label11.Caption = Hour(Now) & "时" & Minute(Now) & "分" & Second(Now) & "秒"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -