Quote:
Originally Posted by link
"address 90720324 (&H56BE7C) *tried both but both didnt succeed..*"
90720324 is not 56BE7C in hexa.
Explanation of your mistake.
Solution.
Try to read 4 Bytes (I don't know if the money requires 4, 2 or 8 Bytes, try it yourself [288901 are 3 Bytes]) and parse Memory to 32bit (4 Bytes) Value.
|
I think this is too deep for me, because i have absolutely no clue what you just said lol, so if i get this straight depending on the amount of money u have the amounts of bytes change, that i didnt know!
so if i have 1 mill money with me thats still 3? or 4?
See now im even more confused lol.
All i want is to retrieve a value from a specific address and well it will always change i mean you get more money and less, you get the point its not really something i can "set" so no matter how many.
And parsing memory to 4 bytes I have no clue how to do that, i got experience with VB.Net just not with this whole memory thing.
I just cant believe reading a value is this difficult to understand for me, it sounds so easy.
I dont want to give up on this and i really need some code example, I googled for forever and all i find is for VB6 and C# just not a complete sample for vb.net
About the 2 values, must have copied wrong 1 from ini file

All values stored in a ini file so when i can read a value i can experiment with more just need the base of this to work
I changed my code to this:
Code:
Dim iMoneyAddress As Integer
iMoneyAddress = 90720324
Dim Reader As New ProcessMemoryReader()
Dim MyProcs As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("Conquer")
If MyProcs.Length = 0 Then
MessageBox.Show("No Conquer Client found!")
Return
End If
Reader.ReadProcess = MyProcs(0)
Reader.OpenProcess()
Dim bytesRead As Integer
Dim Memory As Byte()
Dim iMoney As Integer
Memory = Reader.ReadProcessMemory(iMoneyAddress, 4, 4, bytesRead)
iMoney = Memory(0)
For i = 0 To Memory.Length - 1
txtMoney.Text += Memory(i).ToString
Next
But still not receiving the value i should get

I also changed my function for ReadProcessMemory for the size of the bytes
wich i have set to 4 :
Memory = Reader.ReadProcessMemory(iMoneyAddress, 4, 4, bytesRead)
Anyway thanks again for your help sorry im a pain in the ass, but i just dont get it lol