WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Read Statusbar Text from Browser

 Keywords: Read Get Statusbar Status Bar Text StatusText Browser MSIE IE Internet Explorer tooltips_class32 RoboScripter Control Manager Extender

Question:

We need to read the tooltips_class32 text from the bottom left hand corner of initially IE but also other browsers also. I know WinBatch can read the URL from browsers but is there a way to sit in a loop and monitor the tooltip text that shows up bottom left hand corner of browser windows?

Typically this is url text when the mouse is hovering over other links on the browser page. Need to do some sort of ControlGetText for the tooltips_class32 but cannot work out how to do this in WB has anyone done this before?

Answer:

This sounds like a job for the RoboScripter tool included with WinBatch. Here is a link to a tutorial that should help get you started: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+Tutorials+A~look~at~RoboScripter.txt

However, for some reason ( probabvly security) IE has the statusbar locked down so the RoboScripter/Control manager extender functions cannot access it. However, this code sample works for IE...

#DefineFunction startMSIE(url)
   msie = ObjectCreate("InternetExplorer.Application")
   msie.addressbar = @FALSE
   msie.statusbar = @TRUE
   msie.menubar = @FALSE
   msie.toolbar = @FALSE
   msie.visible = @TRUE
   msie.navigate(url)
   WaitForMSIE(msie)
   Return(msie)
#EndFunction

#DefineFunction WaitForMSIE(msie)
   While msie.busy || msie.readystate <> 4
      TimeDelay(0.5)
   EndWhile
   Return
#EndFunction


url = "http://www.google.com/search?hl=en&q=winbatch"
objIE  = startMSIE(url)
title = "Statusbar Text"
BoxOpen(title, "")
WindowOnTop( title, 1 )

While @TRUE
   BoxText( objIE.statustext )
EndWhile
Exit
You might be able to use Control manager to access other browsers status text.
Article ID:   W17943
Filename:   Read Statusbar Text from Browser.txt
File Created: 2014:07:18:09:51:38
Last Updated: 2014:07:18:09:51:38