The problem is that the main script is used by two computers which only desktop has access to the subscript file. If the main script is executed in laptop it generates an error (target label does not exist) and the script is not loaded.
What would you suggest as a solution? This is what I came up with but it doesn’t work. I guess # statements cannot be nested:
Code: Select all
#If (Desktop = 1)
#Include *i SubScript.ahk
#If
Code: Select all
#If (Desktop = 1)
Subroutine:
#Include *i SubScript.ahk
#If