webDOMinator - Minion Scripting Language Reference

Search a Command:
<< Back to WebDOM Program Variables

wd.curinfo

Returns the value of the currently selected User ID or item from the info list.
This applies to webDOM version 2.0.0 and above.

User Comments on wd.curinfo

Some Examples and Ideas

Written by: webDOMinator 3 years and 5 months ago

Okay, here´s an example of how I would use wd.curinfo

Quick 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

//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
navigate:somesite.com/userprofile?userid=^wd.curinfo

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.curinfo to represent each message ID so that in your script you could say for example:
Code

navigate:mymailwebsite.com/message/^wd.curinfo
click:Reply
...
dom.textarea.message.value=wd.pm.body
click: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.curinfo 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.

Post a Comment About the "wd.curinfo" Command
Title:
Comment:
Post as Anonymous:
User Login
Username:
Email:
Password:
webDOMinator is copyright ©2008, 2009, 2010, 2011, 2012 Nathaniel D. Gibson. All Rights Reserved.
Contact | Tutorials | Forum
By using webDOMinator you are taking all liability in to your own hands. Nathaniel D. Gibson is not responsible for any damages, loss, or defamation (legal or otherwise) caused to you or your business from using this program. Nathaniel D. Gibson is not associated with, affiliated with, nor responsible for the content submitted and displayed by users of this site.