Ramazan Posted June 8, 2009 Share Posted June 8, 2009 expandcollapse popup#include "NomadMemory.au3" Global $pid = ProcessExists("xxxxxx.exe") Global $mem = _MemoryOpen($pid) HotKeySet("{F4}", "Start") HotKeySet("{F5}", "Stop") While 1 Sleep(100) WEnd Func Start() While 1 $hp = _GetValue("594") $wlf = _GetValue("998") $pt = _GetValue("91C") $Ratc = _GetValue("C79") Send("q") $Ratc = 1 If $hp<"1300" Then Send("2") Send("2") Send("2") ElseIf $wlf<"900" Then Sleep(2) Send("3") Sleep(500) ElseIf $pt="2" Then Send("{Enter}1{Enter}") Send("{Enter}2{Enter}") Sleep(10000) Else EndIf Wend EndFunc Func Stop() Sleep(100) Send("c") EndFunc Func _GetValue($sOffset,$sPointer = "0x00B8B84C",$sTypo = "dword") Sleep(10) $sAddress = _MemoryRead($sPointer,$mem) $sOffset = Dec($sOffset) $finalAddress = "0x" & Hex($sAddress+$sOffset) Return _MemoryRead($finalAddress,$mem,$sTypo) EndFunc Hotkey function doesnt work. without errors. Maybe wrong strings i dont know Question 1 = How to make work Hotkeys? Question 2 = Can i edit memory with autoit script? (I want change Memory's decimal value?) Thanks for help. Link to comment Share on other sites More sharing options...
Ramazan Posted June 8, 2009 Author Share Posted June 8, 2009 Sorry. it is working. But i must toggle to desktop for start and stop. How to Enable hotkeys if other applications is active? Game applications? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now