Originally Posted by
Aryan
Would it be a bad idea to change the name of the WoW window? And if so how do you suppose I get a unique handle for each open WoW? I figure having unique windows name would be the easiest.
Edit: Although loading the WoWs with my own program might even be a better way of doing it. Any ideas?
i did this in C#, it should simply just get all the wow processes running and change the title.
Code:
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace changeWowHandles
{
class blabla
{
[DllImport("user32.dll")]
static extern bool SetWindowText(IntPtr hWnd, string lpString);
private void ChangeTitles()
{
Process[] check = Process.GetProcessesByName("Wow");
foreach (Process p in check)
{
if (p.MainWindowHandle != IntPtr.Zero)
{
IntPtr windowHandle = check[i].MainWindowHandle;
SetWindowText(windowHandle, "wow: " + i);
i++;
}
}
}
}
}