Jump to content

Clicking a Button


jromero
 Share

Recommended Posts

Hi Team,

 

I am stuck at the following - I want to click the finish button - but somehow the text can't be found - the message box shows empty - I was expecting to show Finish - Could someone please assist me? - I will appreciate it

Here is my script 

 

; Script Start - Add your code below here
#RequireAdmin

#include <Date.au3>
#AutoIt3Wrapper_Run_Au3Stripper=y

; Keep your main loop easy to manage


$hWnd = WinWait("Setup - DTP")


WinActivate($hWnd)

 

$a = ControlGetText("[CLASS:TNewButton; INSTANCE:4]", "&Finish","TNewButton4")
MsgBox(0, "", $a)

 

 

 

Here is the Summary of the Window Info

>>>> Window <<<<

Title:    Setup - DTP
Class:    TWizardForm
Position:    844, 141
Size:    503, 389
Style:    0x16CA0000
ExStyle:    0x00010100
Handle:    0x000E039C

>>>> Control <<<<
Class:    TNewButton
Instance:    4
ClassnameNN:    TNewButton4
Name:    
Advanced (Class):    [CLASS:TNewButton; INSTANCE:4]
ID:    460348
Text:    &Finish
Position:    327, 327
Size:    75, 23
ControlClick Coords:    37, 21
Style:    0x54010001
ExStyle:    0x00000000
Handle:    0x0007063C

>>>> Mouse <<<<
Position:    1211, 515
Cursor ID:    0
Color:    0x3399FF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
Completing the DTP Setup Wizard

Setup has finished installing DTP on your computer. The application may be launched by selecting the installed icons.

Click Finish to exit Setup.

Setup has finished installing DTP Enterprise Pack on your computer.
&Finish


>>>> Hidden Text <<<<
Installing the Parasoft DTP Enterprise Pack service...
Click Install to continue with the installation, or click Back if you want to review or change any settings.
Destination location:
      C:\Parasoft\DTP

Setup type:
      Full installation

Selected components:
      DTP
      DTP Enterprise Pack

Start Menu folder:
      Parasoft\DTP

Setup will create the program's shortcuts in the following Start Menu folder.
To continue, click Next. If you would like to select a different folder, click Browse.
Parasoft\DTP
B&rowse...
Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue.
Full installation
Current selection requires at least 1,301.4 MB of disk space.
Setup will install DTP into the following folder.
To continue, click Next. If you would like to select a different folder, click Browse.
C:\Parasoft\DTP
Browse...
At least 951.8 MB of free disk space is required.
Please read the following License Agreement. You must accept the terms of this agreement before continuing with the installation.
 

PLEASE READ THIS END USER LICENSE AGREEMENT ("AGREEMENT") CAREFULLY BEFORE USING THE SOFTWARE.  PARASOFT CORPORATION ("PARASOFT") IS WILLING TO LICENSE THE SOFTWARE TO YOU, AS AN INDIVIDUAL OR COMPANY THAT WILL BE USING THE SOFTWARE ("YOU" OR "YOUR") ONLY ON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS OF THIS AGREEMENT.  THIS IS A LEGALLY ENFORCEABLE CONTRACT BETWEEN YOU AND PARASOFT.  BY CLICKING THE "ACCEPT" OR "YES" BUTTON, OR OTHERWISE INDICATING ASSENT ELECTRONICALLY, OR BY INSTALLING THE SOFTWARE, YOU AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND ALSO AGREE THAT IS IT ENFORCEABLE LIKE ANY WRITTEN AND NEGOTIATED AGREEMENT SIGNED BY YOU.  IF YOU DO NOT AGREE TO THESE TERMS AND CONDITIONS, CLICK THE "I DO NOT ACCEPT" OR "NO" BUTTON AND MAKE NO FURTHER USE OF THE SOFTWARE.


 

I &accept the agreement
I &do not accept the agreement
Welcome to the DTP Setup Wizard

This will install DTP 5.4 on your computer.

It is recommended that you close all other applications before continuing.

Click Next to continue, or Cancel to exit Setup.
< &Back
Cancel

Unbale-To-Find.PNG

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...