So basically I have a button within my program that brings up a gui with a giant edit field. In that edit field are the contents of a text file. Currently it works, but when you open the GUI, all of the text is highlighted. None of my other edit fields that I load variables into have this issue, but this is the only one that has FileRead. Anyone know how I can stop AHK from highlighting the full text in the edit field?
Code: Select all
ListOfHostrings:
Gui, 30: Destroy
FileRead, HotstringList, %A_Desktop%\Hotstring List.txt
Gui, 30:Add, Edit, w550 h500 ReadOnly, %HotstringList%
Gui, 30:Color, White
Gui, 30:Show, x270 y5 Autosize, List of Acronyms and Functions
return
Thanks!!