Hi,
I am working on program that does some standard tasks (e.g Auto Selling blue and yellow loot).
Therefore I used the Enigmas C# Framework to read out the neareast vendor and all inventory stuff and I can translate these to screen coordinates to click on.
Then I am using some Win32 API to inject Mouse and Keyboard to select vendor and click on all items -> everything is working fine. perfect.
But now I am trying this process without moving the "real" mouse pointer. Therefore I am using PostMessage and SendMessage to inject WM_MouseClick and Keystrokes directly to the Handle of the D3 Window. This is working great, even if the window is minimized,
BUT I cant select items with WM_MouseMove in game. e.g: To interact with a vendor (or blacksmith) you have to put the mouse over him and wait until the white outline appears. Only then it is possible to interact with him.
How to reach this unattended by using Windows Messages while the window is minimized WITHOUT using the real mouse pointer?
At the current stage I sniffed all Windows Messages with Spy ++ and reproduced them exactly with all lParams and wParams:
- WM_NCHITTEST
- WM_SETCURSOR
- WM_MOUSEMOVE
But I dont get the vendor selected this way. Anyone has an idea if this is possible?