Jump to content

Select an item from a listbox - newbie

Recommended Posts

Please be gentle, I am new to this.

I am trying to automate the installation of a vendors application that can not be installed silently in the usual way (msi etc) so I am using AutoIT for the first time.

I have managed to use the AutoIT Windows Info to get most of the information I require when the answer is mainly next, Yes, enter etc.

However I am now stuck. I need to highlight an item on a list (AutoIT Windows info tells me it's a ListBox) but I can't find the correct function in order to do this. It seems to have sprung from really simple to really complicated.

Could anyone explain how to do this is really simple terms?

Please and thank you.

Link to post
Share on other sites
  • Moderators

@Kirky welcome to the forum. Can you please post the information from the Window Info Tool for the listbox? I am guessing it will be a  combination of ControlGetHandle and _GUICtrlListBox_ClickItem, but the window info tool will help immensely.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

I'm really sorry to sound stupid but scripting is new to me and so even though you have kindly given me some pointers jdelaney I still can't work out what to do!!!

Please could you possibly write what you have suggested in to a small script which shows me how to use the functions you suggested and I can then replace the values with those that are relevant to my project?

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...