#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.5 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include #include #include #include #include #include ; Wait 10 seconds for the Notepad window to appear. $hIndPflWnd = WinWait("[CLASS:TfIndividualProfile]", _ "", 10) ; Address - Start ; Click on Address Button New ControlClick($hIndPflWnd, "", _ "[CLASS:TDNewBitBtn; INSTANCE:3]") ; Get Address Window handle $hAdrsWnd = WinWait("[CLASS:TfEditAddress]", "" , 10) ; Get Address Window Country ComboBox handle $hCountry_cbx = ControlGetHandle("Address", "", _ "[CLASS:TFidSkinComboBox; INSTANCE:3]") ; Select the desired country for Address Window ; Country cbx _GUICtrlComboBox_SelectString($hCountry_cbx, "UG") ; Click on Address Window Button OK ControlClick($hAdrsWnd, "", _ "[CLASS:TDOKBitBtn; INSTANCE:1]") Sleep(1000) ; Address - End ; Last Name - Start asdfafa sd ; Last Name - End ; First Name - Start $idFirstName = "[CLASS:TFidProfileEditFirstName; INSTANCE:1]" ;ControlFocus($hIndPflWnd, "", $idFirstName) ;~ Sleep(100) ;~ ControlSend($hIndPflWnd, "", $idFirstName, "Kricket") ;~ Sleep(100) $hFirstName = ControlGetHandle($hIndPflWnd, "", $idFirstName) ControlSetText($hIndPflWnd, "", $idFirstName, "Krick4et", 0) Sleep(100) ControlFocus($hIndPflWnd, "", $idFirstName) Sleep(100) _GUICtrlEdit_SetSel($hFirstName, 0, -1) Sleep(2999) ControlSend($hIndPflWnd, "", $idFirstName, "{RIGHT}{TAB}") ; First Name - End ; Language - Start $idLanguage = "[CLASS:TFidProfileDropDownComboLanguage; INSTANCE:1]" ; Get Language ComboBox handle $hLanguage_cbx = ControlGetHandle($hIndPflWnd, "", $idLanguage) ; Select the desired langauge for cbx _GUICtrlComboBox_SelectString($hLanguage_cbx, "German") ; Activate Address Greeting cbx with DOWN, UP ControlSend($hIndPflWnd, "", $idLanguage, "{DOWN}{UP}") ; Language - End ; Address Greeting - Start Sleep(100) $idAddGreeting = "[CLASS:TFidProfileDropDownComboAddressGreeting; INSTANCE:1]" ; Select Address Greeting cbx with DOWN depending on gender ControlSend($hIndPflWnd, "", $idAddGreeting, "{DOWN 2}") Sleep(100) ; MsgBox($MB_OK, "", $dReturn) ; Address Greeting - End ; Birthday - Start $idDate = "[CLASS:TFidProfileDropDownDay; INSTANCE:1]" ; Day $hDate_cbx = ControlGetHandle($hIndPflWnd, "", $idDate) ControlSend($hIndPflWnd, "", $idDate, "{DELETE}16") ; ControlSend($hIndPflWnd, "", $idDate, "{DOWN 16}") ; ControlSend($hIndPflWnd, "", $idDate, "16") Exit ; Month $idDate = "[CLASS:TFidProfileDropDownMonth; INSTANCE:1]" ControlFocus($hIndPflWnd, "", $idDate) ControlSetText($hIndPflWnd, "", $idDate, "") ControlSend($hIndPflWnd, "", $idDate, "06{DOWN}{UP}", 0) ;~ ControlSend($hIndPflWnd, "", $idDate, "{DOWN 6}") ;~ ControlSend($hIndPflWnd, "", $idDate, "{TAB}") ; Year $idDate = "[CLASS:TFidProfileMaskEditYear; INSTANCE:1]" $dReturn = ControlSetText($hIndPflWnd, "", $idDate, "") ControlSend($hIndPflWnd, "", $idDate, "2019") ; Birthday - End ; Gender - Start $idGender = "" $sGender = "M" Switch $sGender Case "M" $idGender = "[CLASS:TFidProfileCheckBoxMale; INSTANCE:1]" Case "F" $idGender = "[CLASS:TFidProfileCheckBoxFemale; INSTANCE:1]" Case Else $idGender = "[CLASS:TFidProfileCheckBoxMale; INSTANCE:1]" EndSwitch ControlCommand($hIndPflWnd, "", _ $idGender, "Check", "") ; Gender - End Exit ; Nationality - Start ; Get Nationality ComboBox handle $hNationality_cbx = ControlGetHandle($hIndPflWnd, "", _ "[CLASS:TFidProfileDropDownNationality; INSTANCE:1]") ; Select the desired Nationality for cbx _GUICtrlComboBox_SelectString($hNationality_cbx, "BG") ; Nationality - End ; More Fields - Start $hPageControl = ControlGetHandle($hIndPflWnd, "", _ "[CLASS:TPageControl; INSTANCE:1]") _GUICtrlTab_ClickTab($hPageControl, 1) ; More Fields - End