Hi ,
Apologies for delayed reply.
Here is my script. Login form is open on a button click.I think you can understand from my script
def Test1():
#Runs the "FirmwareTestTool" tested application.
TestedApps.FirmwareTestTool.Run()
#Selects the 'Test && Update' tab of the 'tabControl' tab control.
Aliases.FirmwareTestTool.MainForm.tabControl.ClickTab("Test && Update")
#Sets the state of the 'cbUpdateFirmware' check box to cbUnchecked.
Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.wizardPanel.tableLayoutPanel1.tableLayoutColumnPanel.groupBoxActions.cbUpdateFirmware.wState = cbUnchecked
#Sets the state of the 'cbUploadDefaultParameters' check box to cbUnchecked.
Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.wizardPanel.tableLayoutPanel1.tableLayoutColumnPanel.groupBoxActions.cbUploadDefaultParameters.wState = cbUnchecked
#Clicks the 'RoomCountApplicationRadioButton' button.
Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.wizardPanel.tableLayoutPanel1.tableLayoutColumnPanel.selectDeviceTypeCtrl.deviceTypeGroupBox.RoomCountApplicationRadioButton.ClickButton()
#Sets the state of the 'cbTestLens' check box to cbChecked.
Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.wizardPanel.tableLayoutPanel1.tableLayoutColumnPanel.groupBoxActions.cbTestLens.wState = cbChecked
#Clicks the 'continueButton' button.
Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.navigationPanel.continueButton.ClickButton()
#Enters the text 'adiUser' in the 'userIdTextBox' text editor.
Aliases.FirmwareTestTool.UserAuthenticationDlg.userIdTextBox.SetText("adiUser")
#Enters '[Tab]' in the 'userIdTextBox' object.
Aliases.FirmwareTestTool.UserAuthenticationDlg.userIdTextBox.Keys(Value + "[Tab]")
#Enters text in the 'passwordTextBox' text editor.
Aliases.FirmwareTestTool.UserAuthenticationDlg.passwordTextBox.SetText(Project.Variables.Password1)
#Clicks the 'okButton' button.
Aliases.FirmwareTestTool.UserAuthenticationDlg.okButton.ClickButton()
#Clicks the 'btnClose' button.
Aliases.FirmwareTestTool.SensorImageDisp.btnClose.ClickButton()
#Check whether '*Completed*' matches the text optically recognized in the image Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.helpPanel.statusLabel.
OCR.Recognize(Aliases.FirmwareTestTool.MainForm.tabControl.programmerTabPage.helpPanel.statusLabel).CheckText("*Completed*")