[FONT="Century Gothic"]
Originally Posted by
Jorndel
@
brhvitor6 - Made this possible with his class and tutorial
It would've worked fine with your trainer base, you just gotta know what you're doing:
Code:
mw3.SetByte(<name address here>, System.Text.Encoding.ASCII.GetBytes(TextBox1.Text & ControlChars.NullChar))
To get the base address of steam_api.dll:
Code:
Process p = Process.GetProcessesByName("iw5mp")(0)
Dim moduleBase As Integer = &H0
For Each pm As ProcessModule In p.Modules
If pm.ModuleName = "steam_api.dll" Then
moduleBase = pm.BaseAddress
Exit For
End If
Next
Dim myAddress As Integer = moduleBase + <offset>
To read a pointer though, you need to add a function to read an address but that's not hard to do. Something like this:
Code:
Public Function ReadInt(ByVal address As Integer) As Integer
Dim buffer As Byte(3)
Dim bytesRead As IntPtr
ReadProcessMemory(hProcess, new IntPtr(address), buffer, 4, bytesRead)
Return BitConverter.ToInt32(buffer)
End If
Either way, nice job there.