|
You last visited: Today at 00:13
Advertisement
Memory read von Hp (in Progressbar anzeigen)
Discussion on Memory read von Hp (in Progressbar anzeigen) within the AutoIt forum part of the Coders Den category.
03/26/2011, 12:28
|
#1
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Memory read von Hp (in Progressbar anzeigen)
Hey Leute,
ich hab da mal ne Frage...unzwar hab ich so ne nette GUI aufgebaut mit einer Progressbar, die anzeigen soll, wieviel hp man ingame noch hat. So die Adresse hab ich auch rausbekommen (mit Cheat Engine) und konnte auch alles wunderbar ins Script einfügen. Nur jetzt hab ich keine Ahnung, wie man das so macht, dass die Hp Leiste auch in der Progressbar von meinem Programm genau so angezeigt wird, wie im Spiel. Also wenn ich jetzt sagen wir mal 100% Hp Ingame habe, das der dann auch 100% in meiner Progressbar anzeigt usw. Danke für eure Hilfe =)
|
|
|
03/26/2011, 13:16
|
#2
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Versuchs mit der Prozent Anzahl deines lebens. Noch Adresse von dem Maximalem Leben raussuchen und dann einfach
PHP Code:
GuiCtrlSetData($Progressbar,$MomentanesLeben*100/$MaxLeben)
|
|
|
03/26/2011, 13:31
|
#3
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Also danke erstmal für die schnelle Antwort. Ich habs genau so gemacht nur es tut sich leider immernoch nichts in der Progressbar. Ne Idee woran's liegt?
Also ich zeig dir mal den Teil des Scriptes vielleicht bau ich hier auch Mist ^^
Script :
$Maxleben = 0x2B444AB8;
$MomentanesLeben = 0x77756D00
$Open = _memoryopen(ProcessExists("AION.bin"))
$Read = _MemoryRead($Maxleben , $Open, 'dword')
GuiCtrlSetData($Progressbar1,$MomentanesLeben*100/$Maxleben)
|
|
|
03/26/2011, 13:41
|
#4
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Du musst erst den Wert auslesen mit der Adresse kann der Progressbar nicht viel anfangen
|
|
|
03/26/2011, 14:26
|
#5
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Gibts dafür n Tut oder kannste mir das kurz erklären oder so? Ich hab das noch nich so drauf mit memory read
|
|
|
03/26/2011, 15:08
|
#6
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
$Adresse1 = 0x2B444AB8;
$Adresse2 = 0x77756D00
$Open = _memoryopen(ProcessExists("AION.bin"))
$MaxLeben = _MemoryRead($Adresse1, $Open, 'dword')
$MomentanesLeben = _MemoryRead($Adresse2, $Open, 'dword')
GuiCtrlSetData($Progressbar1,$MomentanesLeben*100/$Maxleben)
|
|
|
03/26/2011, 15:31
|
#7
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Okay danke...nur es passiert immernoch nichts in der Progressbar...komisch
|
|
|
03/26/2011, 15:32
|
#8
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Schick mal dein momentanes script
|
|
|
03/26/2011, 15:39
|
#9
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Okay...hab bestimmt iwo Mist gebaut
Script :
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\..\aion_1.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <nomadmemory.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Marian\Desktop\autoit un so\Magic Aion\GUI\GUI.kxf
$Form1_1 = GUICreate("Magic Aion", 633, 447, 192, 124)
$Progress1 = GUICtrlCreateProgress(24, 128, 233, 25)
$Adresse1 = 0x2B444AB8;
$Adresse2 = 0x77756D00
$Open = _memoryopen(ProcessExists("AION.bin"))
$MaxLeben = _MemoryRead($Adresse1, $Open, 'dword')
$MomentanesLeben = _MemoryRead($Adresse2, $Open, 'dword')
GuiCtrlSetData($Progress1,$MomentanesLeben*100/$Maxleben)
$Progress2 = GUICtrlCreateProgress(24, 192, 233, 25)
$Progress3 = GUICtrlCreateProgress(24, 256, 241, 25)
$Progress4 = GUICtrlCreateProgress(24, 328, 433, 17)
$Label2 = GUICtrlCreateLabel("Target", 448, 81, 35, 17)
$Progress5 = GUICtrlCreateProgress(368, 128, 249, 25)
$Button1 = GUICtrlCreateButton("Run bot", 24, 400, 153, 33, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Player", 24, 80, 33, 17)
$Button2 = GUICtrlCreateButton("Magic Aion Homepage", 432, 8, 145, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Forum", 432, 40, 145, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Exit", 464, 400, 145, 33, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Settings", 248, 400, 153, 33, $WS_GROUP)
$Label3 = GUICtrlCreateLabel("HP", 104, 96, 19, 17)
$Label4 = GUICtrlCreateLabel("MP", 104, 168, 20, 17)
$Label5 = GUICtrlCreateLabel("GK", 104, 232, 19, 17)
$Label6 = GUICtrlCreateLabel("EP", 104, 304, 18, 17)
$Label3 = GUICtrlCreateLabel("Magic Aion - www.magic-aion.com", 24, 8, 219, 26)
GUICtrlSetFont(-1, 12, 400, 0, "Minion Pro Cond")
GUICtrlSetColor(-1, 0x000080)
if not processexists("AION.bin") Then
msgbox(0,"ERROR","Aion process is not open. The will now exit.")
exit
endif
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
case $Button4
Exit
case $Button2
ShellExecute("www.magic-aion.com")
case $Button3
ShellExecute("http://magic-aion.**************/index.php")
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
|
|
03/26/2011, 15:42
|
#10
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Du musst schon bei GuiCtrlSetData das Handel angeben. In dem Fall müsstest du erst einmal den $Progress1 haben aber den gibt es ja nicht
|
|
|
03/26/2011, 16:10
|
#11
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Was meinst du mit Handel angeben? und Progress1 gibt es
Sorry wenn ich dich nerv^^
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\..\aion_1.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <nomadmemory.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Marian\Desktop\autoit un so\Magic Aion\GUI\GUI.kxf
$Form1_1 = GUICreate("Magic Aion", 633, 447, 192, 124)
$Progress1 = GUICtrlCreateProgress(24, 128, 233, 25)
$Adresse1 = 0x2B444AB8;
$Adresse2 = 0x77756D00
$Open = _memoryopen(ProcessExists("AION.bin"))
$MaxLeben = _MemoryRead($Adresse1, $Open, 'dword')
$MomentanesLeben = _MemoryRead($Adresse2, $Open, 'dword')
GuiCtrlSetData($Progress1,$MomentanesLeben*100/$Maxleben)
$Progress2 = GUICtrlCreateProgress(24, 192, 233, 25)
$Progress3 = GUICtrlCreateProgress(24, 256, 241, 25)
$Progress4 = GUICtrlCreateProgress(24, 328, 433, 17)
$Label2 = GUICtrlCreateLabel("Target", 448, 81, 35, 17)
$Progress5 = GUICtrlCreateProgress(368, 128, 249, 25)
$Button1 = GUICtrlCreateButton("Run bot", 24, 400, 153, 33, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Player", 24, 80, 33, 17)
$Button2 = GUICtrlCreateButton("Magic Aion Homepage", 432, 8, 145, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Forum", 432, 40, 145, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Exit", 464, 400, 145, 33, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Settings", 248, 400, 153, 33, $WS_GROUP)
$Label3 = GUICtrlCreateLabel("HP", 104, 96, 19, 17)
$Label4 = GUICtrlCreateLabel("MP", 104, 168, 20, 17)
$Label5 = GUICtrlCreateLabel("GK", 104, 232, 19, 17)
$Label6 = GUICtrlCreateLabel("EP", 104, 304, 18, 17)
$Label3 = GUICtrlCreateLabel("Magic Aion - www.magic-aion.com", 24, 8, 219, 26)
GUICtrlSetFont(-1, 12, 400, 0, "Minion Pro Cond")
GUICtrlSetColor(-1, 0x000080)
if not processexists("AION.bin") Then
msgbox(0,"ERROR","Aion process is not open. The will now exit.")
exit
endif
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
case $Button4
Exit
case $Button2
ShellExecute("www.magic-aion.com")
case $Button3
ShellExecute("http://magic-aion.**************/index.php")
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|
|
|
03/26/2011, 16:48
|
#12
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Oh  Dann überprüf nochmal die Adressen und das was AutoIt für Values zurück gibt.
|
|
|
03/26/2011, 16:55
|
#13
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
GUICtrlSetData($Progress1, $MomentanesLeben * 100 / $MaxLeben)
unten in die while schleife einbauen...
am besten noch immer dann ändern lassen, wenn sich deine HP auch verändert
|
|
|
03/26/2011, 17:05
|
#14
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Okay danke hab ich mal wieder gemacht, aber die Progressbar ist immernoch Leer...nichts passiert und mein Leben ist voll...ich versteh das nich =(
|
|
|
03/26/2011, 17:45
|
#15
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Liegt dann an den Adressen. Die ändern sich ja auch jedes mal falls du es noch nicht weist
|
|
|
 |
|
Similar Threads
|
[VB.NET] Read memory help
03/25/2011 - .NET Languages - 7 Replies
Ok so im looking for some one that can help me to read a procces memory from a game and show it on a label in vb.net so if the HP changes then the label will change.
Please help me here cant find anything on google, also how to send keys to the game
|
VB.NET Read Memory
11/08/2010 - .NET Languages - 1 Replies
jo Hi,
Ich suche eine ReadMemory Function. Hat einer eine da?
Danke
|
[VB]Write Memory bzw Read Memory
06/26/2010 - .NET Languages - 8 Replies
Hi
Ich hab das TuT von *Guidman* benütz um einen hack zu machen.
So aber nun hab ihc ein paar fragen könnte man memory teil kürzer machen und am besten wie kann man das selber machen weil ich will nihct immer C&P machen.
Und zu Read Memory kann man das auch machen das ein Label immer die Bestimmte Ahnzahl angiebt von dem Pointer?.(Wenn das Read Memory ist ?)
Bitte helf mir
Danke
|
Memory read and add value
06/20/2010 - AutoIt - 4 Replies
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
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
|
Read memory
06/27/2008 - Diablo 2 - 7 Replies
Hallo, will mit readprocessmemory nen externes programm machen was mir energie usw protokoliert. Das problem ist nur, das D2 die adressen bei jedem neuen spiel immer verändert. Wie kann ich das umgehen? Brauch ich glaube nen pointer auf die richtige adresse, aber wie? Hat da jemand ahnung???
|
All times are GMT +1. The time now is 00:14.
|
|