forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Windows handling

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
ajbharani
Newbie


Joined: 18 Feb 2008
Posts: 1

PostPosted: Mon Feb 18, 2008 1:22 pm    Post subject: Windows handling Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Feb 18, 2008 2:42 pm    Post subject: Reply with quote

Moved to General Help.
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Mon Feb 18, 2008 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 18, 2008 11:39 pm    Post subject: Reply with quote

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. Smile

If you can't find what your looking for, I could throw an example together.
All ya gotta do is ask Razz

Try this topic link -> Here

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group