How to pass command-line arguments to PMC script?
Posted: 13 Apr 2021, 15:02
I run my Macro Creator PMC scripts from Windows Scheduler or command prompt like below:
"C:\Program Files\MacroCreator\MacroCreator.exe" "my.pmc" -s1
I like to pass some arguments like
"C:\Program Files\MacroCreator\MacroCreator.exe" "my.pmc" -s1 arg1 arg2
and then access the arguments in the script. I know it is possible to do so from AHK script (see https://superuser.com/questions/1401680/how-to-pass-command-line-arguments-to-ahk-script). I would like to know how to do the same from a PMC script.
"C:\Program Files\MacroCreator\MacroCreator.exe" "my.pmc" -s1
I like to pass some arguments like
"C:\Program Files\MacroCreator\MacroCreator.exe" "my.pmc" -s1 arg1 arg2
and then access the arguments in the script. I know it is possible to do so from AHK script (see https://superuser.com/questions/1401680/how-to-pass-command-line-arguments-to-ahk-script). I would like to know how to do the same from a PMC script.