Jump to content

How do I select items in ListBox


blender
 Share

Recommended Posts

Hi, all

I am new to autoit. I am using Watir with autoitx3 implemented in it. I am trying to select items from a listbox.

my code for that is:

@autoit.ControlCommand("Manager", "","[CLASS:WindowsForms10.LISTBOX.app.0.378734a;INSTANCE:2]", "SelectString", 'Project1')

the function returns 1, but it doesn't seem to work cuz no item is selected in the listbox.

I also tried ControlListView, but it keeps telling me i have invalid number of parameters for that function even tho I checked so many times that I have correct number of parameters according to the autoit function reference.

Anyone can help me with this please?

Edited by blender
Link to comment
Share on other sites

  • 1 year later...

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