I'm hoping that there is a simple answer that I am just missing. I am
trying to automate data entry & navigation on a secure website. When
a button is clicked a new window opens which prompts for information
to be added. When this new window is closed, the focus should return
to the original window...but I can't get this to work! I have two
embeddedwebbrowsers on a form. The first (ewb1) I used to navigate
through the site until this new window popped up. When the new window
opens, I am using ppdisp := ewb2.defaultdispatch in the NewWindow2
event which seems to work fine at displaying the new window and
allowing the data to be entered in the second embedweb (ewb2).
However after ewb2 has been closed, the original browser window
is 'greyed-out' and I'm stuck. I am using Delphi 5.
Any help with this would be much appreciated!!