Set List Position

From UBot Studio
Revision as of 20:02, 22 March 2013 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Set List Position is a Data Command. Please see the $next list item function for additional examples.

This command sets the position of a list which is used by $next list item. This command allows you to re-use a list by re-setting the position back to 0 (or any position you desire).


Example

navigate("http://www.fruitsinfo.com/tropical-fruits.php", "Wait")
add list to list(%one, $scrape attribute(<href=w"http://www.fruitsinfo.com/*.php">, "innertext"), "Delete", "Global")
navigate("http://www.google.com/", "Wait")
set list position(%one, 7)
type text(<name="q">, $next list item(%one), "Standard")


The script above sets the list position to 7. That means that the next list item function will start from list position 7 and increment from there.

File:Setlistpo.png

Running the type text command will first type the list item in list position 7, and then increment from that list position each time you run the type text command.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox