Press and release CTRL on remote desktop app for multiple selection

Answered
0
0

Does anyone have a solution for simulating the press and release of the Ctrl button on a remote Windows 7 machine, where a robot logs in via RDP from a Windows 10 machine, to automate multiple file selections in Windows Explorer?

 

 

 

  • You must to post comments
Best Answer
0
0

Have you tried clicking on Windows Explorer to focus on it (using the Advanced Click step without directly selecting the application) and then used the Hotkey Step (also without focusing on the application)? If you haven’t tried this yet, consider using a VBS script and calling it within the process.

Here’s an example of a VBS script:

shortcut = WSCript.Arguments.Item(0)
Set WshShell = WScript.CreateObject(“WScript.Shell”)

 

WScript.Sleep 1000
WshShell.SendKeys shortcut
WScript.Sleep 1000

 

Let’s say your script is named “sendShortcut” and is located in a folder named “folder” on the C drive. You can initiate the script using the Execute Command Prompt Step:

Path to application: cscript //nologo
Application arguments: `”C:\folder\sendShortcut.vbs” “^”`

In the process argument, use the caret symbol (^) to represent the Ctrl key. For example, if you want to send Ctrl + A, you would call it in this way: “C:\folder\sendShortcut.vbs” “^a”.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.