Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    [VB.NET]Using Pointers


    Padmak
     Share

    Recommended Posts

    Hello together,

    I've got this Pointer:

    screen.jpg

    How can i use it in VB.NET?

    This the code as far as i can write it:

    Code:

    Private Sub TimerRead_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerRead.Tick
           Dim prozess As Process() = Process.GetProcessesByName("PadMT2")
           Dim p As Process = prozess(0)
           Dim pID As IntPtr = p.Handle
           Dim base As IntPtr = p.MainModule.BaseAddress
           Dim sptr As IntPtr = &H1DB505B0 'das ist die Adresse aus dem linken oberen Textfeld
           Dim basepointer As IntPtr = &H1EF73C 'das ist die hinter PadMT2+
           Dim addr As IntPtr = FindAddress(pID, base, basepointer, sptr)
           GPSL_SetTextLineData(30, 30, addr, Color.FromArgb(255, 0, 255, 0).ToArgb, True, 0, False, 1)
       End Sub
    
    Private Function FindAddress(ByVal pHandle As IntPtr, ByVal BaseAddress As IntPtr, ByVal PointerAddress As IntPtr, ByVal StaticPointer As IntPtr) As Short
           Dim buffer(1) As Byte 'Ziel-Array, Größe 2 Byte (die 0 zählt mit)
           'Verschiedene Varianten:
           Dim readAddress As IntPtr = BaseAddress + PointerAddress + StaticPointer + &H5B2 'Da kommt 30027 raus
           Dim readAddress As IntPtr = BaseAddress + PointerAddress + StaticPointer 'Da kommt -12780 raus
           Dim readAddress As IntPtr = BaseAddress + StaticPointer 'Da kommt 14396 raus
           Dim bytesRead As Integer
           Dim ret As Boolean = ReadProcessMemory(pHandle, readAddress, buffer, 2, bytesRead)
           If Not (ret And bytesRead = 2) Then Return 0 'Wenn nicht genau 2 Bytes gelesen wurden, ist ein Fehler aufgetreten
           Return BitConverter.ToInt16(buffer, 0)
       End Function
    

     

    Thanks for help O.o

     

    Padmak

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...