Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > MVPS.Org Read/S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 30605 of 31576
Post > Topic >>

MVPS.Org Read/Set Internet Explorer URL from code (api0051) doesn't

by Salad <oil@[EMAIL PROTECTED] > Jun 27, 2008 at 02:43 PM

Has IE gotten so complex you can't get the URL from IE?  The code at 
http://www.mvps.org/access/api/api0051.htm
used to work.  Now it returns 
nothing.  Is this due to having the IE/Yahoo/Google/WhateverElse toolbars?

I've determined where it fails...at least for me....on the third If() 
statement in function Refresh.  Maybe MS has changed the value of 
ComboBoxEx32 to some other value?

Is there a way to get the URL from an IE window if you have the hWnd of 
it?  I've got the class and caption, no URL.

Private Const mconIE_COMBOEx = "ComboBoxEx32"

'this works
If fIsNT() Then
     hWndChild = apiFindWindowEx(hWnd, 0, _
         conIE_WORKERW, vbNullString)
Else
     hWndChild = apiFindWindowEx(hWnd, 0, _
         mconIE_WORKERA, vbNullString)
End If

'this works
If hWndChild > 0 Then
     '   Rebar is child of Worker  window
     hWndChild = apiFindWindowEx(hWndChild, 0, _
         mconIE_REBAR, vbNullString)
End If

'heres where it fails.  It always returns 0
If hWndChild > 0 Then
     '   ComboboxEx is child of Rebar window
     hWndChild = apiFindWindowEx(hWndChild, 0, _
         mconIE_COMBOEx, vbNullString)
End If

'since it's 0 now, it's ignored
If hWndChild > 0 Then
     '   ComboBox is child of ComboBoxEx  Window
     hWndChild = apiFindWindowEx(hWndChild, 0, _
         mconIE_COMBO, vbNullString)
End If

'since it's 0 now, it's ignored
If hWndChild > 0 Then
     '   Edit class is child of ComboBox  window
     hWndChild = apiFindWindowEx(hWndChild, 0, _
         mconIE_EDIT, vbNullString)
End If
 




 5 Posts in Topic:
MVPS.Org Read/Set Internet Explorer URL from code (api0051) does
Salad <oil@[EMAIL PROT  2008-06-27 14:43:49 
Re: MVPS.Org Read/Set Internet Explorer URL from code (api0051)
"Stephen Lebans"  2008-06-28 00:20:08 
Re: MVPS.Org Read/Set Internet Explorer URL from code (api0051)
Salad <oil@[EMAIL PROT  2008-06-29 13:43:27 
Re: MVPS.Org Read/Set Internet Explorer URL from code (api0051)
"Stephen Lebans"  2008-06-29 18:45:49 
Re: MVPS.Org Read/Set Internet Explorer URL from code (api0051)
Salad <oil@[EMAIL PROT  2008-06-29 19:52:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:30:58 CST 2008.