FLiNG Newbie cheater
Reputation: 0
Joined: 09 Apr 2011 Posts: 19
|
Posted: Sat Apr 09, 2011 12:26 pm Post subject: [VB] How to allocate memory in VB? |
|
|
Hi, I am new to programming, also, apologize for my bad English.
I am making a trainer using VB. The only problem I had is that I don't know how to dynamically allocate memory just like CE trainers.
Here is my code:
| Code: | Private Sub KeyLogger_Tick() Handles KeyLogger.Tick
Dim Open = Process.GetProcessesByName("Crysis2")
If Open.Length = 0 Then
Exit Sub
End If
AxWindowsMediaPlayer1.close()
If GetAsyncKeyState(Keys.NumPad1) = &HFFFF8001 Then
If Timer1.Enabled = False Then
My. Computer. Audio. PlaySystemSound (Media.SystemSounds.Asterisk)
WriteMemoryASM("Crysis2", &H115CB20, New Byte() {&HE9, &HDB, &H34, &HD7, &H5, &H90, &H90})
WriteMemoryASM("Crysis2", &H6ED0000, New Byte() {&HD9, &H1E, &HC7, &H6, &H0, &H0, &HC8, &H42, &H5E, &HC9, &HC2, &H4, &H0, &HE9, &H15, &HCB, &H28, &HFA})
Timer1.Enabled = True
ElseIf Timer1.Enabled = True Then
My. Computer. Audio. PlaySystemSound (Media.SystemSounds.Beep)
WriteMemoryASM("Crysis2", &H115CB20, New Byte() {&HD9, &H1E, &H5E, &HC9, &HC2, &H4, &H0})
Timer1.Enabled = False
End If
End If
End Sub |
I only know how to jump to a specific address and jump back, but I can't find a stable codecave, so sometime it causes game crash.
|
|