Jump to content
Sign in to follow this  
superfun

Script not reading from process address.

Recommended Posts

superfun

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.