Error while sending hot key in window 7

Hello,

I’m working on remote desktop and i have to open application so I sent hot key (win r)
But issue is this whenever I’m running the bot it’s working properly but sometimes send hotkey (win r) it’s right but it’s showing also window so I put type into its should be type in (win r) RUN but bot can’t find that element bcz of other window is open

Thanks

Hi @suraj_gaikwad

  1. Use Element Exists Activity: Before sending the “Win+R” hotkey, add an “Element Exists” activity to check if the “Run” dialog is already open. The “Element Exists” activity will return a boolean value (True or False) based on whether the element is found or not.
  2. Add a Delay: After sending the “Win+R” hotkey, add a short delay (e.g., 1 or 2 seconds) using the “Delay” activity. This allows some time for the “Run” dialog to open completely.
  3. Check Element Exists: In the “Element Exists” activity, indicate the selector for the “Run” dialog window. Make sure the selector is accurate and reliable to identify the “Run” dialog.
  4. Use Decision Activity: Add a “Decision” activity after the “Element Exists” activity to check the boolean result. If the “Run” dialog is open (True), proceed directly to typing into it. If it is not open (False), you can handle this situation, for example, by sending the “Win+R” hotkey again or by retrying the process.
  5. Use Type Into Activity: If the “Run” dialog is open (True), use the “Type Into” activity to input the desired value (e.g., “cmd” to open the Command Prompt).

Hope it helps!!

@suraj_gaikwad

  1. Add the “Activate” activity before the “Send Hotkey” activity (Win+R).
  2. In the “Activate” activity, indicate the element that represents the Run dialog (e.g., the text box where you can type commands).
  3. Set the “SendWindowMessages” property of the “Type Into” activity to “True”. This will make the “Type Into” activity work even if the target window is not in focus.

By using the “Activate” activity and setting the “SendWindowMessages” property, you ensure that the Type Into activity works regardless of whether the Run dialog is initially in focus or not.

If the “Activate” activity still fails to bring the Run dialog to the front, you can also try adding a short delay before the “Type Into” activity to allow time for the window to appear.

1 Like

Hi @suraj_gaikwad

  1. Add a short delay (e.g., 1-2 seconds) using the “Delay” activity.
  2. Use the “Send Hotkey” activity to send the Win+R combination.
  3. Use the “Type Into” activity to input the desired command into the “Run” dialog.

Hope it helps!!

1 Like

Guys what I have done it’s working but some time I shown in below image

@rlgandu @pravallikapaluri @mkankatala

I just want this only not shown in above image sometimes it’s coming like this

@rlgandu @mkankatala @pravallikapaluri

Why you want to open the windows and open the run command.

Are you using to open any application with this. Let me know for more clarity. @suraj_gaikwad

1 Like

I’m working on remote desktop by cv scope @mkankatala

@suraj_gaikwad

add some delay activity before the type into activity.

Regards

1 Like

Okay @suraj_gaikwad

If you want to open any application from run. If yes then use one more cv scope activity to open that application.

1 Like

@suraj_gaikwad

can you send the screenshot of keyboard shortcut activity?

Regards

1 Like

By using run command I’m opening the application on remote desktop I have pass the path of application in run command but the run command pop appears but sometimes with run command win pop also coming bcz of this bot not able to find of run command selectors

@pravallikapaluri @mkankatala

Thnaks.

@suraj_gaikwad

As you are working in RDC,
I think It will take Some time, So Give delay and Retry scope,Element Exists activity to perform the actions.
So, give some delays after and before type into activity.
And Use CV activities.

I hope it helps

1 Like

@vrdabberu @pravallikapaluri

In this case, use the cv element exist activity and capture the popup.
The cv element exist activity gives the Boolean output.
After this, Use if condition to check the Boolean is true or false. @suraj_gaikwad
If the element is found handle the popup with cv activities in then block.
If the element is not found then move forward with cv activities in else block.

First do the process manually, then you have clarity to find where we have to delays to handle the application.

Hope you understand!!

Yes i tried this but it’s not working in cv element exist activity I’m not able to indicate the hole pop up

@pravallikapaluri @mkankatala @rlgandu

@suraj_gaikwad

  1. Use the “Send Hotkey” activity to send the Win+R hotkey and open the Run dialog.
  2. Add a short delay using the “Delay” activity to allow the Run dialog to open.
  3. Use the “Wait for Element to Vanish” activity to wait for the Run dialog window to disappear. Indicate the Run dialog or a specific element within it as the target for the activity.
  4. Continue with the rest of the automation once the Run dialog vanishes
1 Like

If you are unable to indicate whole popup try to indicate the elements which are unique in the popup. @suraj_gaikwad

Hope you understand!!

1 Like

Yes, I Understood, The CV scope will not able to capture the whole pop up.
Use Cv Scope and capture the whole pop up
Try to Capture the elements in the pop up-multiple times Use Element exists activity

1 Like

Issue solved I use just again element exist and I sent again send hot key as a escape if pop up available it’s escape that otherwise process move forward

Thank you guys,

2 Likes