使用Imacro在CKEditor中进行写入

时间:2019-01-27 14:00:43

标签: ckeditor imacros

我正在尝试编写一个脚本,该脚本会自动在ckeditor中写入相同的内容,然后按发布按钮,我使用了事件模式,它运行平稳,但是不会按发布按钮。

这是我的代码:

TAB T=1
TAB CLOSEALLOTHERS
'SET !PLAYBACKDELAY 0.00
URL GOTO=*link*
FRAME F=1
EVENT TYPE=MOUSEDOWN SELECTOR="HTML>BODY" BUTTON=0
FRAME F=0
EVENT TYPE=MOUSEMOVE SELECTOR="HTML>BODY>DIV:nth-of-type(2)>DIV:nth-of-type(4)>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(7)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>FORM>SPAN>SPAN:nth-of-type(2)>SPAN>TABLE>TBODY>TR>TD>DIV>SPAN:nth-of-type(2)" POINT="(236,411)"
EVENT TYPE=MOUSEUP SELECTOR="HTML>BODY>DIV:nth-of-type(2)>DIV:nth-of-type(4)>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(7)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>FORM>SPAN>SPAN:nth-of-type(2)>SPAN>TABLE>TBODY>TR>TD>DIV>SPAN:nth-of-type(2)" POINT="(236,411)"
FRAME F=1
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY" CHARS="wish me luck"
FRAME F=0
EVENT TYPE=MOUSEDOWN SELECTOR="HTML>BODY>DIV:nth-of-type(2)>DIV:nth-of-type(4)>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(7)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>FORM>FIELDSET>INPUT" BUTTON=0
EVENT TYPE=MOUSEUP SELECTOR="HTML>BODY>DIV:nth-of-type(2)>DIV:nth-of-type(4)>DIV>DIV:nth-of-type(3)>DIV:nth-of-type(7)>DIV>DIV>DIV:nth-of-type(2)>DIV>DIV>FORM>FIELDSET>INPUT" POINT="(1464,487)"

发布按钮代码为: <input type="submit" name="submit" class="input_submit" value="Post" tabindex="50" accesskey="s" id="submit_post" style="">

0 个答案:

没有答案