First I had a little problem when writing the text, then I saw that it was fixed with () but the% A_ScriptDir% of text I would like it to be written literally, try with "%", (%), {%} but it doesn't work
- how to write %A_ScriptDir% literally in text
- as I could do so that when it is run again it does not add text, but rather creates a New AutoHotkey Script (2).ahk, New AutoHotkey Script (3).ahk, etc ...
- as I could use reload, pause, suspend or close in a script for a different script.
Code: Select all
FileAppend,
(
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.`n; #Warn ; Enable warnings to assist with detecting common errors.`nSendMode Input ; Recommended for new scripts due to its superior speed and reliability.`nSetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.`n
), %A_ScriptDir%\Nuevo AutoHotkey Script.ahk