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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIERFBClient question

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
klausdoege Posted - Sep 22 2021 : 10:31:01
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 25 2021 : 00:55:09
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
klausdoege Posted - Sep 24 2021 : 07:20:17
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
xequte Posted - Sep 23 2021 : 00:19:36
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