Example #1
0
 private static void FocusToggle(IntPtr hwnd)
 {
     Thread.Sleep(200);
     Win32Api.SetForegroundWindow(hwnd);
 }
Example #2
0
 private void Click()
 {
     Win32Api.PostMessage(minecraftHandle, buttonDownCode, IntPtr.Zero, IntPtr.Zero);
     Win32Api.PostMessage(minecraftHandle, buttonUpCode, IntPtr.Zero, IntPtr.Zero);
 }