Jump to content

Recommended Posts

Posted

Hi I'm trying to run through a combo box and had a search on google but couldn't find too much and thought maybe it's just best to post here.


So I want to do the below

Local $hWnd1 = WinWait("[CLASS:ProFrame]", "", 10)

ControlClick($hWnd1, "", "ComboBox1")
  While 1
    Send("{DOWN}")
    $ctext=ControlGetText("Find Case","","ComboBox1")
    If $ctext="Elite Matter Number (Elite Matter Screen)" Then
        ExitLoop
    EndIf
  WEnd

And this is the autoit window. At the moment it just crashes my application

 

 

Capture.PNG

Posted

Right so it would be this?

 

Local $hWnd1 = WinWait("[CLASS:ProFrame]", "", 10)
$hComBo=ControlGetHandle($hWnd1, "", "ComboBox1")



Sleep(1000)
_GUICtrlComboBox_SetCurSel($hComBo, 2)

I'm getting this in the console at the moment 

 

"C:\Automation_Solcase\Tests\Test3_AddressBook_Agenda_History_BWLS.au3" (23) : ==> Unknown function name.:
_GUICtrlComboBox_SetCurSel($hComBo, 2)
^ ERROR

 

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
×
×
  • Create New...