Jump to content
Sign in to follow this  
Rishav

getting status from StatusStrip bar

Recommended Posts

Rishav

Hi all

In the product designed by our company we are using the StatusStrip component to show the form stauses. The exact text comes in a ToolStripStatusLabel Class control.

But I cannot read the text in the control at all. Any ideas how to read the text in the ToolStripStatusLabel control?

Also, Autoit info window cannot differentiate between the StatusStrip and the ToolStripStatusLabel. they both are selected as a single object.

Posted Image

thanks and regards

Rishav

ps. the windo info is

>>>> Window <<<<
Title:  MyApp
Class:  WindowsForms10.window.8.app.0.378734a
Position:   -4, -4
Size:   1288, 1002
Style:  0x17CF0000
ExStyle:    0x00050100
Handle: 0x004A0944

>>>> Control <<<<
Class:  WindowsForms10.window.8.app.0.378734a
Instance:   1
ClassnameNN:    WindowsForms10.window.8.app.0.378734a1
Name:   StatusStrip1
Advanced (Class):   [NAME:StatusStrip1]
ID: 657908
Text:   StatusStrip1
Position:   3, 923
Size:   1152, 22
ControlClick Coords:    1043, 15
Style:  0x56000000
ExStyle:    0x00017000
Handle: 0x000A09F4

>>>> Mouse <<<<
Position:   1046, 964
Cursor ID:  0
Color:  0xF3F2F5

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
StatusStrip1
Main Menu
Maintain
Standard
Status
ExplorerBar1


>>>> Hidden Text <<<<
TabStrip1
MyApp
Logo
Edited by Rishav

Share this post


Link to post
Share on other sites
Rishav

This is very hard to help. Does your company offer the product to the public.

Or you can just PM me the link. Nice CPU load there.

not really. They make the product on the client specification. >_<

I am trying my best to convince the devs to use msctls_statusbar32 or something similarly unsilly.

ps. the cpu load is just because of the oracle server on my workstation going berserk with an analysis query.

Share this post


Link to post
Share on other sites
dis

Hi,

I'm running into the same issue. I want to read the text from a ToolStripStatusLabel and be able to click on a ToolStripDropDownButton and select one of the options that shows up. I don't have control over the app that I'm trying to script, and I can't distribute it, but I made a sample that has the same type of controls, and the same behavior. I've attached it to this post. You will need to have the .Net 3.5 framework installed to run this.

Some things to note. Whenever I use Au3Info to look at the status strip I get the following.

>>>> Window <<<<
Title:  Form1
Class:  WindowsForms10.window.8.app.0.bf7d44
Position:   44, 58
Size:   300, 300
Style:  0x16CF0000
ExStyle:    0x00050100
Handle: 0x00150BDA

>>>> Control <<<<
Class:  WindowsForms10.window.8.app.0.bf7d44
Instance:   1
ClassnameNN:    WindowsForms10.window.8.app.0.bf7d441
Advanced (Class):   [CLASS:WindowsForms10.window.8.app.0.bf7d44; INSTANCE:1]
ID: 461742
Text:   statusStrip1
Position:   0, 244
Size:   292, 22
ControlClick Coords:    52, 7
Style:  0x56000000
ExStyle:    0x00010000
Handle: 0x00070BAE

>>>> Mouse <<<<
Position:   100, 339
Cursor ID:  2
Color:  0xECE9D8

>>>> StatusBar <<<<

>>>> Visible Text <<<<
statusStrip1


>>>> Hidden Text <<<<

When I look at the context menu that is produced, I see

>>>> Window <<<<
Title:  
Class:  WindowsForms10.window.20808.app.0.bf7d44
Position:   132, 287
Size:   156, 48
Style:  0x96000000
ExStyle:    0x00010008
Handle: 0x00100B7E

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 0x00070BAE

>>>> Mouse <<<<
Position:   156, 327
Cursor ID:  2
Color:  0x316AC5

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

Thanks,

David

WindowsFormsApplication1.zip

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.