Hi!
I'm programming a mouse and a keyboard in the WINAPI (win2k and .NET studio) for my console program. Whenever the user clicks with the left mouse button on specific x and y range something will happen. And I want that the keyboard and the mouse will work together. I do not know how to combine them (for the key being pressed and the mouse button being pressed there are two different switch sentence) so I think I found the solution. The solution is that I would simulate a VK_RETURN key. I was trying something with the keybd_event function but does not work.
Anyone has a solution for this?Code:keybd_event (VK_RETURN, 0, 0, 0);