i'm trying to automate some actions with a c# bot. The program should work in this way:
a. the user add actions to a list of actions that the bot will use after the setup. b. for example the user add the "auto-click" action. c. then the program hide his window to let the user click and get the coordinates.
Now, I know how to hide the program window but I don't know how to manage how to get the coordinates of the screen when the user clicks. do anybody know how to achieve this?
Edit: my question is a bit different from the one posted below, i'm not trying to detect mouse clicks in the main form...