首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用Windows运行.jsx文件

使用Windows运行.jsx文件
EN

Stack Overflow用户
提问于 2022-05-13 12:14:55
回答 1查看 72关注 0票数 0

我试图使用Windows批处理在Premiere中运行Adobe脚本。

这有可能吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-05-13 15:32:13

我什么也没发现所以我黑了我自己的解决方案。

您需要使用Windows批处理来:

-Run Premiere

代码语言:javascript
运行
复制
@echo off
Start "" "enter path for premiere.exe here" 

然后我跟踪了这个:Press Keyboard keys using a batch file

我在这里加了

代码语言:javascript
运行
复制
TIMEOUT /T 7

等待Premiere的开启,

然后

代码语言:javascript
运行
复制
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完成的

代码语言:javascript
运行
复制
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));
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72229450

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档