ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIERFBClient question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Sep 22 2021 :  10:31:01  Show Profile  Reply
hi,
i use TIERFBClient for a VNC-Viewer, all is good.
But when i send a Text wit RFB.SendClipboard(InputString) to the server,
i can't insert this with CRL-V. I can only use the mouse menu with the rigt MB and then line insert.
How can i insert the text with a keyevent ?
Maybe like this: (It does not work)
procedure TMainForm.VNCViewKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
 if RFB.Connected then
  if (ssCtrl in Shift) and (Key = 86) then
  begin
      RFB.SendKeyEvent(VK_SHIFT, 0, true);
      RFB.SendKeyEvent(VK_Insert, 0, true);
      RFB.SendKeyEvent(VK_Insert, 0, false);
      RFB.SendKeyEvent(VK_SHIFT, 0, false);
  end;
end;

Input with Hand Shift+Insert works perfect.

Klaus
DigiFoto
www.klausdoege.de

xequte

38198 Posts

Posted - Sep 23 2021 :  00:19:36  Show Profile  Reply
Hi Klaus

Sorry, I'm not quite following your intention. Are you wanting to send the content of the clipboard to the destination?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 24 2021 :  07:20:17  Show Profile  Reply
Hi Nigel,
no i am editing a text file on the server,
and would like to use the key combination CTRL-C and CTRL-V to copy and paste like in Word.
But that doesn't work. I always have to call up the menu with the right mouse button and choose paste or copy here.
It's very cumbersome.

Klaus
DigiFoto
www.klausdoege.de
Go to Top of Page

xequte

38198 Posts

Posted - Sep 25 2021 :  00:55:09  Show Profile  Reply
Hi Klaus

The clipboard activity needs to open on the destination, so the only thing that might work is sending Ctrl+C/Ctrl+V.

      RFB.SendKeyEvent(VK_CONTROL, 0, true);
      RFB.SendKeyEvent(VK_C, 0, true);
      RFB.SendKeyEvent(VK_C, 0, false);
      RFB.SendKeyEvent(VK_CONTROL, 0, false);

      RFB.SendKeyEvent(VK_CONTROL, 0, true);
      RFB.SendKeyEvent(VK_V, 0, true);
      RFB.SendKeyEvent(VK_V, 0, false);
      RFB.SendKeyEvent(VK_CONTROL, 0, false);


But I don't believe you can do this.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: