I am writing my first bot in C# project. (Not a scrip to be used by Scrip Engine). I am stuck at sending mouse click event to Eve Online client. Can you please help here with code examples for mouse and keyboard events? Thanks
I looked into source code of Sanderling and A-bot project and did not find a solution that works. I tried the following, function calls which did not work.
Got a question for Viir, in your example it looks like eve window is begin set to receive the click, but in Sanderling, when bot uses the mouse, it is moved/clicked no matter in which window is user currently focused (you can be in desktop and sanderling will make right click, showing desktop right click menu).
Isn’t possible to make clicks on a certain window, without affecting the user mouse?
autohotkey has ControlClick for example. Where you can set which window will receive that click event https://autohotkey.com/docs/commands/ControlClick.htm
Can you use any of those to send a click to the eve online client without affecting the user mouse? If this was possible it would be interesting to take a closer look.
I’ve tested the ControlClick with the following script:
^m::
title = EVE - (Your character name)
ControlClick, x1680 y232, %title%,, RIGHT, NA
ControlClick, x1744 y283, %title%,,,, NA
Return
If you have the Overview on the common position, once you press CTRL+M it should attempt to click on the first item and dock.
However it only looks to work when eve window is focused. meh, useless