I finally got the function to be able to write to the Timer offset, but there's only one problem. It's not writing the hex to the right place. In winhack, it shows the hex code I wrote in the right side pane, meaning-- the value is the hex, but the address is NOT in hex. See for yourself, I took a screen shot:
*Screenshot removed due to issue being resolved*
As you can see, it's writing to the wrong place... I want the hex code to be written to the hex address (left side pane), not as a value (right side pane)... So what am I doing wrong? This is driving me bonkers... :-\ I'm including the function so you can examine it. Like always, thanks in advance for any and all assistance!
Quote from: Kyro on June 24, 2005, 07:42 PMSo what am I doing wrong?
You're using VB. I'm pretty sure I already advised you that this was a bad idea. :)
Quote from: Kp on June 24, 2005, 08:33 PM
Quote from: Kyro on June 24, 2005, 07:42 PMSo what am I doing wrong?
You're using VB. I'm pretty sure I already advised you that this was a bad idea. :)
Yes, I took that under advisement, and chose to continue on the path. In any case...
Problem solved. What had to be done was to seperate the hex code into 2's, and write each individual byte to memory, using this code:
WriteProcessMemory pHandle, lAddress, Chr$("&H" & Left(sData, 2)), 1, &H0
Credit goes to Dyndrilliac for assisting in this problem!