Sign in to follow this  
Followers 0
lionqueen

Can AutoIT get information from a window application such as textbox, label?

3 posts in this topic

Hi,

I'm just new to AutoIT. Currently I try to use AutoIT to run another simple window application which have few labels, textboxes, and one button. After entering some data on textboxes, clicking the button, a pop up will show to tell a result which is few text.

Is it possible to use AutoIT to capture labels, textboxs so that we can use AutoIT help to enter data automatically, then press button ?

Is it poosible to use AutoIT to capture the text result from pop up?

If AutoIT can do, could you please help me a bit? If you know any other way, which dont use AutoIT, please help me too.

It is very urgent for me , thank you for your viewing and your help.

Share this post


Link to post
Share on other sites



Yes and Yes. Look at ControlGetText in the helpfile.

You'll want to use the AutoIT Window Info Tool that came with AutoIT to find out the ControlID.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

How do I do it if I am not able to retrieve the controlID ?? 

>>>> Window <<<<
Title: <some title>
Class: HTML Application Host Window Class
Position: 338, 65
Size: 622, 600
Style: 0x14CF0000
ExStyle: 0x00040100
Handle: 0x00000000000401DA
 
>>>> Control <<<<
Class: Internet Explorer_Server
Instance: 1
ClassnameNN: Internet Explorer_Server1
Name:
Advanced (Class): [CLASS:Internet Explorer_Server; INSTANCE:1]
ID:
Text:
Position: 0, 0
Size: 606, 562
ControlClick Coords: 198, 159
Style: 0x56000000
ExStyle: 0x00000000
Handle: 0x00000000000303AA
 
>>>> Mouse <<<<
Position: 544, 254
Cursor ID: 0
Color: 0xD8D8D8
 
>>>> StatusBar <<<<
 
>>>> ToolsBar <<<<
 
>>>> Visible Text <<<<
 
 
>>>> Hidden Text <<<<
 

 

 

Edited by NG13

regards

[font="verdana, geneva, sans-serif;"]NG[/font]

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