pmb6tz / windows-desktop-switcher

An AutoHotKey script for Windows that lets a user change virtual desktops by pressing CapsLock + <num>.
MIT License
1.23k stars 230 forks source link

Add script dir prefix to config file import path #36

Closed j0natran closed 5 years ago

j0natran commented 5 years ago

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.

pmb6tz commented 5 years ago

@Elijas looks like you were right!