Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 23:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB.NET] Read memory help

Discussion on [VB.NET] Read memory help within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
[VB.NET] Read memory help

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
ax5 is offline  
Old 03/17/2011, 20:24   #2
 
bvz's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 260
Received Thanks: 266
My.Computer.Keyboard.SendKeys("ENTER")... for example ...
i can add a memory example later..
bvz is offline  
Old 03/21/2011, 20:56   #3
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Quote:
Originally Posted by bvz View Post
My.Computer.Keyboard.SendKeys("ENTER")... for example ...
i can add a memory example later..
that code dont work for HERO ONLINE - hero.netgame.com it would be good if you can add memmory example
ax5 is offline  
Old 03/22/2011, 14:26   #4
 
bvz's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 260
Received Thanks: 266
you must run it as administrator :s
bvz is offline  
Old 03/22/2011, 16:36   #5
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Quote:
Originally Posted by bvz View Post
you must run it as administrator :s
ok so now all i need is read memory
ax5 is offline  
Old 03/23/2011, 19:00   #6

 
0x0009000's Avatar
 
elite*gold: 20
Join Date: Jun 2010
Posts: 15
Received Thanks: 3
Quote:
Originally Posted by ax5 View Post
ok so now all i need is read memory
Ok first of all you need the Imports & dec's
Code:
Imports System.Runtime.InteropServices
Imports System.Text

Public Class Form1
    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function WriteFloatMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function ReadFloat Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean
    Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer
    Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal nVirtKey As Integer) As Short
    Private Const VK_SPACE = &H20
    Public Healthwath As Long
    Public Healthwath2 As Single
    Public Healthwath3 As Integer
This is the Function of ReadProcessMemory, basicly you can Read everything if you have the right adresses.
Code:
    Public Function HealthHack()
        Dim processname As Process() = Process.GetProcessesByName("name")
        If processname.Length > 0 Then
        Dim processname_1 As Process = hl2(0)
        Dim readHandle As IntPtr = OpenProcess(&H10, False, CUInt(processname_1.Id))
        ReadProcessMemory(readHandle, &HADRESSHERE, Healthwath, 4, Nothing)

        CloseHandle(readHandle)
        End If
        Return HealthHack()
    End Function
Then add a Timer to your form (interval = 100MS (should be enaugh for HP))

and then just add the function as the label text.

example:
Code:
label1.text = HealthHack()

And yea, a little anti copy&paste has been added , dont be lazy!
0x0009000 is offline  
Thanks
1 User
Old 03/24/2011, 22:21   #7
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
thanks mate i will try this <3
ax5 is offline  
Old 03/25/2011, 13:35   #8
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,426
Received Thanks: 1,888
Quote:
Originally Posted by 0x0009000 View Post


And yea, a little anti copy&paste has been added , dont be lazy!
the endless loop is mean
MoepMeep is offline  
Reply


Similar Threads Similar Threads
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
06/18/2010 - AutoIt - 8 Replies
Hey E*PvP, ich hab ein Problem... Ich denke das die memory richtig ist , aber er gibt mir immer nur 0 aus.... Egal ob ich 0, 1, 1000 oder 9million punkte hab ... #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <nomadmemory.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Sol loger", 201, 64, 324, 280)
Memory Read
06/18/2010 - AutoIt - 0 Replies
wtf?? pls delete
Memory Read u.ä.
02/16/2010 - Metin2 - 2 Replies
Moin, ich wollte fragen ob es für Metin2 auch eine UDF für autoit (mit memory read) gibt. Also mir geht es eigentlich nur darum, dass ich einen Bot im HIntergrund laufen lassen kann und es möglich ist zu überprüfen wo der nächste gegner ist, diesen anzuklicken und wie viel hp/mp etc man noch hat. -->Suche etwas "exateres" als z.B. PixelSearch/MousClick und etwas womit ich den Bot im Hintergrund laufen lassen kann. Könnte mir jemand dazu ein Beispiel Script (bezogen auf Metin2) oder...



All times are GMT +2. The time now is 23:47.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.