Rocket Modern Experience (formerly LegaSuite)

 View Only

 Right click to Paste content in textarea

AR VIGNESH's profile image
AR VIGNESH posted 02-04-2025 06:36

Hi ,

I have a requirement where I need to right click it will show paste and paste, content should text area. I have a paste page the embedded script in the action Is way to paste content in the textarea. Can anyone suggest a solution to this?.

Below I have attached the paste menu page screenshot and embedded script code for your reference.

Dim logstring,ClipContents as String

ClipContents = ClipboardPaste()

If Len(ClipContents) > 0 Then

OutputDebugStringInfo(logstring,"infoText........")

HostScreenPutString(ClipContents)

EndIf

Roger Van Valen's profile image
Roger Van Valen

Hi Vignesh,

The script function ClipboardPaste() will work in a Windows Client of Rocket MX Desktop (fka LegaSuite GUI) but not in Rocket MX Web.

For a 'regular' paste you can enable the right mouse menu, setting it to "standard", like this:
which enabledsthe browser's default right-mouse menu.

In the web client or when performing a live test test, this will give you a right-mouse menu with a 'Paste' option on the TextArea field for pasting, and also Ctrl-V will work:

Hope this helps,

Regards,

Roger.