Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting the clipboard into a general field
Message
From
14/08/1998 07:23:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00126735
Message ID:
00126833
Views:
30
>I have a table with a general field. When I hit the Print Screen key, I want to take the graphical contents of the clipboard and dump it into the general field. Can anyone suggest a way to get the data from the clipboard into the general field?

This dirty example uses sysinfo.vcx (Vladimir Schevchenko) from files\Classes section :
*Form.init
create table formcaptures (bmptest g)

* Capture.button click (Temporarily another button has this code ie:Print)
thisform.sysinfo1.capturescreen(.f.) && Capture only VFP (active) window
select formcaptures
append blank
keyboard "{Ctrl+pgdn}" 
keyboard "{Alt+E}"
keyboard "{P}"
keyboard "{Ctrl+W}"
keyboard "{Ctrl+W}"
browse fields bmptest nowait
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform