public static void HandleDialogBox(IntPtr hwndl) { try { WndSearcher.SetForegroundWindow(hwndl); Thread.Sleep(200); SendKeys.SendWait("%s"); //SendKeys.Flush(); if (hwndl != WndSearcher.GetForegroundWindow()) WndSearcher.SetForegroundWindow(hwndl); SendKeys.SendWait("%a"); //SendKeys.Flush(); //if (hwndl != WndSearcher.GetForegroundWindow()) // WndSearcher.SetForegroundWindow(hwndl); //SendKeys.SendWait("{TAB}"); //SendKeys.Flush(); if (hwndl != WndSearcher.GetForegroundWindow()) WndSearcher.SetForegroundWindow(hwndl); SendKeys.SendWait("{ENTER}"); SendKeys.Flush(); } catch (Exception) { throw; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)