【发布时间】:2022-01-03 02:21:08
【问题描述】:
规格:
Firefox 38.0.6, imacros 8.9.7, Windows 10 64-bit OS
我的脚本做了什么:
我在此处指定的代码是在 YouTube 上添加评论的部分 视频。
问题:
我正在尝试将 cmets 输入为行,所以一列 来自评论文本文件将添加到每个视频。我遇到了一个问题 该脚本只输入第一列,而不输入评论框内的其他列 YouTube 视频。
有人可以帮我吗?
var Comment = "";
Comment += "CODE:" + "\n";
Comment += "SET !ERRORIGNORE YES" + "\n";
Comment += "SET !TIMEOUT_PAGE 5" + "\n";
Comment += "SET !TIMEOUT_STEP 0" + "\n";
Comment += "SET !DATASOURCE Comments.txt" + "\n";
Comment += "SET !DATASOURCE_COLUMNS 1" + "\n";
Comment += "SET !ERRORIGNORE YES" + "\n";
Comment += "SET !LOOP 1" + "\n";
Comment += "SET !DATASOURCE_LINE {{!LOOP}}" + "\n";
Comment += "WAIT SECONDS=1" + "\n";
Comment += "EVENT TYPE=CLICK SELECTOR=\"#contenteditable-root\" BUTTON=0" + "\n";
Comment += "EVENTS TYPE=KEYPRESS SELECTOR=\"#contenteditable-root\" CHARS={{!COL1}}" + "\n";
Comment += "WAIT SECONDS=2" + "\n";
Comment += "TAG POS=3 TYPE=TP-YT-PAPER-BUTTON ATTR=ID:button" + "\n";
Comment += "WAIT SECONDS=3" + "\n";
【问题讨论】:
标签: javascript firefox youtube imacros