Calling an action to run a certain amount of times
Written by: webDOMinator 1 year and 9 months ago
This script will start automation on an action we call "Random Action" (this action would be represented as a button in the action toolbox). It is set up to do the automated action from 2 to 5 times.
Code
#nameQuick Reference for "#name"
Click on command to see examples & comments
Script Level Commands
Usage: #name:text
Description: Sets the name of the script to text. This is a setting used for using scripts in the Action Toolbox. The name is used as a main handle to call the action by. It's used as the caption on the Button the script is placed on in the Toolbox. It's also used when calling the action in script using the "doaction" command.:Action Control
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./Randomize 2 to 5 actions
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:a=1
randomizeQuick Reference for "randomize"
Click on command to see examples & comments
Script Level Commands
Usage: randomize:lowbound;highbound:variable
Description: Randomizes the value of an existing global or local variable to a random number between lowbound and highbound:2:5:var.a
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./Custom Action Automation on the Random Action script for (var.a) times
ca_allQuick Reference for "ca_all"
Click on command to see examples & comments
Program Level Commands
Usage: ca_all:action-name[:limits]
Description: Starts the automation process of running a Custom Action (CA) which is currently loaded in the Action Toolbox and is a "List based action". The action-name is the identifier used on the button for that action in the action toolbox. The limits can be either just one number which represents the number of people from the list to perform the action on, or if a ";" is used like: ca_all:Auto-Subscribe:5;30 then webDOM will peform the Auto-Subscribe action on users 5 through 30 from the information list.:Random Action:var.a
If there was an action in the action toolbox called "Random Action", it would be run (var.a) times. var.a holds the actual number actions that will be automated.
This script is a "Schedule Level Script" or a "Control Script" which means that it is not to be automated itself, but to be clicked once as a button, or scheduled to run at a specific time. It controls the automation process from a higher level than each action that makes up the automation. It's like configuring what automation you want to do, and how many times, then starting automation.