Java Robot class eqivalent code in C# -


Can anyone help me convert the following Java code into C #.

  robot robot = new robot (); Robot.keyPress (KeyEvent.VK_WINDOWS); Robot.keyPress (KeyEvent.VK_M); Robot.keyRelease (KeyEvent.VK_WINDOWS); Robot.keyRelease (KeyEvent.VK_M);   

I understand that we have to use 'user32.dll' but I'm not sure which way to call us.

If you press the keyboard key, the following article can help you:

There are examples in it, so it should not be difficult to understand it.

Comments