DarkHo Posted June 18, 2010 Share Posted June 18, 2010 (edited) 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 This is what i got for now. expandcollapse popup#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 Edited June 18, 2010 by DarkHo Link to comment Share on other sites More sharing options...
DarkHo Posted June 18, 2010 Author Share Posted June 18, 2010 Ok this is the new code but the Haxecode changes when the numbers changed so what should i do ? #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 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