From af6a4b291eae0e47734666fe52849b728207da9f Mon Sep 17 00:00:00 2001 From: Nayan Sawyer <33187059+opus-tango@users.noreply.github.com> Date: Thu, 2 Apr 2026 20:52:29 -0400 Subject: [PATCH] script to run the macros from macro deck --- tfc-forge-macro/run.vbs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tfc-forge-macro/run.vbs diff --git a/tfc-forge-macro/run.vbs b/tfc-forge-macro/run.vbs new file mode 100644 index 0000000..d5c5439 --- /dev/null +++ b/tfc-forge-macro/run.vbs @@ -0,0 +1,19 @@ +Set sh = CreateObject("WScript.Shell") +Set fso = CreateObject("Scripting.FileSystemObject") +sh.CurrentDirectory = fso.GetParentFolderName(WScript.ScriptFullName) + +Function QuoteForCmd(s) + QuoteForCmd = """" & Replace(s, """", """""") & """" +End Function + +Dim extra, i +extra = "" +For i = 0 To WScript.Arguments.Count - 1 + If Len(extra) > 0 Then extra = extra & " " + extra = extra & QuoteForCmd(WScript.Arguments(i)) +Next + +Dim cmdLine +cmdLine = "cmd /c uv run main.py" +If Len(extra) > 0 Then cmdLine = cmdLine & " " & extra +sh.Run cmdLine, 0, False