示例#1
0
文件: BHO.cs 项目: LoWrIdErTJ/bah
        public void setFileField(String fieldId, String filePath)
        {
            IHTMLInputElement fileInputField = (IHTMLInputElement)document.getElementById(fieldId);

            // TODO - Do more checking to verify SetForegroundWindow worked,
            //        and complain if it doesn't.
            Win32.SetForegroundWindow(webBrowser.HWND);
            fileInputField.select();
            System.Windows.Forms.SendKeys.SendWait(filePath);
        }
示例#2
0
 public void Select()
 {
     inputElement.select();
 }