Rocket Terminal Emulator

 View Only

 RTE Desktop - Copy Paste

Massimo Zibetti's profile image
Massimo Zibetti posted 03-08-2024 08:09

Hi All,

I'm trying to replicate this copy paste behaviour into RTE Desktop edition without success. 

I'd like to copy some part of the screen and then paste only the unprotected field in the correct sequence and position.

On other emulator this can be achieved with those configuration:

Copy only unprotected field - Paste option "Field oriented" - Not to paste on protected field

After the copy command the clipboard is defined in this way and i'm not able to have the same data on RTE Desktop

00000000h: 20 20 0D 0A 20 20 0D 0A 20 20 44 53 4E 2E 54 45 ;   ..  ..  DSN.TE
00000010h: 53 54 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ; ST              
00000020h: 0D 0A 20 20 33 31 34 20 20 20 20 0D 0A 20 20 0D ; ..  314    ..  .
00000030h: 0A                                              ; .

I've grabbed the picture of the sequence of the operation that is needed to make this copy paste operation. The picture 3A and 3B are two kind of the same step because I'd like to paste on blank field as well as on field with data with EOF after paste operation.  

Is there someone else that have addressed this kind of  copy paste configuration?

Thanks,

Attachments  View in library
4.JPG 25 KB
5.JPG 30 KB
1.JPG 25 KB
3A.JPG 24 KB
2.JPG 27 KB
3B.JPG 26 KB
Anthony Mckenzie's profile image
Anthony Mckenzie

I think  what you are looking for is something like on of the below.

automationObject.autoTypeJS('xxxx');    //place cursor in location to enter data on screen
automationObject.sendFunction('Home');  //to move cursor to home position
automationObject.sendFunction('Tab');   //tab to next unprotected field
automationObject.getText(24,12,24,30);  //get data from screen

these 2 functions can be an issue with the clipboard if the clipboard is being used by other applications
automationObject.sendFunction('Copy'); //copy data to clipboard
automationObject.sendFunction('Copy and Append');

using variables 
a1 = ["1", "zzz", "2", "yyy"];  //array
variable2(a[bb]); //bb is a javascript for loop
variable1 = 'some data';
automationObject.autoTypeJS(variable1);

using the clipboard to retain data, I do these functions:
alert("Click OK then copy data to clipboard");
variable1 = automationObject.getText(24,12,24,30);  //get data from screen
navigator.clipboard.writeText(variable1);   //copy variable to clipboard
alert("Click OK then paste from clipboard to document");