Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying new IE window using HWND
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
I can't for the life of me figure out what I'm doing wrong here:
Code:
set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible=true
Browser("hwnd:=" & oIE.HWND).FullScreen

It gives me:
Quote:Cannot identify the object "[ Browser ]" (of class Browser). Verify that this object's properties match an object currently displayed in your application.

Anyone?
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
try with the following code
Window("hwnd:=" & oIE.HWND).Maximize
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Nope - same result!

Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Window("hwnd:="& oIE.HWND).Maximize
Should work for you
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
did you notice the difference in the below code....

Window("hwnd:=" & oIE.HWND).Maximize

it is working fine for me
Reply
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
Yes I had noticed both, but apparently messed something up. I cut & pasted and it does work.

Thanks for your help!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesn't support this property or method: 'window(...).window(...).winobject' senthil5683 1 3,695 07-04-2016, 07:08 PM
Last Post: venkatesh9032
Wink What is HWND property? chetan-24 2 14,848 01-02-2009, 06:48 PM
Last Post: nageshpv

Forum Jump:


Users browsing this thread: 1 Guest(s)