Error while sending hot key in window 7

@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

Okay @suraj_gaikwad

I hope you find the solution by using the cv element exist activity. Make mark it as solution to close the loop.

Happy Automation!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.