UiPath Studio Guide

Example of using Mouse and Keyboard Automation

To exemplify the automation of a process by using activities that simulate mouse and keyboard input, we created an automation that displays the IP address, subnet mask, and default gateway for all adapters from the Command Prompt, by using the ipconfig command and actions similar to human ones:

  1. Create a new Sequence.
  2. Add a Click activity to the Designer panel.
  3. Select the activity, click the Indicate on screen button and click the Start button.
  1. Add a Type Into activity under the previously added one.
  2. Select the activity, and in the Text field, write cmd.
  1. Add a Send Hotkey activity under the previously added one.
  2. Select the activity and, from the drop-down menu choose enter.
  1. Add another Type Into activity under the previously added one.
  2. Select the activity, and into the Text field, write ipconfig.
  1. Add another Send Hotkey activity under the previously added one.
  2. Select the activity, and from the drop-down menu select the enter key.
  1. Press F5. The automation is executed. The IP address, subnet mask and default gateway for all adapters are displayed in the Command Prompt.

Click here to download the example.