Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


find current AOL URL

Posted on 1999-07-01
Medium Priority
Last Modified: 2010-05-02
Enum windows does not work on AOL, possibly because of its MDI. Is there a function call that can be made to determine the current URL that the AOL browser is displaying?
Question by:microfleet
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1

Expert Comment

ID: 1521443
try API function FINDWINDOW

Expert Comment

ID: 1521444
I have never had a problem finding any of the windows in AOL. I have several programs that I used to customize AOL. What happens when you try to find the window?

Author Comment

ID: 1521445
it was a request for further information...not an answer .... with FindWindow I can locate all the windows except the browser. For some reason it doesnt want to Enumerate that one. And it will not locate the URL edit box that AOL 4.0 provides.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 1521446
If I provide the code to find that window will give me the points?

Author Comment

ID: 1521447
yes rondeauj the points are yours for the taking! I just want to be able to find the URL
thanks for your time

Accepted Solution

sharmon earned 400 total points
ID: 1521448
Here is how to get the handle, hopefully you know how to get the text or set it or whatever you are wanting to do......

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long

Dim lParent As Long, lChild1 As Long, lChild2 As Long
Dim lChild3 As Long, lChild4 As Long

Private Sub Form_Load()
lParent = FindWindow("AOL Frame25", "America  Online")
lChild1 = FindWindowEx(lParent, 0, "AOL Toolbar", vbNullString)
lChild2 = FindWindowEx(lChild1, 0, "_AOL_Toolbar", vbNullString)
lChild3 = FindWindowEx(lChild2, 0, "_AOL_Combobox", vbNullString)
lChild4 = FindWindowEx(lChild3, 0, "Edit", vbNullString)

'You have the handle now, do whatever you want....
Text1 = lChild4
End Sub

Author Comment

ID: 1521449
very good job

Expert Comment

ID: 1521450
Thank you very you have Spy++?  If so, that's what I used to get the text of that Combo boxes edit class.  From there just search for that in Spy++ and you will see the heirarchy...just follow it down with a couple FindWindowEx and there ya go....!  Took about 2 minutes do find it and write that....anyhow, Spy++ is very usefull for that kind of thing.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question