| View previous topic :: View next topic |
| Author |
Message |
ajbharani Newbie
Joined: 18 Feb 2008 Posts: 1
|
Posted: Mon Feb 18, 2008 1:22 pm Post subject: Windows handling |
|
|
Hi
I have to search for a particular text if present in an application's status bar and proceed with my action. Is this possible?
Well.. guess i sound vague. Take ms-paint for example and suppose that its open. If the status bar contains "For help, click helps on the Help menu", my application should post a message box saying "Get help".
Is this possible to do?
Thanks and regards,
Bharani _________________ Hope is a good thing; may be the best of all; and no good thing ever dies |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Feb 18, 2008 2:42 pm Post subject: |
|
|
Moved to General Help. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Feb 18, 2008 9:17 pm Post subject: |
|
|
I never tried real hard, but I get this classname for the status bar:
#TVDSStatus
Maybe you can use that classname to get the text from the control. |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Feb 18, 2008 11:39 pm Post subject: |
|
|
As Vtol said, use the class name, however I should correct him. The
"TVDSStatus" is for Vds windows only. The Windows statusbar classname
is "msctls_statusbar32".
You will need to obtain the handle of the window that has the statusbar
first. You will then need to enumerate thru the child window handles of that
window with the @window(%%Hwnd, FIRST|NEXT)function. Once you get
the identifier (handle) of the statusbar control you can then get the text
(first pane only) with the @wintext() function.
Search the forum, there are examples here on how to do this. Hopefully I
at least got you pointed in the right direction.
If you can't find what your looking for, I could throw an example together.
All ya gotta do is ask
Try this topic link -> Here _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
|