txt = "how r u"; string initial = ""; HtmlDocument Document = (HtmlDocument)e.Argument; foreach (HtmlElement hform in Document.GetElementsByTagName("form")) { if (hform.GetAttribute("action") == "/ajax/ufi/modify.php") { foreach (HtmlElement hbtnComment in hform.GetElementsByTagName("input")) { if (hbtnComment.GetAttribute("value") == "Comment") { hbtnComment.InvokeMember("click"); System.Threading.Thread.Sleep(1000); Application.DoEvents(); break; } } HtmlElement htxtArea = hform.GetElementsByTagName("textarea")[0]; initial = htxtArea.InnerText; htxtArea.Focus(); System.Threading.Thread.Sleep(200); Application.DoEvents(); htxtArea.InnerHtml = txt;// +"<input id=\"abc\" type=\"submit\">"; System.Threading.Thread.Sleep(200); Application.DoEvents(); SendKeys.SendWait("{ENTER}"); System.Threading.Thread.Sleep(200); Application.DoEvents(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)