Jump to content

Problem with statusbar reading...


Recommended Posts

Ok...I'm trying to get the text from the statusbar in Mozilla Firefox,but StatusbarGetText function doesnt work for Firefox and when i got the handle of the status bar I tried this code and got nothing.Can you help me?

#Include <GuiStatusBar.au3>
MsgBox(0,"Information",_GUICtrlStatusBar_GetText("0x026C0276", 1))
Edited by bggashnik
Link to comment
Share on other sites

Ok...I'm trying to get the text from the statusbar in Mozilla Firefox,but StatusbarGetText function doesnt work for Firefox and when i got the handle of the status bar I tried this code and got nothing.Can you help me?

#Include <GuiStatusBar.au3>
MsgBox(0,"Information",_GUICtrlStatusBar_GetText("0x026C0276", 1))
Do you have a GUI for this script that you did not include? Or are you just trying to get the Status Bar Text from a Firefox page? Can you give us the link?
Link to comment
Share on other sites

I'm trying to get the statusbar text from a Firefox page.Does it matter which page Firefox has opened?

Well, I think it is making it too hard on yourself to use Firefox. I am sure it can be done, but instead I would use IE and use the IE.au3 UDF by DaleHolm. In that case what you want to do is below. The function you were using was for a GUI window created in AutoIt, not for a web browser; hence why I asked what webpage you were viewing, it didn't seem like you knew the right terminology. It is probably possible to get this done in Firefox, but I am lazy and the solution for IE is 5 seconds away.

#include <IE.au3>
$oIE = _IECreate ("http://www.autoitscript.com", 0, 1, 0, 0)

Local $sStatus
While Not ($sStatus = "Done")
    $sStatus = _IEPropertyGet ( $oIE, "statustext")
    ConsoleWrite("Status Bar Text: " & $sStatus & @CRLF)
WEnd

Your Output will be something like this:

Status Bar Text: Website found. Waiting for reply...

Status Bar Text: Website found. Waiting for reply...

Status Bar Text:

Status Bar Text:

Status Bar Text:

Status Bar Text:

Status Bar Text:

Status Bar Text:

Status Bar Text: Waiting for http://www.autoitscript.com/...

Status Bar Text: Done

Edited by litlmike
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...