How to get texts in ListBox using AutoIt
Posted
by Carlos_Liu
on Stack Overflow
See other posts from Stack Overflow
or by Carlos_Liu
Published on 2010-05-04T05:23:54Z
Indexed on
2010/05/04
5:28 UTC
Read the original article
Hit count: 706
autoit
I am using Autoit to create an auto-install app. There is an dialog which contains a ListBox control, and in the listbox there are some choices for user (the detailed choices depends on user's machine, for some users there maybe only one choice, for some users there may be 3 choices etc), so I want to get the texts in the listbox to make the decision. I have tried the following code but it did not work
; 2223 is the ID of listbox
$txt = ControlGetText("Select Web Site", "", "[ID:2223]")
Msgbox(0, "", $txt)
after execution the $txt is null
So what should I do to get the texts in Listbox?
© Stack Overflow or respective owner