Clipboard SetDataObject


Node Information
Clears Clipboard and adds data.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
SetDataObject IN RUN MULTIPLE FALSE FALSE
Data IN Object ONE FALSE FALSE
Copy IN Boolean ONE FALSE FALSE
RetryTimes IN Int32 ONE FALSE FALSE
RetryDelay IN Int32 ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Clipboard
{
    [IsNode("SetDataObject")]
    public class SetDataObject : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "SetDataObject");
        Port data = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Data");
        Port copy = new Port(PortType.IN, typeof(bool), AcceptsLinks.ONE, "Copy");
        Port retrytimes = new Port(PortType.IN, typeof(int), AcceptsLinks.ONE, "RetryTimes");
        Port retrydelay = new Port(PortType.IN, typeof(int), AcceptsLinks.ONE, "RetryDelay");
        public SetDataObject()
        {
            Name = "Clipboard SetDataObject";
            AddPort(run);
            AddPort(data);
            AddPort(copy);
            AddPort(retrytimes);
            AddPort(retrydelay);
            Information = "Clears Clipboard and adds data.";
        }
        public override void UpdateResults()
        {
            run.Instructions = "Clipboard.SetDataObject(" + GetValue(data) + "," + GetValue(copy) + "," + GetValue(retrytimes) + "," + GetValue(retrydelay) + ");";
        }
    }
}