📄 frmmain.frm
字号:
Height = 315
Left = 4440
TabIndex = 48
Top = 5010
Width = 1155
End
Begin VB.ListBox lstProcessSystem
Appearance = 0 'Flat
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 4755
IntegralHeight = 0 'False
Left = 30
TabIndex = 47
Top = 240
Width = 5625
End
Begin VB.Label Label7
BackColor = &H00E0E0E0&
Caption = "Running System Process:"
Height = 255
Left = 30
TabIndex = 50
Top = 0
Width = 2145
End
End
Begin VB.Label Label10
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
BorderStyle = 1 'Fixed Single
Caption = "Running Non System Process:"
ForeColor = &H80000008&
Height = 255
Left = 5550
MouseIcon = "frmMain.frx":0D0C
MousePointer = 99 'Custom
TabIndex = 52
Top = 60
WhatsThisHelpID = 14
Width = 2925
End
Begin VB.Label Label9
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Running System Process:"
ForeColor = &H80000008&
Height = 255
Left = 8490
MouseIcon = "frmMain.frx":0E5E
MousePointer = 99 'Custom
TabIndex = 51
Top = 60
WhatsThisHelpID = 4
Width = 2865
End
Begin VB.Line Line10
X1 = 3480
X2 = 3660
Y1 = 1530
Y2 = 1530
End
Begin VB.Line Line9
X1 = 3360
X2 = 3480
Y1 = 270
Y2 = 270
End
Begin VB.Line Line8
X1 = 3360
X2 = 3480
Y1 = 630
Y2 = 630
End
Begin VB.Line Line7
X1 = 3360
X2 = 3480
Y1 = 990
Y2 = 990
End
Begin VB.Line Line6
X1 = 3360
X2 = 3480
Y1 = 1350
Y2 = 1350
End
Begin VB.Line Line5
X1 = 3360
X2 = 3480
Y1 = 1710
Y2 = 1710
End
Begin VB.Line Line4
X1 = 3360
X2 = 3480
Y1 = 2070
Y2 = 2070
End
Begin VB.Line Line3
X1 = 3360
X2 = 3480
Y1 = 2430
Y2 = 2430
End
Begin VB.Line Line2
X1 = 3360
X2 = 3480
Y1 = 2790
Y2 = 2790
End
Begin VB.Line Line1
X1 = 3480
X2 = 3480
Y1 = 2790
Y2 = 270
End
Begin VB.Label Label6
Caption = "Rectangle:"
Height = 195
Left = 120
TabIndex = 38
Top = 1620
Width = 915
End
Begin VB.Label Label5
Caption = "Parent Class:"
Height = 195
Left = 120
TabIndex = 36
Top = 2700
Width = 1095
End
Begin VB.Label lblParentText
Caption = "Parent Text:"
Height = 195
Left = 120
TabIndex = 32
Top = 2340
Width = 1095
End
Begin VB.Label lblCordi
Caption = "X: 1043 Y: 0032"
Height = 255
Left = 60
TabIndex = 29
Top = 5520
Width = 1515
End
Begin VB.Image Image1
Height = 480
Left = 3660
Picture = "frmMain.frx":0FB0
Top = 60
Width = 480
End
Begin VB.Label Label2
Caption = "Style:"
Height = 195
Left = 120
TabIndex = 10
Top = 1260
Width = 675
End
Begin VB.Label lblParent
Caption = "Parent:"
Height = 195
Left = 120
TabIndex = 8
Top = 1980
Width = 675
End
Begin VB.Label lblClass
Caption = "Class:"
Height = 195
Left = 120
TabIndex = 6
Top = 900
Width = 555
End
Begin VB.Label Label1
Caption = "Drag this icon over the window you want to spy"
Height = 435
Left = 3660
TabIndex = 5
Top = 600
Width = 1755
End
Begin VB.Label lblTitle
Caption = "Title:"
Height = 195
Left = 120
TabIndex = 3
Top = 540
Width = 555
End
Begin VB.Label lblHwnd
Caption = "hWnd:"
Height = 195
Left = 120
TabIndex = 1
Top = 180
Width = 675
End
Begin VB.Image imgCursor
Height = 315
Left = 4740
MouseIcon = "frmMain.frx":13F2
Top = 60
Width = 375
End
Begin VB.Shape Shape6
BackColor = &H00E0E0E0&
BackStyle = 1 'Opaque
Height = 5745
Index = 12
Left = 5520
Top = 30
Width = 5865
End
Begin VB.Menu Mnufile
Caption = "FileMenu"
Visible = 0 'False
Begin VB.Menu MnuStopProgram
Caption = "Terminate This Program"
End
Begin VB.Menu MnuFileProps
Caption = "Show File Properties"
End
End
Begin VB.Menu Mnufile2
Caption = "FileMenu2"
Visible = 0 'False
Begin VB.Menu Mnu2StopProgram
Caption = "Terminate This Program"
End
Begin VB.Menu Mnu2FileProps
Caption = "Show File Properties"
End
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'--------------------------------------------------------------------------------
' Component : frmMain
' Project : EliteSpy
'
' Description: Main form
'
' Author : Andrea Batina
' Modified : 31/10/2001
'--------------------------------------------------------------------------------
Option Explicit
' Dragging window?
Private m_bDragging As Boolean
Private Sub chkOnTop_Click()
If chkOnTop.Value = 1 Then
' Put window on top of all others
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
SaveSetting "EliteSpy+", "Settings", "AlwaysOnTop", "1"
Else
' Remove window from top
SetWindowPos Me.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
SaveSetting "EliteSpy+", "Settings", "AlwaysOnTop", "0"
End If
End Sub
'////////////////////////////////////////////////////////////////////
'//// BUTTON EVENTS
'////////////////////////////////////////////////////////////////////
Private Sub cmdMaximize_Click()
' Maximize window
ShowWindow txtMhWnd.Text, SW_MAXIMIZE
End Sub
Private Sub cmdMinimize_Click()
' Minimize window
ShowWindow txtMhWnd.Text, SW_MINIMIZE
End Sub
Private Sub cmdNormal_Click()
' Show window
ShowWindow txtMhWnd.Text, SW_NORMAL
End Sub
Private Sub cmdFlash_Click()
' Flash window
FlashWindow txtMhWnd.Text, 3
End Sub
Private Sub cmdEnable_Click()
' Enable window
EnableWindow txtMhWnd.Text, 1
End Sub
Private Sub cmdDisable_Click()
' Disable window
EnableWindow txtMhWnd.Text, 0
End Sub
Private Sub cmdSetTitle_Click()
Dim sTitle As String
' Ask user for new window title
sTitle = InputBox("Enter new window title:", "EliteSpy +")
' Set new window title
SetWindowText txtMhWnd.Text, sTitle
End Sub
Private Sub cmdOnTop_Click()
' Put window on top of all others
SetWindowPos txtMhWnd.Text, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
Private Sub cmdNotOnTop_Click()
' Remove window from top
SetWindowPos txtMhWnd.Text, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End Sub
Private Sub cmdHide_Click()
' Hide window
ShowWindow txtMhWnd.Text, SW_HIDE
End Sub
Private Sub cmdShow_Click()
' Show window
ShowWindow txtMhWnd.Text, SW_SHOW
End Sub
Private Sub cmdTerminate_Click()
' Close window
SendMessage txtMhWnd.Text, WM_CLOSE, 0, 0
End Sub
Private Sub cmdTerminateProcess_Click()
' Terminate process
EnumProcess lstProcess.List(lstProcess.ListIndex)
End Sub
Private Sub cmdRefresh_Click()
' Enumerate open processes
EnumProcess
End Sub
Private Sub cmdProcess_Click()
' If we are not showing the process bar then
If cmdProcess.Caption = "Process ->" Then
' Show it
Me.Width = 11520
' And set button caption
cmdProcess.Caption = "Process <-"
Else
' Hide process bar
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -