Jump to content

StatusBarGetText blank for IE


Recommended Posts

Hi,

I'm new to AutoIt but it looks great.

I want to get the text from Internet Explorer when hovering the mouse over an image, the statusbargettext function appears to be the way to go.

When running via a hotkey I return a blank, but the msgbox works. Do you know what I'm doing wrong?

Thanks

HotKeySet("!x", "RecordURL") ;wait for ALT-a keystroke
While 1 ;loop forever to wait for the keypress
  Sleep(100) ;no need to kill the CPU
WEnd

Func RecordURL()
#include <MsgBoxConstants.au3>

AutoItSetOption("WinTitleMatchMode", 2)

Local $sText = StatusbarGetText("Internet Explorer")
MsgBox($MB_SYSTEMMODAL, "", "Internet Explorer's status bar says: " & $sText)
EndFunc

 

 

Link to comment
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
 Share

×
×
  • Create New...