1

I need to develop a Windows application in C# or VB.net, that when pressing a button, opens Internet Explorer to a specific URL, and invokes the search text function - as in, pressing the CRTL+F in keyboard and filling in specific text in the search textbox.

Currently I can open the page in IE using process.start("iexplorer.exe","URL");, but I don't know how to invoke the CRTL+F command after opening the page.

Appreciate your help

neminem
  • 2,658
  • 5
  • 27
  • 36

1 Answers1

0

You should look into the SendMessage function http://msdn.microsoft.com/en-us/library/windows/desktop/ms644950%28v=vs.85%29.aspx

Also, check out this question - c# Sending keyboard commands to another window / process

Community
  • 1
  • 1
Bone
  • 859
  • 2
  • 9
  • 17