Sign in to follow this  
Followers 0
bggashnik

Problem with statusbar reading...

9 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thank you but I know how to do it for IE.For my reasons I wanna make it work for Firefox.Anybody who isn't lazy and could do that? muttley

Share this post


Link to post
Share on other sites

No one has an idea? muttley

Share this post


Link to post
Share on other sites

You can use the FF.au3 and MozLab to do this:

#include <FF.au3>

$Socket = _FFStart("http://www.test.net")
$sStatusText = _FFSetGet($Socket,"window.content.status")

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0