Private voidTimer1_Tick (Objectsender, EventArgs e) { intIhandle = FindWindow (NULL,"Security Alerts"); if(Ihandle! =0) {SetForegroundWindow (ihandle); System.Windows.Forms.SendKeys.SendWait ("Y%"); } ihandle= FindWindow (NULL,"Script Error"); if(Ihandle! =0) {SetForegroundWindow (ihandle); System.Windows.Forms.SendKeys.SendWait ("Y%"); } ihandle= FindWindow (NULL,"Web Browser"); if(Ihandle! =0) {SetForegroundWindow (ihandle); System.Windows.Forms.SendKeys.SendWait ("{ENTER}"); } }
Paste the code first.
A large system of a large company. Landing to jump a single point, a single point to will hurdles hurdles.
In addition, it is necessary to introduce a DLL in the first part to introduce
[DllImport ("user32.dll")] Public extern Static int FindWindow (stringstring lpwindowname); [DllImport ("user32.dll")] Public extern Static void SetForegroundWindow (int handle);
Axwebrower Customizing how certificates are handled