Jump to content
Sign in to follow this  
Luigi

Get text from WindowsForms10.msctls_statusbar32

Recommended Posts

Luigi

Hi, i try get the text from a .Net program, but without sucess...

I can get only first field data, but I need the second field data "04 - 04".

Posted Image

I am use this code:

$j = ".Net Lan"

$m = "[CLASS:WindowsForms10.msctls_statusbar32.app.0.378734a; INSTANCE:1]"
AutoItSetOption("WinTitleMatchMode",4)
AutoItSetOption("WinDetectHiddenText", 0)

$aa =ControlGetHandle($j,"",$m)
$bb =ControlGetText($j,"",$m)

MsgBox(0,$j, "$aa=" & $aa & @CRLF & "$bb= " & $bb )

The code can retrieve only the first field "Conectado".

The second field the code was not work.

The Window Info is:

>>>> Window <<<<
Title:              .Net Lan
Class:              WindowsForms10.window.8.app.0.378734a
Position:           0, 0
Size:               1360, 740
Style:              0x16C00000
ExStyle:            0x00050101
Handle:             0x000402D0

>>>> Control <<<<
Class:              WindowsForms10.msctls_statusbar32.app.0.378734a
Instance:           1
ClassnameNN:            WindowsForms10.msctls_statusbar32.app.0.378734a1
Advanced (Class):       [CLASS:WindowsForms10.msctls_statusbar32.app.0.378734a; INSTANCE:1]
ID:             66278
Text:   
Position:           0, 693
Size:               1354, 22
ControlClick Coords:        339, 12
Style:              0x5600010C
ExStyle:            0x00000000
Handle:             0x000102E6

>>>> Mouse <<<<
Position:           342, 727
Cursor ID:          0
Color:              0xD4D0C8

>>>> StatusBar <<<<

>>>> Visible Text <<<<
                Conectado


>>>> Hidden Text <<<<

The forum have only two examples but not work for this case.

I try use another tool: WinSpy, but without sucess.

There are another way to get text from the second field?

Regards.


Visit my repository

Share this post


Link to post
Share on other sites
Fire

Hi, i try get the text from a .Net program, but without sucess...

I can get only first field data, but I need the second field data "04 - 04".

Posted Image

I am use this code:

$j = ".Net Lan"

$m = "[CLASS:WindowsForms10.msctls_statusbar32.app.0.378734a; INSTANCE:1]"
AutoItSetOption("WinTitleMatchMode",4)
AutoItSetOption("WinDetectHiddenText", 0)

$aa =ControlGetHandle($j,"",$m)
$bb =ControlGetText($j,"",$m)

MsgBox(0,$j, "$aa=" & $aa & @CRLF & "$bb= " & $bb )

The code can retrieve only the first field "Conectado".

The second field the code was not work.

The Window Info is:

>>>> Window <<<<
Title:              .Net Lan
Class:              WindowsForms10.window.8.app.0.378734a
Position:           0, 0
Size:               1360, 740
Style:              0x16C00000
ExStyle:            0x00050101
Handle:             0x000402D0

>>>> Control <<<<
Class:              WindowsForms10.msctls_statusbar32.app.0.378734a
Instance:           1
ClassnameNN:            WindowsForms10.msctls_statusbar32.app.0.378734a1
Advanced (Class):       [CLASS:WindowsForms10.msctls_statusbar32.app.0.378734a; INSTANCE:1]
ID:             66278
Text:   
Position:           0, 693
Size:               1354, 22
ControlClick Coords:        339, 12
Style:              0x5600010C
ExStyle:            0x00000000
Handle:             0x000102E6

>>>> Mouse <<<<
Position:           342, 727
Cursor ID:          0
Color:              0xD4D0C8

>>>> StatusBar <<<<

>>>> Visible Text <<<<
                Conectado


>>>> Hidden Text <<<<

The forum have only two examples but not work for this case.

I try use another tool: WinSpy, but without sucess.

There are another way to get text from the second field?

Regards.

Hi.

I`m newbie in AutoIt programming imho you must change this values:

INSTANCE:1 --> INSTANCE:2

and the second

AutoItSetOption("WinDetectHiddenText", 0) ---> AutoItSetOption("WinDetectHiddenText", 1)

Try. May be it to help you...

/Sorry for english

Edited by Sh3llC043r

[size="5"] [/size]

Share this post


Link to post
Share on other sites
Luigi

Thanks for your replay 'Sh3llC043r', but does not work... 8\


Visit my repository

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  

×