Jump to content

ControlClick Function not work after set text at dropdown box


Recommended Posts

Hi all,

I new for Autoit.  Below is my code. It all work fine but after set text at drop down box function controlclick not work(No click on button). Please help me to solve this problem. Thanks

if(WinWaitActive("Clotho -- Next Generation Avago WSD ATE Framework", "", 40)) then
   ControlSetText("Clotho -- Next Generation Avago WSD ATE Framework", "", "[NAME:textboxUserName]", $User)
   ControlClick("Clotho -- Next Generation Avago WSD ATE Framework", "", "[NAME:buttonLogin]")

   Do
   until WinWait ("Clotho -- Next Generation Avago WSD ATE Framework")
   WinActivate("Clotho -- Next Generation Avago WSD ATE Framework")
  ControlClick("Clotho -- Next Generation Avago WSD ATE Framework", "", "[Name:comboBoxPackage]")
  While 1
    Send("{DOWN}")
    $ctext=ControlGetText("Clotho -- Next Generation Avago WSD ATE Framework","","[Name:comboBoxPackage]")
    If $ctext= $Product Then
       ControlClick("Clotho -- Next Generation Avago WSD ATE Framework", "", "[Name:comboBoxPackage]")
       WinActivate("Clotho -- Next Generation Avago WSD ATE Framework")
       ControlClick("Clotho -- Next Generation Avago WSD ATE Framework", "", "[Name:buttonExecutionStart]")
       ExitLoop
    EndIf
 WEnd
 EndIf

Edited by Rammanan
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

×
×
  • Create New...