open source bot huh, Ill have to take a looksee
Interesting, an overly watered-down version of my WoWMemoryReader Test App it appears.
You know, it would be easier if you did it somethin like this (how I do floats with WoW Memory Reader Test) But whatever's clever :P
Code:
Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, _
ByVal lpBaseAddress As IntPtr, _
ByRef lpBuffer As Single, _
ByVal nSize As Integer, _
ByRef lpNumberOfBytesWritten As Integer) _
As Integer
Public Function MemReadFloat(ByVal proc as Process, ByVal address As Integer, ByVal bytes As Integer) As String
Dim floatvalue As Single
ReadProcessMemory(proc.handle, address, floatvalue, bytes, 0)
Return CStr(floatvalue)
End Function
Public Sub DOSTUFF()
Log.Report(MemReadFloat(XADDRESSHERE, 8))
Log.Report(MemReadFloat(YADDRESSHERE, 8))
Log.Report(MemReadFloat(ZADDRESSHERE, 8))
End Sub
By the way, it appears if youve gotten the ReadProcessMemory to byte array method from my guild on Reading Strings with VB.NET, if such is true, Itd be nice to have come credit