Jump to content

Recommended Posts

Posted

#include <NomadMemory.au3>

Dim $ah_Handle, $Hotkey, $Addy1 = 0x525FB339, $Addy2 = 0x525FB33B, $Addy3 = 0x525FB941, $Addy4 = 0x525FB943, $Addy5 = 0x525FBF39, $Addy6 = 0x4721CED5, $Value1, $Value2, $Value3, $Value4, $Value5
$ah_Handle = _MemoryOpen("MapleStory.exe")
If $ah_Handle = 0 Then MsgBox(0, "Error", "_MemoryOpen Failed" & @error)

$Hotkey = HotKeySet("{ESC}", "Quit")
If $Hotkey = 0 Then MsgBox(0, "Error", "HotKeySet Failed")

While 1
    $ah_Handle = _MemoryOpen("MapleStory.exe")
    Sleep(250)
    $Value1 = _MemoryRead($Addy1, $ah_Handle, 'dword')
    If $Value1 = 0 Then MsgBox(0, "Error", "_MemoryOpen1 Failed" & @error)
    $Value2 = _MemoryRead($Addy2, $ah_Handle, 'dword')
    If $Value2 = 0 Then MsgBox(0, "Error", "_MemoryOpen2 Failed" & @error)
    $Value3 = _MemoryRead($Addy3, $ah_Handle, 'dword')
    If $Value3 = 0 Then MsgBox(0, "Error", "_MemoryOpen3 Failed" & @error)
    $Value4 = _MemoryRead($Addy4, $ah_Handle, 'dword')
    If $Value4 = 0 Then MsgBox(0, "Error", "_MemoryOpen4 Failed" & @error)
    $Value5 = _MemoryRead($Addy5, $ah_Handle, 'dword')
    If $Value5 = 0 Then MsgBox(0, "Error", "_MemoryOpen5 Failed" & @error)
    $Price = _MemoryRead($Addy6, $ah_Handle, 'short')
    If $Price = 0 Then MsgBox(0, "Error", "_MemoryOpen6 Failed" & @error)
    If $Value1 = 4294077426 And $Value2 = 4294967282 And $Value3 = 1811939314 And $Value4 = 1811049471 And $Value5 = 4294077426 And $Price < 1149 Then
        MouseClick("main", 511, 183, 1, 0)
        MouseClick("main", 448, 366, 1, 0)
    EndIf
WEnd

Func Quit()
    Exit 0
EndFunc   ;==>Quit

I'm trying to Read the Memory, but I keep getting @Error 6, Failed to read from the specified process. I have no idea why. All of the addresses are valid, yet it fails to read them all.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...