0
我正在使用Windows 7和Firefox 44.0.2。我正在嘗試使用iMacros在Tumblr上安排一些帖子。當iMacros創建一個帖子時,它添加一個圖像,我想用html編寫一些代碼。比方說:iMacros不會在Tumblr中寫入標題(HTML)和標籤
<div>abcd</div>
但既不在標題也不在標籤(如果我想寫「測試」)任何出現。
這是我的代碼
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=I ATTR=CLASS:icon_post_photo&&TXT:
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:photo CONTENT=E:\myDirectory\img.jpg
TAG POS=1 TYPE=BUTTON ATTR=DATA-JS-CLICKABLEPOSTSETTINGSCOG:&&CLASS:post-settings&&TXT:
TAG POS=1 TYPE=SELECT ATTR=ID:editorType CONTENT=%html
TAG POS=1 TYPE=DIV ATTR=CLASS:ace_content&&TXT:
TAG POS=1 TYPE=TEXTAREA ATTR=WRAP:off&&CLASS:ace_text-input&&SPELLCHECK:false&&ARIA-LABEL:HTML<SP>content&&TXT: CONTENT=<div>abcd</div>
TAG POS=3 TYPE=DIV ATTR=TXT:#tags
TAG POS=3 TYPE=DIV ATTR=TXT:test
TAG POS=5 TYPE=DIV ATTR=TXT:test
什麼coould問題?
* UPDATE * 答案繼舒加提供here,我插入的代碼,現在我可以讓iMacros的書寫文本的標題和alt標籤,但如果我做iMacros的變化轉換成html它不會寫在它的代碼。在這裏:
TAB T=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Photo
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:photo CONTENT=E:\myDirectory\img.jpg
' here i ask iMacros to change open html instead of plain text caption
TAG POS=1 TYPE=BUTTON ATTR=DATA-JS-CLICKABLEPOSTSETTINGSCOG:&&CLASS:post-settings&&TXT:
TAG POS=1 TYPE=SELECT ATTR=ID:editorType CONTENT=%html
' wait to load the image
WAIT SECONDS=10
' caption
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV>P" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS="<div>abdcdsa</div>"
WAIT SECONDS=0.5
' tag #1
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="my tag1"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS=""
WAIT SECONDS=0.5
' tag #2
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV>DIV>DIV>DIV" CHARS="my tag2"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV>DIV" CHARS=""
WAIT SECONDS=0.5
' tags etc.
' ...
*更新2 * 後試圖通過舒加此給出的代碼是什麼我有,但它在線11 stucks並保持裝載永遠:
eTAB T=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Photo
TAG POS=1 TYPE=INPUT:FILE ATTR=NAME:photo CONTENT=C:mydirectory\sample.jpg
' here i ask iMacros to change open html instead of plain text caption
TAG POS=1 TYPE=BUTTON ATTR=DATA-JS-CLICKABLEPOSTSETTINGSCOG:&&CLASS:post-settings&&TXT:
TAG POS=1 TYPE=SELECT ATTR=ID:editorType CONTENT=%html
' wait to load the image
WAIT SECONDS=10
' caption '
TAG POS=1 TYPE=BUTTON ATTR=DATA-JS-CLICKABLEPOSTSETTINGSCOG:&&CLASS:post-settings&&TXT:
TAG POS=1 TYPE=SELECT ATTR=ID:editorType CONTENT=%html
EVENT TYPE=CLICK SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>DIV:nth-of-type(3)>DIV" BUTTON=0
SET !ERRORIGNORE YES
URL GOTO=javascript:alert();
SET !ERRORIGNORE NO
SET captionHtml "<div>caption text</div>"
EVENTS TYPE=KEYPRESS SELECTOR="#new_post_buttons>DIV:nth-of-type(4)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>DIV:nth-of-type(2)>DIV>DIV>TEXTAREA" CHARS={{captionHtml}}e
嘗試使用實驗記錄。 「老派」錄製工作在一些HTML標籤上。 – macroscripts
謝謝,但我該怎麼做? –
在錄製選項中嘗試實驗錄製。 http://prntscr.com/a3603q – macroscripts