I'm trying to write an automated XYZ, after watch this thread http://www.mmowned.com/forums/wow-me...n-not-dc.html; it works great, but I would know if anyone knows an alternative method to send the heartbeat packet, because I in this moment I use the following code to send the heartbeat packet to the server, I simulate left and right arrows (it's the classic way).
Also, I have one bug, when I quit my program, And I relaunch it, PostMessage don't work, that also I want to know if an alternative method is possible, and hu, anyone can say to me if using LastHardwareAction is a good way?
PS : This works great on short distance but on long distance, i get d/c, or monsters attack me and I die, bref, just another useless anecdote.
Code:
PostMessage(hwnd, (int)WMessages.WM_KEYDOWN, (int)VKeys.VK_LEFT, 0);
Thread.Sleep(50);
PostMessage(hwnd, (int)WMessages.WM_KEYUP, (int)VKeys.VK_LEFT, 0);
PostMessage(hwnd, (int)WMessages.WM_KEYDOWN, (int)VKeys.VK_RIGHT, 0);
Thread.Sleep(50);
PostMessage(hwnd, (int)WMessages.WM_KEYUP, (int)VKeys.VK_RIGHT, 0);
I don't think PostMessage is the better way.
If anyone have an idea =)