Jump to content

Combobox Item Selection Not working


Recommended Posts

@ShrutiW
You should play a little bit with _GUIComboBox_* functions.
In that way, you can see how much further you can go with those, since they are the only ones that seems to work*
*Another possible solution could be use UI Automation, but let it be the "last" resource to use :)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

@FrancescoDiMuro   I have worked on some combobox functions and tried the following code. Still it's not working. 😫

If IsHWnd($hdlComboBox) Then
If ControlCommand("CSR Team Information","",$hdlComboBox,"FindString",'Open Work Items : 000000061 | Green Bay/CCP IT Team/CCP IT Support Team') Then
        ControlCommand("CSR Team Information", "", $hdlComboBox, 'SelectString', 'Open Work Items : 000000061 | Green Bay/CCP IT Team/CCP IT Support Team')
        MsgBox($MB_ICONINFORMATION, "", "The ComboBox item has been set.")
    Else
        MsgBox($MB_ICONERROR, "", "Error during the setting of the ComboBox item.")
    EndIf
Else
    MsgBox($MB_ICONERROR, "", "Cannot obtain the handle of the ComboBox control." & @CRLF & "Error: " & @error)
 EndIf

 

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...