Jump to content
Sign in to follow this  
Autootua

getting text from a window

Recommended Posts

Autootua

Hi ,

I am new to AutoIt. I am using it to automate an installer. I had used QTP(testing tool ) to automate it and then switched to Auotit.

I want to get the text from the window ( installer ) and get the user name and password.

I tried using - WinGetText, ControlGetText functions.

The installer is not being recognized by the AutoIT Window Info and i am getting only the title name and not any other information such as id , text etc. the window is getting recognized as a whole window and is not recognizing any individual objects on the installer such as the buttons , text etc.

My script -

$text = WinGetText("Title Name","")

MsgBox(0, "Text read was:", $text)

Sleep(400)

Thanks

Autootua

Share this post


Link to post
Share on other sites
Autootua

Yes you can get the username and password which is auto generated by the installer.

You can also change the user name and password.so no problem here.....

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.