Created
October 25, 2015 22:28
-
-
Save ahmetabdi/4639307f0d1e3f770984 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using ReadWriteMemory; | |
namespace TestSwtorApp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
ProcessMemory Mem = new ProcessMemory("swtor"); | |
if (!Mem.CheckProcess()) | |
{ | |
Console.WriteLine("Make sure your application is running or try running this as Admin"); | |
} | |
else | |
{ | |
Mem.StartProcess(); | |
} | |
// .ToString("X") gives hex value from INT. | |
Console.WriteLine("Combat Log Found: 0x" + Mem.ReadInt(0x73877448 + 0x08).ToString("X")); | |
var previous = string.Empty; | |
while (true) | |
{ | |
var text = Encoding.UTF8.GetString(Mem.ReadMem(Mem.ReadInt(0x73877448 + 0x08), 255)); | |
if (text != previous) | |
{ | |
Console.Clear(); | |
Console.WriteLine(text); | |
previous = text; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment