Code: Select all
fileread, contents, g:\List1.txt
if not errorlevel
{
sort, contents, c cl u,
filedelete, g:\List1.txt
fileappend, %contents%, g:\List1.txt
contents := ""
}
Code: Select all
fileread, contents, g:\List1.txt
if not errorlevel
{
sort, contents, c cl u,
filedelete, g:\List1.txt
fileappend, %contents%, g:\List1.txt
contents := ""
}
How would I go about implementing this in my own script? I want my script to reload every time it detects a change in List1.txt and ignore all other files in said directory.
Code: Select all
AutoHotkey.exe /force 2.ahk #NoTrayIcon