I have to work with windows whose titles are varying. I know I have to use Regex functions. But unable to get it. Can someone help me please.
Regex in Windows
You can use the Regular Expression Tools Package
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
You can use the Regular Expression Tools Package
Can’t we do without getting the package. because, in the variable, it directly asks for Regex right?
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
I wanted to do it for windows
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
I have to perform same action in different windows in a loop. Here the windows title is varying. And also I cannot use * as wild card beacuse there is no common thing in the title of the window. So I have to use regex
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not actually. You can either mention the Window name or can use the Currently Active option.
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not obviously. You can either mention the Window name or can use the Currently Active option.
can’t get it
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not obviously. You can either mention the Window name or can use the Currently Active option.
can’t get it
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/502b933a-9252-48c3-8f7c-0577f70e743f.png)
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not obviously. You can either mention the Window name or can use the Currently Active option.
can’t get it
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/502b933a-9252-48c3-8f7c-0577f70e743f.png)
Thank you so much. Will try. And also, when I use ‘Go back’ action for a window in chrome, it is saying that browser is not supported. Why so ?
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not obviously. You can either mention the Window name or can use the Currently Active option.
can’t get it
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/502b933a-9252-48c3-8f7c-0577f70e743f.png)
Thank you so much. Will try. And also, when I use ‘Go back’ action for a window in chrome, it is saying that browser is not supported. Why so ?
From where are you getting this Go back option? Is it from the portal?
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not obviously. You can either mention the Window name or can use the Currently Active option.
can’t get it
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/502b933a-9252-48c3-8f7c-0577f70e743f.png)
Thank you so much. Will try. And also, when I use ‘Go back’ action for a window in chrome, it is saying that browser is not supported. Why so ?
From where are you getting this Go back option? Is it from the portal?
I’m talking about separate action ‘Go back’ in windows action items.
![Collaborator Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/39d17670-cf25-4e5f-a570-cb74d0dadb49_thumb.png)
HI
Why don’t you follow the below approach?
- Use Currently Active Window and then capture the object.
- In case if user wants to run this task in unattended mode and other applications are also open with the current application then we need to use below approach:
Try to activate the currently active window where you need to perform the functions using Windows Actions → Activate Window command and build the code accordingly.
Even for activating window, we need to give the title of the window right ?
Not obviously. You can either mention the Window name or can use the Currently Active option.
can’t get it
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/502b933a-9252-48c3-8f7c-0577f70e743f.png)
Thank you so much. Will try. And also, when I use ‘Go back’ action for a window in chrome, it is saying that browser is not supported. Why so ?
From where are you getting this Go back option? Is it from the portal?
I’m talking about separate action ‘Go back’ in windows action items.
In Browser Actions, not in window actions
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.