I need to call an AutoHotkey script that will return a value.
For example, something like this:
return_val = Shell("AutoHotKey.exe script.ahk")
My script looks like this:
IfExists, filename
return 1
Else
return 0
I get an error telling me I can't have a value in the terminating return statement. I have also tried using the Exit statement instead of return.
How can I return a value from an AutoHotkey script?