Jump to content
Sign in to follow this  
Delta01

Memory read errors

Recommended Posts

Hi,

I'm using the memory functions that I found on this forum to create a little script to get some X/Y coordinates in Silkroad Online. My problem is that when I use the program "Memory Hacking Software" (Homepage: http://www.memoryhacking.com/) I don't get a Hex code, I get something like 00ECC538.

I need to convert this into hex for it to work with the memory functions found on the forum. (http://www.autoitscript.com/forum/index.php?showtopic=28351&hl=_MemRead)

When I try to convert it I get a value like 3030454343353338 when I need an 0x... value.

How can I convert a value like 00ECC538 into a hex value like 0x..?

Thnx

Edited by Delta01

Share this post


Link to post
Share on other sites

Hi,

I'm using the memory functions that I found on this forum to create a little script to get some X/Y coordinates in Silkroad Online. My problem is that when I use the program "Memory Hacking Software" (Homepage: http://www.memoryhacking.com/) I don't get a Hex code, I get something like 00ECC538.

I need to convert this into hex for it to work with the memory functions found on the forum. (http://www.autoitscript.com/forum/index.php?showtopic=28351&hl=_MemRead)

When I try to convert it I get a value like 3030454343353338 when I need an 0x... value.

How can I convert a value like 00ECC538 into a hex value like 0x..?

Thnx

00ECC538 is a hex code, but to indicate to AutoIt that it is hex rather than a string you simply have to prefix it with "0x".

$HexCode = "0x" & $yourCodeFromMemoryHacking

eg

$HexCode = "0x00ECC538"

This might be useful

;Calculate address at offset from an address
;$address and offsetcan be in hex or dec
Func AddrCalc($StartAddr, $Offset)
    Return '0x' & Hex($StartAddr + $Offset, 8)
EndFunc

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Ok. Thanks. I've done that but now I just get the same value again, after I change the memory addresses. I now get 1769172848.

My code is...

#Include <mem.au3>
Opt("WinTitleMatchMode", 4)

Global $MemAdd = 0x00BE30F8, $Process = WinGetProcess("SRO_Client")
If $Process = -1 Then
    MsgBox(4096, "ERROR", "Failed to detect process.")
    Exit
EndIf
Func SroMem()
Local $DllInfo = _MemoryOpen($Process)
    If @Error Then
        MsgBox(4096, "ERROR", "Failed to open memory.")
        Exit
    EndIf
Local $Pos = _MemoryRead($MemAdd, $DllInfo)
_MemoryClose($Process)
Return $Pos
EndFunc

$Msg = SroMem()

MsgBox(0, "X/Y", $Msg)

Maybe you know what's wrong?

Share this post


Link to post
Share on other sites

Ok. Thanks. I've done that but now I just get the same value again, after I change the memory addresses. I now get 1769172848.

My code is...

#Include <mem.au3>
Opt("WinTitleMatchMode", 4)

Global $MemAdd = 0x00BE30F8, $Process = WinGetProcess("SRO_Client")
If $Process = -1 Then
    MsgBox(4096, "ERROR", "Failed to detect process.")
    Exit
EndIf
Func SroMem()
Local $DllInfo = _MemoryOpen($Process)
    If @Error Then
        MsgBox(4096, "ERROR", "Failed to open memory.")
        Exit
    EndIf
Local $Pos = _MemoryRead($MemAdd, $DllInfo)
_MemoryClose($Process)
Return $Pos
EndFunc

$Msg = SroMem()

MsgBox(0, "X/Y", $Msg)

Maybe you know what's wrong?

Silkroad dosn't (at least not at me tried it aswel) store static information in their exe mem. Check 0x33 for more information :)

Share this post


Link to post
Share on other sites

Ok. Thanks. I've done that but now I just get the same value again, after I change the memory addresses. I now get 1769172848.

I assume you mean the function returns 1769172848 (which is 0x69736F70)

but what were you expecting?

You haven't specified in _MemoryRead what type of variable you are trying to read so you are getting the default dword (unsigned 32 bit integer). Is that what you want?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Sorry I didn't reply, I went away.

Here is the code

#Include <Mem.au3>

Global $MemAdd = 0x01801534, $Process = WinGetProcess("SRO_Client")
If $Process = -1 Then
    MsgBox(4096, "ERROR", "Failed to detect process.")
    Exit
EndIf
Func SroMem()
Local $DllInfo = _MemoryOpen($Process)
    If @Error Then
        MsgBox(4096, "ERROR", "Failed to open memory.")
        Exit
    EndIf
Local $Pos = _MemoryRead($MemAdd, $DllInfo, "char[6]")
_MemoryClose($Process)
Return $Pos
EndFunc

$Msg = SroMem()

MsgBox(0, "X/Y", $Msg)

I should be getting the word "Venus" instead I just get the letter V

Is there something wrong with what I'm doing?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...