Jump to content
Macro Express Forums

Waiting For A Value From A Status Bar


Recommended Posts

I have a delphi app with a TStatusBar which contains 3 panels. I'm trying to write an ME macro to wait for a value in the first one, strictly speaking thats TStatusBar.TStatusPanel[0]. When I use the ME control finder it only finds the TStatusBar. When I wrote a loop in my macro to dump the contents of the control it always returns blank, even though I can see the values. I'm suspecting ME can't go deeper than the TStatusBar itself, which will have a blank caption, rather than its panels - is that right please? Thanks..

Link to comment
Share on other sites



When I last tried to read from a Status Bar it worked for me.


Get Control %C1% (Insight Software Solutions - All Products - Microsoft Internet Explorer: msctls_statusbar32)
Variable Get Control Text: %C1% to %T1%
Text Box Display: T1

Because the window control may change for each web page, you may need to use the Capture Control command instead of the Get Control. The Get Control command requires that you know the position of the control.


You can get the position and size of a Window using the Variable Set Integer %N1% from Top of Window, Variable Set Integer %N2% from Left of Window, Variable Set Integer %N3% from Width of Window, and Variable Set Integer %N4% from Top of Window commands.


This was discussed in this post: http://pgmacros.com/community/index.php?sh...3&hl=status+bar

Link to comment
Share on other sites

Hi guys,

Unfortunately, I think your assessment may be correct, though I have no "elphi" apps to check.

On the other hand, getting the control by position might still work, even if name does not; I thought it was the "Capture" control rather than "Get " control which did it by position; am I wrong, Kevin?

Best, Randall

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...