根据传入的窗口标题、提示信息(题干)、列表(选项)生成一个带ListBox的窗口(向导界面)。
AHK v1代码
if(A_ScriptFullPath=A_LineFile)
MsgBox % ListBox("窗口标题", "这是一个生成listbox的Demo", "a|b|c|d|",3)
return
;-------------------------------------------------------------------------------
ListBox(Title := "", Prompt := "", List := "", Select := 0) {
;-------------------------------------------------------------------------------
; show a custom input box with a ListBox control
; return the text of the selected item
;
; Title is the title for the GUI
; Prompt is the text to display
; List is a pipe delimited list of choices
; Select (if present) is the index of the preselected item
;------------------------------------