Skip to content

Instantly share code, notes, and snippets.

@dck-jp
Created June 6, 2015 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dck-jp/52ffc02a310f96d5eebd to your computer and use it in GitHub Desktop.
Save dck-jp/52ffc02a310f96d5eebd to your computer and use it in GitHub Desktop.
SHDocVwSample05
public void InputText()
{
var IE = new SHDocVw.InternetExplorer();
IE.Visible = true;
object URL = "http://www.google.com/";
IE.Navigate2(ref URL);
IE.Wait(); //ページ内の要素を書き換えるためには、ページが表示されるまで待つ必要あり
var doc = IE.Document as mshtml.IHTMLDocument3;
doc.getElementById("lst-ib").innerText = "ぐるぐる"; //id:lst-ib 検索ボックス
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment