What is the difference between SetFocus and Activate activities?

What is the difference between SetFocus and Activate activities?
I tried them out in a workflow. But SetFoucus activity seems to be encountering more errors trying to SetFocus on several elements(Example: Close button of Notepad window)
Can someone enlighten me?

@Athrix05,

Activate: Enables you to activate a specified UI element. For example, it can be used to bring a window to the foreground.

Set Focus: Sets keyboard focus to a specified UI element.

2 Likes

@Athrix05

Refer the activity guide

1 Like

@lakshman,

What does “Sets keyboard focus to a specified UI element” mean? is that like pressing tab button on keyboard until the particular control gets focused?

Thanks,
Asiri