The Drag&Drop activity automates the process of dragging an interface element with the mouse, for example, moving a file from one folder to another. This activity is similar to the Click activity. However, Drag&Drop requires two pointers to be set up. The first pointer (Selected element) is the element you need to "grab" and move. The second element (Target area) is where you move the first one.
Activity settings are configured automatically when recording a process or a particular activity. You can change them if you need. To open the settings window, click on the activity on the process diagram.
The Parameters tab displays the basic activity parameters, parameters of the first (Selected element) and the second pointer (Target area), and controls parameters.
- Name. The activity name on the process diagram. It is set by the template when adding the activity. If you want to change the name, you can do it in this field;
- Mouse button. Select the mouse button (left, middle, right) for the element moving;
- Modifier key. Simulates simultaneously pressing a key (Ctrl, Shift, Alt) and a mouse button when moving the element. For example, if you hold the Control button when moving a file, it will be copied but not moved. To delete the key, click on the button.
Read more about target and control parameters in the "Basic activity settings principles" article.
The Target area is configured similarly to the Selected element settings.
Read more about the Conditions tab in the "Basic activity settings principles" article.
Let's consider moving a file from one folder to another as an example. Set up the two pointers: the selected element and the target area.
As a result of running the activity, the file will be moved from one folder to another using the Drag-and-Drop method.