Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases > Coding Snippets
You last visited: Today at 07:48

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

Advertisement



Read string in other process

Discussion on Read string in other process within the Coding Snippets forum part of the Coding Releases category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 10
Received Thanks: 7
Arrow Read string in other process

Some games uses strings to store data about the game.
For this reason I often want to search for substring and then read in the whole string.

Using it is done like this:
Code:
public static class ProcessOps
{
    public static string[] MemFullStrings(this IProcess process, string substring)
    {
        var matches = process.MemFind(substring);
        var result = new string[matches.length];

        for(var i = 0; i < matches.length; ++i)
             result[i] = process.MemReadString(matches[i]);
        return result;
    }
}
This is an extension method allowing you to call it like this:

Code:
IProcess process = ...;
var full_strings = process.MemFullStrings("substring");
Have fun
Kickupx is offline  
Thanks
1 User
Reply

Tags
c#, memory, read, search, string


Similar Threads Similar Threads
read memory string?
05/10/2016 - AutoIt - 1 Replies
hey guys i want create a little tool which can read the userid from memory. i've already converted the array of bytes to string but now i need format like this in string "4E 69 63 6B 4E 61 6D 65 3A ?? ?? ?? ?? ??" i need these "??" for the search ...
[VB.NET] Read Memory String/Char(?)
07/29/2015 - .NET Languages - 2 Replies
Solved.
SharpMagic.dll Read/Write/Process Memory [C#]
09/26/2012 - Coding Releases - 7 Replies
SharpMagic.dll 1. Was ist die SharpMagic.dll ? Die SharpMagic.dll ist eine Bibliothek verschiedenster Funktionen innerhalb einer Klasse. Geschrieben wird sie für C#, kann natürlich aber beliebig in anderen Sprachen benutzt werden. 1. Wer kann diese Bibliothek benutzen ?
VB.Net: Read string from memory?
09/10/2012 - .NET Languages - 8 Replies
Hi, ich möchte gerne einen String aus dem Speicher lesen. Ich habe dazu die entsprechenden Offsets und in Autoit geht das auch wunderbar. Aber das ist wenig effizient und in VB kriege ich das erst gar nicht hin... Hat da wer zufällig eine entsprechende Funktion, die er mir zur Verfügung stellen kann?
Read Process memory in Conquer.exe
04/13/2006 - Conquer Online 2 - 6 Replies
Any of you coders here could help me out? From my program, I&#39;m trying to retrieve/get the SERVER_NAME of the memory of the game. Ex, Conquer-online&#39;s Conquer.exe ReadProcessMemory() could help, but still it confuses me. Anybody can share detailed info about this?



All times are GMT +1. The time now is 07:48.


Powered by vBulletin®
Copyright ©2000 - 2023, 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 ©2023 elitepvpers All Rights Reserved.