我试图使用Windows批处理在Premiere中运行Adobe脚本。
这有可能吗?
发布于 2022-05-13 15:32:13
我什么也没发现所以我黑了我自己的解决方案。
您需要使用Windows批处理来:
-Run Premiere
@echo off
Start "" "enter path for premiere.exe here" 然后我跟踪了这个:Press Keyboard keys using a batch file
我在这里加了
TIMEOUT /T 7等待Premiere的开启,
然后
rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript //nologo //E:JScript "%~F0"
rem Start the other program in the same Window
start "" "link for Visual Studio Code" "folder path you want to open" "file path you want to open" 接下来,我使用快捷方式Ctrl来定义目标引擎,然后按premi,然后按F5。我给它一些时间,然后我停止调试。都是通过bash完成的
TIMEOUT /T 2
set /P "=Wait and send a command: " < NUL
ping -n 5 -w 1 127.0.0.1 > NUL
%SendKeys% "^+{A}"
set /P "=Wait and send a command: " < NUL
ping -n 5 -w 1 127.0.0.1 > NUL
%SendKeys% "premi~"
set /P "=Wait and send a command: " < NUL
ping -n 5 -w 1 127.0.0.1 > NUL
%SendKeys% "{F5}"
TIMEOUT /T 5
set /P "=Wait and send a command: " < NUL
ping -n 5 -w 1 127.0.0.1 > NUL
%SendKeys% "+{F5}"
goto :EOF
@end
// JScript section
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));https://stackoverflow.com/questions/72229450
复制相似问题