Edit ahk file from within GUI Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
RyanAyton
Posts: 45
Joined: 14 Aug 2017, 09:53

Edit ahk file from within GUI

20 Jul 2018, 09:06

Hello all,

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
What I'm trying to do is for the Save option to save the changes made within to the Abb.ahk but it's not working.

Any ideas?
Guest

Re: Edit ahk file from within GUI  Topic is solved

20 Jul 2018, 12:35

you should move vFile like so Gui ReadAbb: Add, edit, w600 h350 vFile, %FileContents%

Return to “Ask For Help”

Who is online

Users browsing this forum: blad4, dping28, Hellbent, vvhitevvizard, xaireh, Xtra and 45 guests