Vb.Net cheat engine adress have code, have problem menu

User Tag List

Results 1 to 4 of 4
  1. #1
    allahupish's Avatar Member
    Reputation
    3
    Join Date
    Jan 2016
    Posts
    28
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vb.Net cheat engine adress have code, have problem

    here is my situation;




    I need help it returns some strange text. I need to read integer
    Here is the code:

    Code:
    Imports System.Runtime.InteropServices
    Imports System
    Imports System.Text
    Imports System.ComponentModel
    Imports System.Windows.Forms.Application
    Module ReadMemory
        <DllImport("kernel32.dll", SetLastError:=True)> Public Function ReadProcessMemory _
    (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef lpBuffer As Byte,
     ByVal iSize As Integer, ByRef lpNumberOfBytesRead As Integer) As Boolean
        End Function
    End Module
    Public Class Form1
        Public Function ReadMemoryP(ByVal address As Integer)
            Dim prox As Process() = Process.GetProcessesByName("game")
            Return GetTextinMemory(prox(0).Handle, address, 16) & GetTextinMemory(prox(0).Handle, address + 32, 16)
        End Function
        Private Function GetTextinMemory(ByVal ProcessHandle As IntPtr, ByVal MemoryAddress As IntPtr, ByVal CharsToRead As Integer, Optional ByVal IsUnicode As Boolean = True) As String
            Dim ReturnValue As String = vbNullString
            Dim StringBuffer() As Byte
            If IsUnicode Then
                ReDim StringBuffer(CharsToRead * 2 - 1)
            Else
                ReDim StringBuffer(CharsToRead - 1)
            End If
            Try
                If ReadProcessMemory(ProcessHandle, MemoryAddress, StringBuffer(0), StringBuffer.Length, Nothing) Then
                    If IsUnicode Then
                        ReturnValue = System.Text.Encoding.ASCII.GetString(StringBuffer)
                    Else
                        ReturnValue = System.Text.Encoding.Default.GetString(StringBuffer)
                    End If
                End If
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
            Return ReturnValue
        End Function
    
        Private Sub cmdFirstScan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    
            MsgBox(ReadMemoryP(& 87541CDC))
    
        End Sub
    End Class

    Vb.Net cheat engine adress have code, have problem
  2. #2
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Make sure you're clear on what your program is doing here - it's reading the memory (a 4 byte integer, Cheat Engine tells us this) into a byte array, then encoding those bytes as an ASCII or Unicode string... Can't you see the problem?

    You need to convert the bytes to an integer. From there, you can do whatever you want with the value - if you want the string representation of the integer, simply using ToString(). The easiest way to accomplish this, without stepping into marshalling, is by using the System.BitConverter helper class.

  3. #3
    allahupish's Avatar Member
    Reputation
    3
    Join Date
    Jan 2016
    Posts
    28
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know how to do this I'm like 2 weeks into visual basic

  4. #4
    allahupish's Avatar Member
    Reputation
    3
    Join Date
    Jan 2016
    Posts
    28
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here is project
    Attached Files Attached Files

Similar Threads

  1. [Buying] Battle.net Name change - Please have some reputable sources.
    By ev0 in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 06-10-2014, 08:35 PM
  2. 4.0.6 PTR Cheat Engine fly/jump codes?
    By kaiverrettu in forum WoW Bots Questions & Requests
    Replies: 6
    Last Post: 01-13-2011, 06:44 AM
  3. Finding Wallclimb codes etc. with Cheat Engine?
    By kaiverrettu in forum WoW Bots Questions & Requests
    Replies: 2
    Last Post: 11-23-2010, 01:43 AM
  4. Cheat Engine
    By Relz in forum World of Warcraft Bots and Programs
    Replies: 535
    Last Post: 09-12-2007, 04:47 PM
  5. Cheat Engine wallclimbing code
    By Kimpie in forum World of Warcraft General
    Replies: 7
    Last Post: 01-26-2007, 09:03 PM
All times are GMT -5. The time now is 11:16 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search