When running the script on boot via Task Scheduler, #Include user_config.ahk returns an error indicating the file could not be opened. Running the script on boot via Task Scheduler is likely changing the working directory where #Include searches for the file to import. Additionally, SetWorkingDir %A_ScriptDir% does not fix it since #Includes are processed before a script executes.
When running the script on boot via Task Scheduler,
#Include user_config.ahk
returns an error indicating the file could not be opened. Running the script on boot via Task Scheduler is likely changing the working directory where#Include
searches for the file to import. Additionally,SetWorkingDir %A_ScriptDir%
does not fix it since#Include
s are processed before a script executes.