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