locked
How to get window handle of the “Legal notice DialogBox” of GINA? RRS feed

  • Question

  • Hi all,

    I want to click on OK button of the "Legal notice DialogBox" For that first capture window of it and then click on it.

    Is there any way to get window handle of the "Legal notice DialogBox" of GINA.I have try with below code but couldn't work.

    private IntPtr getWindow()
            {
                Explorer explorer = Context as Explorer;
    
                IntPtr explorerHandle = (IntPtr)0;
    
                if (explorer != null)
                {
                    IOleWindow window = explorer as IOleWindow;
                    if (window != null)
                    {
                        window.GetWindow(out explorerHandle);
                    }
                }
    
                return explorerHandle;
            }
    
    
    
      private void enterKey()
                {
                    try
                    {            
                        SendKeys.SendWait("{ENTER}");
                    }
                    catch{}                 
                }

    Does any one suggest the way to get the handle of this window?

    Best

    Mahen

    Thursday, April 17, 2014 2:04 PM