I am trying to import data from a text file into a Combo box. But there is a little problem with it.
- Combo box doesn't display Vertical bar, and top of that whatever is after that vertical bar , it add those words into new line
Code: Select all
FileRead , item_list , %A_ScriptDir%\list.txt Loop , parse , item_list , `r,`n item .= A_LoopField . "|" Gui , Add , Combobox, gselected vitem x5 y5 h75 w400 r15 , %item% GuiControl, Choose, item, 1 Gui , Show return GuiClose: ExitApp selected: Gui, submit,nohide sleep 100 clipboard := item Msgbox, %clipboard%
Content of the list.txt ( list is quite bigger that this, which includes numerous math symbols , emoji and other Unicode Characters )
Vertical bar is my fav symbol and I like to use it a lot.
How to solve this problem. My list contains numerous vertical symbols. Please help me with this , my scripts never work .