Lê Hùng

How to get label name with autoit???

7 posts in this topic

Hi admin

I have a problem with my step by get label name from application other with Autoit.

With attach picture, I want get substring "1B" and "2C" of label and show messagerBox. 

Please, help me.!!

Thanks,.

 CKXZ3gw.jpg

Share this post


Link to post
Share on other sites



Hello. Use ControlGetText and then use some string mid split to get what you want.

Saludos

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi Danyfirex.

I've been tried and it not worked. 

This is my result while test with Autoit info.

I can only show messageBox is unnamed.

I think with ControlGetText is can only get text with textBox, rest with label name is not working. It is true or false???

>>>> Window <<<<
Title:    VPN Client  |  User Authentication for "vpn-inside"
Class:    QWidget
Position:    185, 230
Size:    416, 153
Style:    0x16CC0000
ExStyle:    0x0000010C
Handle:    0x000000000105061C

>>>> Control <<<<
Class:    QWidget
Instance:    7
ClassnameNN:    QWidget7
Name:    
Advanced (Class):    [CLASS:QWidget; INSTANCE:7]
ID:    
Text:    unnamed
Position:    10, 10
Size:    380, 14
ControlClick Coords:    176, 6
Style:    0x56000000
ExStyle:    0x00000004
Handle:    0x0000000002590462

>>>> Mouse <<<<
Position:    379, 277
Cursor ID:    0
Color:    0x863500

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
unnamed
unnamed
unnamed
password
unnamed
unnamed
unnamed


>>>> Hidden Text <<<<

Edited by Lê Hùng

Share this post


Link to post
Share on other sites

probably does not work with QWidget control. make a search about that on the forum.

 

Saludos

Share this post


Link to post
Share on other sites

Hey Danyfirex.

So have other ways? please, help me.

Share this post


Link to post
Share on other sites

Hello.

 

Maybe this can help.

Saludos

Share this post


Link to post
Share on other sites

Thanks you so much !

I have added your skype. You can user it not? Give me Your contract info.

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