請大大交一下 Vb6的偵測編輯!!!
偵測的每次都錯誤Private Sub Command1_Click() 這句
剛剛看了
http://www.bingfong.com/thread-16186-1-1.html
這篇
有人回答說
要兩個 If FindGame("MapleStory.exe") = True Then(第一個 IF)
If hProcess <> 0 Then (第二個IF)
所以你後面要打 END IF
END IF
(2次)
於是 我用了
Private Sub Command1_Click()
If FindGame("MapleStory.exe") = True Then End If
Call InitAutoAsm(dwProcId)
GetWindowThreadProcessId hwd, pid
hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If hProcess <> 0 Then End If
MsgBox "偵測成功", , "系統訊息"
Else
MsgBox "偵測失敗", , "系統訊息"
End If
End Sub
修改成這樣
可是還是錯誤
他說
Private Sub Form_Load()
編輯錯誤
沒有定義的Sub 或 Function
-------------------------------------------------------------
不知道該怎麼辦!! 本帖最後由 vantseng 於 2013-6-3 23:25 編輯
Private Sub Command1_Click()
If FindGame("MapleStory.exe") = True Then
Call InitAutoAsm(dwProcId)
GetWindowThreadProcessId hwd, pid
hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If hProcess <> 0 Then
MsgBox "偵測成功", , "系統訊息"
Else
MsgBox "偵測失敗", , "系統訊息"
End If
End If
End Sub
根據你的內容稍做修改
你的最大問題是連VB的語法都不會用吧 回覆 2# vantseng
已經弄好囉 謝謝 我是請問別人是用其他方法! 回覆 2# vantseng
也謝謝你的解答! ㄜ .. 不只這樣 / 還要模組噢!
頁:
[1]