Skip to content

Instantly share code, notes, and snippets.

@ahmetabdi
Created October 25, 2015 22:28
Show Gist options
  • Save ahmetabdi/4639307f0d1e3f770984 to your computer and use it in GitHub Desktop.
Save ahmetabdi/4639307f0d1e3f770984 to your computer and use it in GitHub Desktop.
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