Jump to content
Sign in to follow this  

How do I select items in ListBox

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

Share this post

Link to post
Share on other sites

Have the same problem (Control functions doesn't work well with it, though no Autoit error reported) with this control class CLASS:WindowsForms10.LISTBOX.app.0.378734a.

blender, have you found an answer?

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.