Sign in to follow this  
Followers 0
rooshabhsheth

how to capture text appearing on the toolstrip component

2 posts in this topic

#1 ·  Posted (edited)

Hi All,

I'm using AutoIT tool to find how much time application takes when a user to click on save button and the 'data saved' message coming on the screen.

my problem is the data saved message is not a popup box else i could've used winwait function i guess.

I talked to developer and he informed me that the 'data saved' message appears on the control called toolstrip which is .NET component.

we are using .NET 3.5 to develop the application which is client server application.

I used AutoIT info tool but the message 'data saved' does not appear either on visible text or hidden text

providing Summary detail given by AutoIT info tool. can any1 help

>>>> Window <<<<

Title: Pricing Support Tool v2.3.1 - Welcome Sheth, Rooshabh

Class: WindowsForms10.window.8.app.0.378734a

Position: -4, -4

Size: 1288, 972

Style: 0x17CF0000

ExStyle: 0x00050100

Handle: 0x006306F0

>>>> Control <<<<

Class: WindowsForms10.window.8.app.0.378734a

Instance: 49

ClassnameNN: WindowsForms10.window.8.app.0.378734a49

Advanced (Class): [CLASS:WindowsForms10.window.8.app.0.378734a; INSTANCE:49]

ID: 2099326

Text: statusStrip1

Position: 0, 916

Size: 1280, 22

ControlClick Coords: 124, 17

Style: 0x56000000

ExStyle: 0x00010000

Handle: 0x0020087E

>>>> Mouse <<<<

Position: 128, 963

Cursor ID: 0

Color: 0xF1EFE2

>>>> StatusBar <<<<

>>>> Visible Text <<<<

Navigation

Module Hierarchy

Project Summary

Client Name :

Project Name :

#1142

Bid Reference :

View/Edit Proposal Details

Default Tables

PST Dashboard

Location

1 #1142

Input Options

Module Details

Price and Margin

Standard Costs

Delivery Costs

Risks

Liabilities and Provisions

Invoicing

Finance

Tags

Output Options

Summary

Assumptions

Project Costs

Cash Flow

Contribution Analysis

Invoicing

Risk Register

Liabilities and Provisions

Amended Default Values

Profit Allocation

Timelines

Tagged Modules

All Modules

Single Module

statusStrip1

menuStrip1

Price and Margin

&Save

&Assumptions

5000

Minimum Sales Price

Negotiation Margin

15000

25.17

Selling/Offer Price

Profit Margin

20000

>>>> Hidden Text <<<<

statusstrip is how AutoIT is identifying the control in my opinion.

can any1 provide me how can i time the difference , but 1st i have to identify the time when 'data saved' message appears on scrren which the autoIT is unable to do so at the moment

Edited by rooshabhsheth

Share this post


Link to post
Share on other sites



Looking at the output - not sure if what a WindowsForms10.window.8.app.0.378734a is not how to capture it. You can use my get control mouse tool in my sig to see of that helps.

Anyway, if it is like a label and you can get a handle to it, then you can test the text with a loop to get your time.


Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Share this post


Link to post
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
Sign in to follow this  
Followers 0