Code: Select all
Fileread, List, %A_ScriptDir%\My List.txt
Sort, List
Gui, Add, Button, x425 y2 w40 h30 , Write
Gui +Delimiter`n
Gui, Add, combobox, x10 y36 w500 h200 vVar, %list%
Gui, Add, Text, x10 y3 w300 h30 , Select one of the file names from the dropdown list. Then press "Write" to paste clipboard contents to a new or
existing text file.
Gui, Show, AutoSize, ASR Field Information
Return
ButtonWrite:
gui, submit, nohide
sleep 100
StringReplace, var, var, `r`n, , All
sleep 100
msgbox Text file will be named: %VAR%.txt
FILEAPPEND,
(
%clipboard%
), %A_ScriptDir%\%var%.txt
sleep 1000
;run %A_ScriptDir%\%var%.txt
return