Hello, I would like to know if there is a way to set a variable in another script?
Example: I have a main script running, and want to run another script to do a task for the main script, I run that script from the main script, then want to set a variable to it.
Coding example for "Main Script":
Code:
Run,DRIVE:\DIR\Script.ahk
ThatScript.Variable = Value
Is there any way to do something like this in AutoHotKey?
I have already searched this board for help on this, and it returns too many results that are not what I am looking for.
I know of ways that I could do this, but it would be slow/possibly inaccurate. (Like writing to a temporary text file and having the script ran by the main script read it after the main script writes it to the text file before running the secondary script.)