I have tried 5 different modules to write memory and none of them work? I have tried the reading memory and that works. but it will not let me write it doesnt say denied just doesnt write to it? If there is a different language that would be easier to write and stuff like C#, C++, Autoit tell me thanks!
If someone could help me that would be great! Message me please! Thank You
um..WriteProcessMemory() works just as well as ReadProcessMemory() in vb.net ...no need to switch languages.
(C++ might be shorter/prettier syntax for some things, compared to code in .net, but you could argue syntax vs. readability. Since you seem new to programming, you probably don't care "how the code looks". As far as "it just works" ..no idea, try more until you find something that works? Or learn what you're trying to do..)
Post code, I guess. Have you programmed in vb before?
edit:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WritePointerByte("main", &H7B1D27C, 150, &HBC)
...
Public Sub WritePointerByte(ByVal EXENAME As String, ByVal Pointer As Integer, ByVal Value As Byte, ByVal ParamArray Offset As Integer())
If Process.GetProcessesByName(EXENAME).Length <> 0 Then
Dim Handle As Integer = Process.GetProcessesByName(EXENAME)(0).Handle
If Handle <> 0 Then
For Each I As Integer In Offset
ReadMemoryInteger(Handle, Pointer, Pointer)
Pointer += I
Next WriteMemoryByte(Handle, Pointer, Value)
End If
End If
End Sub
Set a break-point on the bold line and check the value 'Pointer' has.. is it the correct address?
If No
Your base addr / pointer-list is wrong.
If Yes
Let's see your next function..
um, I mean, overload*
Code:
Private Declare Function WriteMemoryByte Lib "kernel32" Alias "WriteProcessMemory" (ByVal Handle As Integer, ByVal Address As Integer, ByRef Value As Byte, Optional ByVal Size As Integer = 2, Optional ByRef Bytes As Integer = 0) As Byte
a) you shouldn't be overloading WriteProcessMemory like this...
b) size = 2?