随机选择下拉菜单imacros [英] Random select drop down menu imacros

查看:972
本文介绍了随机选择下拉菜单imacros的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是当前的脚本。

我正在试图找出如何在iMacros中随机选择一个下拉菜单。 >

  TAG POS = 1 TYPE = SELECT FORM = ACTION:/ es / crear-tu-blog / ATTR = NAME:domain CONTENT = $ activos -blog.net 

这个下拉菜单有30种替代方法我想让它选择一个随机的选择。我可以这样做吗?

解决方案

您可以选择这样的下拉菜单。



这是当前脚本。

  TAG POS = 1 TYPE = SELECT FORM = ACTION:/ es / crear-tu-blog / ATTR = NAME:domain CONTENT =#5 

在某些情况下,我看到%5 所以我不确定它是否数字前。在这种情况下,数字5只是一个例子。



这是iMacros上说的内容。



a href =http://wiki.imacros.net/TAG =nofollow noreferrer> http://wiki.imacros.net/TAG



向下滚动到下拉菜单的下方。



下一步是使用JavaScript创建随机数。在下面的链接中,您可以获得此目的的功能。



在特定范围内生成JavaScript中的随机整数



在掌握了下一步是在iMacros中实现它。你必须使用JavaScript脚本。

  var macro; 

宏=CODE:;
宏+ =TAG POS = 1 TYPE = SELECT FORM = ACTION:/ es / crear-tu-blog / ATTR = NAME:domain CONTENT =#{{number}}


iimSet(number,some_random_number)
iimPlay(宏)


I am trying to figure out how to randomized a drop down menu in iMacros.

This is the current script.

TAG POS=1 TYPE=SELECT FORM=ACTION:/es/crear-tu-blog/ ATTR=NAME:domain CONTENT=$activos-blog.net

There are like 30 alternative for this drop down menu, I want to make it select a random alternative. How can i do this?.

解决方案

You can select the drop down menu like this.

This is the current script.

TAG POS=1 TYPE=SELECT FORM=ACTION:/es/crear-tu-blog/ ATTR=NAME:domain CONTENT=#5

In some cases i saw %5 so I am not sure is it % or # before the number. The number 5 in this case is just an example.

Here is what it says on iMacros.

http://wiki.imacros.net/TAG

Scroll down to where it says drop down menu.

The next step is to create random number with use of JavaScript. On the link bellow you can get the functions for that purpose.

Generating random whole numbers in JavaScript in a specific range?

After you've mastered that the next step is to implement it in iMacros. You have to use JavaScript scripting.

var macro;

macro ="CODE:";
macro +="TAG POS=1 TYPE=SELECT FORM=ACTION:/es/crear-tu-blog/ ATTR=NAME:domain CONTENT=#{{number}}";


iimSet("number",some_random_number)
iimPlay(macro)

这篇关于随机选择下拉菜单imacros的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆