Sub Activity – Lock

The Lock contains activities related to system security and access control. It enables automation to lock the system, manage user sessions, and ensure secure execution of workflows.

The Lock activity has the following sub activities:

Lock: Other instances of the process are prevented from continuing until the lock is released.

Input Properties:

  • Key: A unique mutex key. The Unlock activity uses this kay to release the lock.

Lock Attempts:

  • Attempts Interval: The amount of time required after a failed lock attempt before another lock attempt is allowed.

Unlock: This activity is used to release the lock that was previously placed by the Lock activity.

Input Properties:

  • Key: A unique mutex key. The Unlock activity uses this key to release the lock.

Sub Activity – Image

Image includes activities for saving and loading images, allowing automation to capture screen images, store them, or load them for further analysis, comparison, or interaction with UI elements.

The Image activity has the following sub activities:

Load Image: This Loads image from a specified location.

Input Properties:

  • FilePath– Specify the full path of the image file, including the image name.

Output Properties:

  • Image– The image variable that stores the loaded image.

Save Image: Saves the image to a specified location.

Input Properties:

  • Image: An image variable in which the specified image is stored. Or An image variable in which a specified image is saved.
  • FilePath: Specify the full path where the image will be saved, including the file name.

Demo Project using File Activities (Part 3)

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Write a new line to a text file using the Write Text File activity. 
  2. Use the Read Text File activity to read the content of the same file. 
  3. Display file content in a Message Box. 
  4. check whether the path of a file exists using Path Exists activity. If yes, it should delete that particular file using the delete file activity. 
Activities Used“Write Text File, Read Text File, Message Box, Path Exists, Decision, Delete Files”
Video Link https://www.youtube.com/watch?v=scdpzt0oSAA&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=26

Demo Project using File Activities (Part 2)

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Use the Get File Info activity to get detailed information of a file. (e.g., file creation time, file extension). 
  2. Use the message box. Activity to display the information retrieved from the Get File Info activity such as the creation time and extension. 
  3. Use the Get Files activity to retrieve the location of files in a specific folder. The path of the folder can be provided as input to this activity. 
  4. Store Folder Contents in an Array List. 
  5. Loop Through the Array List and display the location of each file in a message box. 
Activities Used“Get File Info, Get File, For Each, Message Box”
Video Link https://www.youtube.com/watch?v=hY1GGYp-lZY&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=25

Demo Project using Environment Activities

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Retrieve the full path of the special folder using the Get Environment Folder Activity.  
  2. Display Folder Path in a Message Box. 
  3. Retrieve the values of different System Variables by using the Get Environment Variable activity. 
  4. Display System Variable Values in a Message Box. 
Activities Used“Get Environment Folder, Get Environment Variable, Message Box”
Video Linkhttps://www.youtube.com/watch?v=VTz4LSzDcp0&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=21

Demo Project using File Activities (Part 1)

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Scenarios:

  1. Add a new line to a text file: 
    • Use the Append Line activity to add a new line to a previously created text file. 
  2. Copy a file from one folder to another: 
    • Use the Copy Files activity to copy a file from one folder to another. 
  3. Create a Test Folder on the desktop: 
    • Use the Create Directory activity to create a new folder called “Test Folder” on the desktop. 
Activities Used“Append Line, Copy Files, Create Directory”
Video Link https://www.youtube.com/watch?v=B5u82XXMpFA&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=24

Sub Activity – File

This section includes a set of activities designed to work with files and folders on the local system and allows users to create, move, copy, delete, and manipulate files and directories.

The File category has the following sub activities:

Append Line: This activity helps to append a string value to the end of a text file.

Input Properties:

  • File Path: The full path to the file.
  • String: Text to be attached to the file.

Copy Files: This activity can be used to copy one or more files to a specified folder.

Input Properties:

  • Source Folder: The relative or absolute path of the directory to search.
  • Contents: The search string to match against the names of files in path. This parameter can contain a combination of valid literal path and wildcard ( * and ?) characters, but it doesn”t support regular expressions.
  • Target Folder: The relative or absolute path of the destination folder.
  • Recursive: If selected, it will include the current directory and all of its sub-directories.

Advanced Option Properties:

  • Overwrite: If selected, replace the existing file in the target folder.
  • CleanTargetFolder: Select to clear the target folder before starting the copy action.
  • FlattenFolder: If selected, copie all files from subdirectories to the root folder.
  • DeleteFileAfterCopy: If selected, delete all files in the source location after the copy is complete.

Create Directory: This activity is used to create a new directory in the specified location.

Input Properties:

  • Path: Path of the directory to be created.

Delete Files: This activity is used to delete file(s) from the specified location.

Input Properties:

  • Source Folder: The relative or absolute path of the directory to search.
  • Contents: The search string to match against subdirectory names in the path. Supports valid literal and wildcard characters, but not regular expressions.
  • Remove SourceFolder: Attempt to remove the source folder as well.
  • Recursive: If selected, it will include the current directory and all of its sub-directories.

Get File Info: This activity is used to get the information of a specific file.  

Input Properties:

  •  File Path: String or string variable that holds the relative or absolute path of file that needs to be retrieved.

Output Properties:

  • FileInfo: It returns file information inSystem.IO.FileInfo datatype.

Get Files: This activity helps to retrieve the location of the specified files.

 Input Properties:

  • Source Folder: String or string variable that holds relative or absolute path of the file that needs to be retrieved.
  • Contents: The search string to match against the names of files in the path. This parameter can contain a combination of valid literal path and wildcard ( * and ?) characters, but it doesn”t support regular expressions.
  • Recursive: If selected, it will include the current directory and all of its sub-directories.

Get Folder Info: This activity is used to retrieve the properties of a specified folder.

Input Properties:

  • FolderPath: The folder from which properties are to be retrieved.

Output Properties:

FolderInfo: It returns folder information in System.IO.DirectoryInfo datatype.

Path Exists: This activity is used to check if the specified path exists or not.

Input Properties:

  • Path: The full path to be checked.
  • PathType: Specifies if the path points to a folder or a file.

Output Properties:

  • Exists: Determines if the folder or file was found.

Read Text File: This activity reads the content of the specified text file and stores it in a string variable.

Input Properties:

  • FileName: Full path of the file to be read.

Output Properties:

  • String: Extracted text from the file.

Rename File: This activity allows the user to rename the existing file.

Input Properties:

  • Source File: The relative or absolute path to the directory to search.
  • File Name: New name for the file.
  • KeepExtension: Keep extension of the file.

Rename Folder: This activity is used to Rename a Folder.

Input Properties:

  • Source Folder: The relative or absolute path to the directory to search.
  • Folder Name: New name for the folder.

Wait For File Download: This activity waits for a specific file to be downloaded.

Input Properties:

  • FilePath: Full path of the file.
  • PollingInterval: Polling interval for checking the file.

Write Text File: This activity creates a text file and writes the specified string value to it. If the text file already exists, then its contents will be overwritten.

Input Properties:

  • File Path: Full path of the file.
  • String: String to be written into the file.

Sub Activity – Environment

Environment includes activities for accessing and managing environment variables, system settings, and configurations to ensure seamless automation execution across different system environments.

The Environment activity has the following sub activities:

Beep: This activity can be used to generate a beep sound to notify or indicate a user about an automation.

Get Environment Folder: This activity gets the path of the specified system folder.

Input Properties:

  • SpecialFolder: Select the special system folder for which the path will be retrieved. Or Choose the system special folder to retrieve its path.

Output Properties:

FolderPath: Returns the path of the specified SpecialFolder.

Get Environment Variable: This activity returns the content of the specific variable from the environment.

Input Properties:

  • VariableName: Specify the name of the environment variable to retrieve.

Output Properties:

  • Value: Returns the value of the specified environment variable.

Demo Project using Dialog and Clipboard Activities

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Provide the input as text in Input Dialog. 
  2. Display Input Text in Message Box. 
  3. Set the output Text from the input dialog activity to Clipboard. 
  4. Get Text from Clipboard and display it in Message box 
  5. Select any File During Runtime. 
  6. Display Selected File Path in a Message box. 
Activities Used“Input Dialog, Set To Clipboard, Get From Clipboard, Select File, Message Box”
Video Link https://www.youtube.com/watch?v=7L5ywGJURrs&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=20