Code: Select all
Gui, Add, Combobox, vgroup r3, Texas|New York|London
Gui, Add, Combobox, x+10 vcombo r3, Pending|Completed|Rejected
Gui, Add, Button, x+15 gSubmit, Submit
Gui, Add, ListView, x5 y+5 r20 w330 h148 Grid -Multi +AltSubmit vMyListView, FileName|Group|Status
LV_ModifyCol()
Gui, Show, Autosize
return
Submit:
Gui, submit, nohide
entry=%group%;%combo%
FileAppend,
(
%entry%`r`n
), %A_ScriptDir%\%group%%combo%%A_MSec%.csv
Sleep, 1000
Gui, Listview, MyListView
loop, %A_ScriptDir%\*.*csv
LV_Delete() ; Clear the ListView, but keep icon cache intact for simplicity.
GuiControl, -Redraw, MyListView ; Improve performance by disabling redrawing during load.
Loop %A_ScriptDir%\*.*csv
{
LV_Add("", A_LoopFileName, group, combo)
}
GuiControl, +Redraw, MyListView ; Re-enable redrawing (it was disabled above).
LV_ModifyCol()
return