private static void launchWinapi(string id) { GOGGalaxy.open(id); IntPtr hwnd = GOGGalaxy.waitForStartup(); WinAPI.SetForegroundWindow(hwnd); WinAPI.Click(hwnd, new System.Drawing.Point(_x, _y)); }