Some Examples and Ideas
Written by: webDOMinator 3 years and 4 months ago
Okay, here´s an example of how I would use wd.curinfoQuick Reference for "wd.curinfo"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the value of the currently selected User ID or item from the info list. in custom minion action scripts...
Code
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./Lets say I had user IDs loaded into my information list. I could use the navigate command along with the "^" character to add in the user ID to the URL
navigateQuick Reference for "navigate"
Click on command to see examples & comments
Browser Level Commands
Usage: navigate:url
Description: Makes the browser navigate to the URL specified.:somesite.com/userprofile?userid=^
wd.curinfoQuick Reference for "wd.curinfo"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the value of the currently selected User ID or item from the info list.
Since it´s just the value of whatever is currently selected, you can use it in multiple ways. Imagine if you wanted to check your mail and auto-respond using webDOM. You could set your gather options to gather the message ID´s from your inbox, then use
wd.curinfoQuick Reference for "wd.curinfo"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the value of the currently selected User ID or item from the info list. to represent each message ID so that in your script you could say for example:
Code
navigateQuick Reference for "navigate"
Click on command to see examples & comments
Browser Level Commands
Usage: navigate:url
Description: Makes the browser navigate to the URL specified.:mymailwebsite.com/message/^
wd.curinfoQuick Reference for "wd.curinfo"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the value of the currently selected User ID or item from the info list.
clickQuick Reference for "click"
Click on command to see examples & comments
DOM Level Commands
Usage: click:element
Description: Clicks a DOM element specified by element.:Reply
...
dom.textarea.message.value=
wd.pm.bodyQuick Reference for "wd.pm.body"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the body of the currently loaded message in the PM section.
clickQuick Reference for "click"
Click on command to see examples & comments
DOM Level Commands
Usage: click:element
Description: Clicks a DOM element specified by element.:dom.input.Send Message
Obviously, where you see the "..." you would put your own code to maybe construct a proper reply based off of what was in the person´s message. You could take the above code even further and make it so that you only gather messages of a certain type. For instance, I could make webDOM search for unread messages of a certain type, and then search in the message body of each message and then choose a proper response from some set messages, adding logic into your autoresponder.
The inclusion of
wd.curinfoQuick Reference for "wd.curinfo"
Click on command to see examples & comments
WebDOM Program Variables
Description: Returns the value of the currently selected User ID or item from the info list. in any script loaded into the action list makes that action available from the "Custom Action" automation button´s right-click menu. After setting this you can just click the yellow custom action button and then webDOM will start going down your list of information and working with each item.