Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2017, 04:53 PM
Steve Steve is offline
Junior Member
 
Join Date: Oct 2015
Posts: 3
Default Problem copying selected text from TWebBrowser in Pdf viewing mode.

Hi, I'm using TWebBrowser as a pdf viewer, and I need to be able to copy selected text with code. If I press control C on my keyboard it copies to the clipboard with no problems, but it won't copy when using any of the keypress simulation techniques - even when selecting text on a web page in TWebBrowser.

I've tried: keybd_event, SendInput and this code here: http://www.tek-tips.com/viewthread.cfm?qid=899078. I also have a memo on the form and those three methods all copy from the memo without any problems.

I've checked for focus issues by pressing control C on the keyboard with TWebBrowser in the same state of focus as with the simulator code (I used a TTimer to delay the code and I made the selection in TWebBrowser with the mouse before the code activated).

Thanks for any help. Steve.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:08 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.