the variables/objects being referenced are predefined in the AHK script being called via command line.
.\Shift_IN.Ahk "$Start-5"
.\Shift_OUT.Ahk "$End+5"
A condensed example of a script I would call is:
Code: Select all
; A_args[1] := "$Start-5" ;An example of an incoming string
Input := StrReplace(Parameters[1],"$",,null) ;Remove the "$" symbol, last parameters seems to be mandatory, I gave it null
Start := 25 ;<---- minus 5 this variable
Current := 7
End := 50
NewStartFrameIs := % %input% ;<---- I am assuming that I placed "start-5" here
MsgBox, % "NewStartFrameIs: " NewStartFrameIs ;NewStartFrameIs's value should be 20
Code: Select all
ERROR :---> NewStartFrameIs := % %input% ... contains an illegal character:
How can I get AHK to think the % %input% is an expression I want it to perform and not a string?
Any help would be greatly appreciated!