0

e.g: a game is running and when I press a button, I want my program to show up.

another example : I'm on my desktop and when I press a button, I want my cursor to move to a specific position.

how do I achieve that?

1 Answers1

0

Assuming you are using windows, and using c# to develop the application. 1. You will have to develop a window form application keep it running. write a global mouse event handler, when you detect a mouse click on certain target area, bring your app to front

Global mouse event handler

this.WindowState = FormWindowState.Minimized;
this.Show();
this.WindowState = FormWindowState.Normal;
  1. move mose cursor, you could refer to api mentioned below post

How to move mouse cursor using C#?

Huan Jiang
  • 247
  • 4
  • 13