Can somebody help me in converting the following java code to 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 understood we have to use ‘user32.dll’. But I am not sure which methods we have to call.
If you are trying to simulate keyboard key presses, the following article should help you:
http://www.codeproject.com/Articles/28064/Global-Mouse-and-Keyboard-Library
It has examples so it shouldn’t be too hard to understand.