I have the following gui ahk that loads in the Abb.ahk into the GUI:
Code: Select all
FileRead,FileContents,C:\Users\Administrator\Documents\AutoHotkey\Macro List\Abb.ahk
Gui ReadAbb: Add, edit, w600 h350, %FileContents%, vFile
Gui ReadAbb: Show, w620 h400, Read Abbreviations
Gui ReadAbb: Add, Button, w60 x200 y365 gSaveAbb, Save
Gui ReadAbb: Add, Button, w60 x280 y365 gCnlAbb, Cancel
Return
SaveAbb:
Gui, ReadAbb: Submit
Clipboard = %File%
FileDelete, %A_MyDocuments%\AutoHotkey\Macro List\Abb.ahk
FileAppend, %Clipboard%, %A_MyDocuments%\AutoHotkey\Macro List\Abb.ahk
Gui, ReadAbb: Destroy
Return
CnlAbb:
Return
Any ideas?