Google "automate internet explorer"
I have, and it looks like you are suggesting that, INSTEAD of
launching a browser that will be controlled by my app, to create an
internal (IE?) web browser inside my app that acts as if a human is
controlling a legitimate one. Is this right? I have tried this, with
some success, but some of my navigation actions seem to be blocked by
security issues (the website i am accessing somehow "knows" that I am
not a surfer because I am not duplicating the browsing accurately
enough. I'll elaborate on this if you wish.
What ^exactly^ are you trying to do here?
I am trying to control the browser from my app... so that my app can
take the place of a human to do mundane tasks repeatedly. Basically,
I just want to send key presses (characters, tabs, enter) to the
browser.
You mention security issues
when trying to send messages to another window. Of course, IE is doing what
it is supposed to do in not processing them. If you elaborate on what the
end result you are trying to achieve is, an alternative could be suggested.
SendKeys has problems with duplication with IE due to security issues
(which I can guess arise because why would a secure system ever allow
one app to control another app???) It's explain well here:
http://blogs.msdn.com/michkap/archive/2006/06/10/625285.aspx
"As many developers have found, the current incarnation [of SendKeys]
in both VB and in .NET does really strange things in beta builds of
IE7 (character duplication, etc.) and actual exceptions in beta builds
of Vista due to some of the security changes in the OS."