I am having a trouble with understanding how this is suppose to work, because such test fusing structure of that file of mine that sprung this topic with your solution
Code: Select all
Name_Of_The_Temporary_File := "Exceeding_DCG_Length_Limitation_Test.ahk"
FileRecycle, %Name_Of_The_Temporary_File%
Code_For_The_Temporary_File =
(
1::a
; All continuation sections except the last one need a blank line at the end
), %Code_For_The_Temporary_File%, %Name_Of_The_Temporary_File%, UTF-8
FileAppend,
(
2::b
; All continuation sections except the last one need a blank line at the end
), %Code_For_The_Temporary_File%, %Name_Of_The_Temporary_File%, UTF-8
FileAppend,
(
3::c
q::ExitApp
), %Code_For_The_Temporary_File%, %Name_Of_The_Temporary_File%, UTF-8
FileAppend, %Code_For_The_Temporary_File%, *%Name_Of_The_Temporary_File%, UTF-8
Run, %Name_Of_The_Temporary_File%
creates
Exceeding_DCG_Length_Limitation_Test.ahk file with content
Code: Select all
1::a
; All continuation sections except the last one need a blank line at the end
, , Exceeding_DCG_Length_Limitation_Test.ahk, UTF-8
instead of expected by me
Code: Select all
1::a
; All continuation sections except the last one need a blank line at their end
2::b
; All continuation sections except the last one need a blank line at their end
3::c
q::ExitApp