Hello, all...
I've been working on a few tools, as some of the available tools either don't fit my needs or are outdated. (Just to clarify, I am in no way denoting anyone's work or making accusations of inadequacy. I simply needed something tailored a bit more to my needs and something that works a bit better with the 7.4 files.) Currently I am working on a gm tool and ran into a bit of an issue. I know there are a few very talented C# programmers in this community who have achieved this in the past and thought I might give it a shot. (please don't flame... I am at least trying which is more than you can say for most of the help threads in this forum.) Here is my issue:
The GM-Tool passes strings to Herlock using "sendmessage", as seen here:
This works fine, however, I tried using "sendkeys" to pass the enter keystroke which, as you know, will only effect the active window.
Someone suggested looking into spy++ and using "WM_KEYDOWN". Unfortunately I cannot afford a legit version of Visual studio and was wondering if anyone would be willing to share their insights or methods used in the past.
I will, of course, share everything once I am finished. Thanks in advance. :D
I've been working on a few tools, as some of the available tools either don't fit my needs or are outdated. (Just to clarify, I am in no way denoting anyone's work or making accusations of inadequacy. I simply needed something tailored a bit more to my needs and something that works a bit better with the 7.4 files.) Currently I am working on a gm tool and ran into a bit of an issue. I know there are a few very talented C# programmers in this community who have achieved this in the past and thought I might give it a shot. (please don't flame... I am at least trying which is more than you can say for most of the help threads in this forum.) Here is my issue:
The GM-Tool passes strings to Herlock using "sendmessage", as seen here:
Code:
Process[] herlock = Process.GetProcessesByName("CaptainHerlockServer");
if (herlock.Length == 0) return;
if (herlock[0] != null)
{
IntPtr child = FindWindowEx(herlock[0].MainWindowHandle, new IntPtr(0), "Edit", null);
SendMessage(child, 0x000C, 0, "#warp(" + xPosition.Text + ", " + yPosition.Text + ", \""+listBox1.Text+"\")");
}
Code:
SendKeys.Send("{ENTER}");
I will, of course, share everything once I am finished. Thanks in advance. :D