George J
Well-known Member
- Joined
- Feb 15, 2002
- Messages
- 959
I am doing something weird and wonderful (scrambling in the dark) and have the hwnd of a particular window.
Say I have found the handle for the active window and it's a webpage.
Dim myDoc as HTMLDocument
set myDoc = hwnd
then I can access the HTML elements on myDoc
How can I make the code understand that myDoc should be the activewindow? I am trying to extract some URL data on the page.
I found some code that looked promising here but I can't amend it to work for me.
Hope this makes sense.
Say I have found the handle for the active window and it's a webpage.
Dim myDoc as HTMLDocument
set myDoc = hwnd
then I can access the HTML elements on myDoc
How can I make the code understand that myDoc should be the activewindow? I am trying to extract some URL data on the page.
I found some code that looked promising here but I can't amend it to work for me.
Hope this makes sense.