I am using Studio Pro 2020.10.2. C# and want to perform an activity that is similar to Keyboard.SendKeys(“^O”); at visual studio C#. I have tried “For example, to send a CTRL + V key combination, you can use %[d(ctrl)]v[u(ctrl)]
” ,with ‘Type Into’ and ‘CVType’ into but that’s not directly working for me, so I have to use “Use Application/Browser ,and this worked for me .
But I want to use a more simple way to do it , and want to make SendKeys(”^O") a generic function/method.
Do I need to import any libraries , if yes than how and what should be code or activity to do it .
I have following dependencies available,
I also tried with just send key and seeing following error ,
RemoteException wrapping System.Exception: Terminal error: NotConnected
at UiPath.Terminal.Activities.TerminalActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Why not use SendHotkey? The modern one allows you to just record the shortcut you need, even multiple ones, easy peasy