如何在iMacros中使用阵列循环?

时间:2018-10-05 19:45:04

标签: imacros

VERSION BUILD=1005 RECORDER=CR
SET !ERRORIGNORE YES

URL GOTO=https://api.whatsapp.com/send?phone=923002021392&text=Great%20Offer%20For%20Karachites!%20Get%20a%20Free%20Squishy%20StressBall%20By%20Just%20Paying%20Rs%20200%20Delivery.%20Get%20your%20free%20Ball%20at:%20http://netlify.com/%20Have%20fun.

TAG POS=1 TYPE=A ATTR=TXT:Send
WAIT SECONDS=10

TAG POS=1 TYPE=SPAN ATTR=DATA-ICON:send&&CLASS:

URL GOTO=https://api.whatsapp.com/send?phone=923002021397&text=Great%20Offer%20For%20Karachites!%20Get%20a%20Free%20Squishy%20StressBall%20By%20Just%20Paying%20Rs%20200%20Delivery.%20Get%20your%20free%20Ball%20at:%20http://netlify.com/%20Have%20fun.
TAG POS=1 TYPE=A ATTR=TXT:Send

WAIT SECONDS=10

TAG POS=1 TYPE=SPAN ATTR=DATA-ICON:send&&CLASS:

URL GOTO=https://api.whatsapp.com/send?phone=923002025509&text=Great%20Offer%20For%20Karachites!%20Get%20a%20Free%20Squishy%20StressBall%20By%20Just%20Paying%20Rs%20200%20Delivery.%20Get%20your%20free%20Ball%20at:%20http://netlify.com/%20Have%20fun.
TAG POS=1 TYPE=A ATTR=TXT:Send

WAIT SECONDS=10

我有一个1000个数字的列表,并且我不能添加超过50行,如何使用数组或循环? 如您所见,该链接具有不同的电话号码,我希望这些号码来自Array或txt文件。

1 个答案:

答案 0 :(得分:1)

您可以尝试以下代码:

SET !VAR1 EVAL("[923002021392, 923002021397, 923002025509][{{!LOOP}} - 1];")
URL GOTO=https://api.whatsapp.com/send?phone={{!VAR1}}&text=Great%20Offer%20For%20Karachites!%20Get%20a%20Free%20Squishy%20StressBall%20By%20Just%20Paying%20Rs%20200%20Delivery.%20Get%20your%20free%20Ball%20at:%20http://netlify.com/%20Have%20fun.
TAG POS=1 TYPE=A ATTR=TXT:Send
WAIT SECONDS=10
TAG POS=1 TYPE=SPAN ATTR=DATA-ICON:send&&CLASS:

重复播放此宏(在循环模式下)。
希望它会有所帮助。