Skip to main content
Solved

Regex in Windows


Forum|alt.badge.img+4

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.

Best answer by Padmakumar

HI @SaiRahul02 ,

 

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.​

View original
Did this topic help answer your question?

15 replies

Theodore Xypteras
Forum|alt.badge.img+5

Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023
Theodore Xypteras wrote:

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?

 


Theodore Xypteras
Forum|alt.badge.img+5

The “Find” action of the String package also accepts RegEx.


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023

I wanted to do it for windows


Theodore Xypteras
Forum|alt.badge.img+5
SaiRahul02 wrote:

I wanted to do it for windows

Can’t you capture the title with recording?


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023

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


Padmakumar
Forum|alt.badge.img+14
  • Flight Specialist | Tier 4
  • 788 replies
  • Answer
  • May 24, 2023

HI @SaiRahul02 ,

 

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.​


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023
Padmakumar wrote:

HI @SaiRahul02 ,

 

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 ?

 


Padmakumar
Forum|alt.badge.img+14
  • Flight Specialist | Tier 4
  • 788 replies
  • May 24, 2023
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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.

 


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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


Padmakumar
Forum|alt.badge.img+14
  • Flight Specialist | Tier 4
  • 788 replies
  • May 24, 2023
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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

 

 

 


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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

 

 

 

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 ? 


Padmakumar
Forum|alt.badge.img+14
  • Flight Specialist | Tier 4
  • 788 replies
  • May 24, 2023
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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

 

 

 

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?


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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

 

 

 

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.


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • 14 replies
  • May 24, 2023
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:
SaiRahul02 wrote:
Padmakumar wrote:

HI @SaiRahul02 ,

 

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

 

 

 

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

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings