Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy another screen to clipboard

Status
Not open for further replies.

johnbuckley

Technical User
Mar 25, 2002
52
GB
I want to copy a screen from another programme into an edit box on my VFP form. I thought of copying it to the windows clipboard then into VFP with _Cliptext.

Is there any way I can do this programmatically and save the user doing it manually?

I can identify the other screen with an API call but is there one to copy it to the clipboard?

Thanks
 
John,
As you might guess the VFP _ClipText variable only holds TEXT - not other kinds of Meta data that can be "copied". There are simplified versions of some of the clipboard API calls in FoxTools. You might want to start there.

Rick
 
I only want to copy text so that is not a problem. I've had a look at FoxTools butalthougth it allows you to manipulate the data on the clipboard it doesn't actually get it there in the first place.
 
it sounds like to me this is what you want??

example:
you have a word file open and want to copy the text from word to a edit box in foxpro program and do al this programmaticly.

Is this what you are loking for?? Attitude is Everything
 
Yes - But: the source is a third party programme I don't have the code for and the screen is a text output from an encrypted database. So all I have to go on is copying the screen. Why make life easy?
 
If you have microsoft office or microsoft excel to work with, then look at faq184-184.

I have used this in the past to deal with other products besides office. It will take some playing to find the library to load. but once you do you may find the properties you need to commuicate with your ptrogram. Attitude is Everything
 
If you have microsoft office or microsoft excel to work with, then look at faq184-2215.

I have used this in the past to deal with other products besides office. It will take some playing to find the library to load. but once you do you may find the properties you need to commuicate with your ptrogram.

wrong faq 184-2215 Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top