Jump to content
Sign in to follow this  
Ramazan

Hotkey adding

Recommended Posts

Ramazan

#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 :D

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.

Share this post


Link to post
Share on other sites
Ramazan

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?

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.