bggashnik Posted July 9, 2008 Posted July 9, 2008 (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 July 9, 2008 by bggashnik
litlmike Posted July 9, 2008 Posted July 9, 2008 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? _ArrayPermute()_ArrayUnique()Excel.au3 UDF
bggashnik Posted July 9, 2008 Author Posted July 9, 2008 I'm trying to get the statusbar text from a Firefox page.Does it matter which page Firefox has opened?
litlmike Posted July 9, 2008 Posted July 9, 2008 (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 July 9, 2008 by litlmike _ArrayPermute()_ArrayUnique()Excel.au3 UDF
bggashnik Posted July 9, 2008 Author Posted July 9, 2008 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
litlmike Posted July 9, 2008 Posted July 9, 2008 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? muttleywell... your answer is here:http://developer.mozilla.org/en/docs/DOM:window.statusYou want to Create the object, then use the .status scope to return your text. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
litlmike Posted July 9, 2008 Posted July 9, 2008 No one has an idea? muttleyI just gave you the answer in the last post. _ArrayPermute()_ArrayUnique()Excel.au3 UDF
Stilgar Posted July 20, 2008 Posted July 20, 2008 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") jEdit4AutoIt PlanMaker_UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now