#NoTrayIcon
#include <NomadMemory.au3>
SetPrivilege("
SeDebugPrivilege", 1)
;------------------------------------------------------------------------------------------------------------
$Mem_Address =
0x00C3AEBA ; Endereço a Ser Alterado
$Mem_Process = "
PINBALL.EXE" ; Processo a Ser Alterado
$Mem_Change = "
9999999" ; Novo Valor a Ser Inserido
;------------------------------------------------------------------------------------------------------------
$Mem_PID = ProcessExists($Mem_Process)
$Mem_Open = _MemoryOpen($Mem_PID )
$Mem_HexEdit = "0x" & Hex($Mem_Change)
;------------------------------------------------------------------------------------------------------------
Run(@ProgramFilesDir & "\Windows NT\Pinball\PINBALL.EXE",@ProgramFilesDir & "\Windows NT\Pinball\",@SW_SHOW)
Func Trainer()
$Mem_PID = ProcessExists($Mem_Process)
$Mem_Open = _MemoryOpen($Mem_PID)
$Mem_Read = _MemoryRead($Mem_Address, $Mem_Open)
_MemoryWrite($Mem_Address,$Mem_Open,$Mem_HexEdit)
Exit
EndFunc
Func Close()
Exit
EndFunc
;------------------------------------------------------------------------------------------------------------
HotKeySet("{SPACE}","Trainer") ; aciona o trainer e fecha em seguida
HotKeySet("{ESC}","Close") ; fecha o trainer em caso de travamentos
;------------------------------------------------------------------------------------------------------------
While 1
Sleep(100)
WEnd
;------------------------------------------------------------------------------------------------------------
Exit