works perfectly!!! Thank you so much! your code rocks!!!!!!!!!!!!!!!!!feiyue wrote: @alware, Because script runs through named pipes, A_ScriptDir is useless.
You should use dir:=A_WorkingDir to get the used directory of the compiled program.
reload() doesn't work ! any idea?