aol frame25 is the class of AOL.
America Online is the title.
The FindWindow API function can be used to find a window either by it's class, caption, or both.
But since AOL's title is not always America Online (when you view IE in AOL, the caption changes), so you have to find it by it's class. The class will always be the same.Code:FindWindow("AOL frame25", "America Online")
Hope that clears things up a bit.
And to see if AOL is running, using the code above, did you state the correct path that AOL is in?
Something like:
Code:If IsApplicationRunning("C:\America Online 6.0\waol.exe") Then Msgbox "AOL is running" Else Msgbox "AOL is not running" End If




Reply With Quote