Posted: 21 Dec 2017 17:25 EST Last activity: 26 Dec 2017 19:27 EST
Copy Text + paste to Note Pad using Pega Robotics / OpenSpan
I'm looking for some inputs on how to copy line of data[Text] from an application (PEGA based) to notepad.
I would have interrogated the required fields to copy the text But the scenario is - copying values can be random, i.e whatever user wants to copy from the form, based on cursor movement that particular line of data has to be copied.
Eg : If i put the cursor on text line "This data has to copied to notepad".
That has to be copied to notepad.
Any inputs on this, Is this feasible to do with Pega Robotics / OpenSpan ?
Update : In other words, How can i get text of a control in web form when mouse click occur on that field ?
I do not think it is feasible task to do this. You are suggesting that every control on a webpage is interrogated and then accurately determine which control the user is hovering over with their mouse and then trying to pull text from the control.
The biggest hurdle is trying to find the control that the mouse is hovered over. If you are clicking the control, then it may be easier. You would have to have a listener for a mouse click on every control on the form.
Thanks Micthell for response. Could you please let me know the way to get text if user clicks on the control.
Actually I'm able to get value of the control by using the event "click" then using "Getvalue", But I have observed this does not work when text box or control is in disabled mode ? How to get control value in such scenario.
If you can detect when they have copied, then rather than trying to determine what they have copied from the application, you can just grab the contents of the clipboard. That is pretty tricky to do, but it is possible. You'll need to research that as that would need to be done with some C# in a script. My suggestion would be to create a UI for them to paste to and use the UI as the source. It is one extra step, but allows you the ability to ensure it will work.