Im trying to read values with HexCode but i have no ide to do this. i want the porgress bar and the labels to show the curent value of the Adresses
Ok this is the new code but the Haxecode changes when the numbers changed so what should i do ?
Now it works but the hexcode was only for that value of the HP/chi so it will not show the hp/chi value when it changes
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Adress1 = 0x000008DC
$Adress2 = 0x000009CF
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("TEST", 391, 146)
$Progress1 = GUICtrlCreateProgress(56, 24, 265, 25)
$Progress2 = GUICtrlCreateProgress(56, 64, 265, 25)
$Label1 = GUICtrlCreateLabel("HP", 16, 24, 36, 17)
$Label2 = GUICtrlCreateLabel("Chi", 8, 64, 36, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Progress1
While 1
_MemoryRead($Adress1,$Adress1)
WEnd
case $Progress2
While 1
_MemoryRead($Adress2,$Adress2)
WEnd
EndSwitch
WEnd
~ BUMPQuote:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
$Adress1 = 0x000008DC
$Adress2 = 0x000009CF
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("TEST", 391, 146)
$Progress1 = GUICtrlCreateProgress(56, 24, 265, 25)
$Progress2 = GUICtrlCreateProgress(56, 64, 265, 25)
$Label1 = GUICtrlCreateLabel("HP", 16, 24, 36, 17)
$Label2 = GUICtrlCreateLabel("Chi", 8, 64, 36, 17)
$Button1 = GUICtrlCreateButton("Button1", 270, 90, 50, 50, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GuiCtrlSetData($Progress1,$Adress1)
GuiCtrlSetData($Progress2,$Adress2)
EndSwitch
WEnd
Now it works but the hexcode was only for that value of the HP/chi so it will not show the hp/chi value when it changes