I turn my monitors on and off by using the following code:
[DllImport(\"user32.dll\")] static extern IntPtr SendMessage(IntPtr hWnd, int Msg, IntPtr wParam,
I had the same idea for this issue Just Changed the dear earlypearl's solution a wee bit and tested it on windows XP, 7, 8, Server 2008 and all worked perfectly.
mouse_event(MOUSEEVENTF_MOVE, 0, 1, 0, UIntPtr.Zero);
it does not need to be called twice.