Jump to content

Script not reading from process address.


Recommended Posts

Hello

This is my first ever script in AutoIt. I was wondering if anyone could tell me why this script is not reading from the address? I'm using a version of Nomad that is supposed to be run with AutoIt Version: 3.1.127 (beta). If there is a newer version could some one post a download?

#Include <Misc.au3>
#include <NomadMemory.au3>

Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)

$Fighting = 0
$ID = _MemoryOpen(4580)
$Address = 0x0EFFA6B4
$MP = _MemoryRead($Address, $ID)

While $Fighting = 0
    WinWait("????", "")         
    If Not WinActive("????", "") Then WinActivate("????", "")
    WinWaitActive("????", "")

    If $Fighting = 0 Then
    Send("{Tab 1}") 
    Send("{F2 50}")
    Sleep(1000)
    
ElseIf $MP < 390 Then
    Sleep(300000)
_MemoryClose($ID)
EndIf
WEnd
Edited by superfun
Link to comment
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
 Share

  • Recently Browsing   0 members

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