I've gotten to the point where I can create a new IE and make it navigate through links and fill out forms automatically, but now I'd like to be able to control an already running instance of IE and do the same. I'm having trouble figuring out how to access the already running ie window. I realize I'd have to use DDE but I'm unsure exactly how I'd do this. At this point I'm as far as finding ie with this:
Is it possible to make that an object that I can control as I would with a new window? (thisTest.Navigate URL)
Code:
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long)
Sub Main
thisTest = FindWindow(vbNullString, "Google - Microsoft Internet Explorer")
msgbox(thisTest)
End Sub
Is it possible to make that an object that I can control as I would with a new window? (thisTest.Navigate URL)