我正在嘗試使用 Windows Batch 在 Premiere 中運行 Adob??e 腳本。
這可能嗎?
uj5u.com熱心網友回復:
我對此一無所知,所以我破解了自己的解決方案。
您需要使用 Windows Batch 來:
- 運行首映
@echo off
Start "" "enter path for premiere.exe here"
然后我按照本教程進行操作:
https://syntaxfix.com/question/16342/press-keyboard-keys-using-a-batch-file
在這里我添加了
TIMEOUT /T 7
要等待首映打開,
然后
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 shift A 來定義目標引擎,按 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://www.uj5u.com/qiye/475543.html
