fine with 1.1.26.1 Uni or 1.1.27 Ansi version
I made a following test script.
Code: Select all
#NoEnv
#SingleInstance, Force
SetBatchLines, -1
File := "temp.ahk"
Str := "
(LTrim
#NoEnv
SetBatchLines, -1
ExitApp
)"
StartTime := A_TickCount
IfExist, %File%, FileDelete, %File%
FileAppend, %Str%, %File%, UTF-8
RunWait, %File%
If (!ErrorLevel)
MsgBox, % A_AhkVersion . (A_IsUnicode ? " Uni" : " Ansi") . " on " . A_OSVersion
. "`n`n" . A_TickCount - StartTime . " msec"
ExitApp
https://s10.postimg.org/vxmjurkqh/test.png