Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cutting & Pasting Data
Message
De
19/01/2006 05:40:23
 
 
À
19/01/2006 05:29:51
Brian O'Donovan
Crescent Computers
Cork, Irlande
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01088302
Message ID:
01088303
Vues:
7
Something like this? This reads the current screen to _cliptext, and dumps it into a file.
*screenshot.prg
DECLARE INTEGER keybd_event IN Win32API ;
INTEGER, INTEGER, INTEGER, INTEGER
*
* Do an Alt-Printscreen
*
#DEFINE VK_LMENU 164
#DEFINE VK_SNAPSHOT 44
#DEFINE KEYEVENTF_EXTENDEDKEY 1
#DEFINE KEYEVENTF_KEYUP 2
DOEVENTS
keybd_event( VK_LMENU, 0, KEYEVENTF_EXTENDEDKEY, 0 ) && key down
INKEY(0.01)
keybd_event( VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY, 0 )
INKEY(0.01)
keybd_event( VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY + KEYEVENTF_KEYUP, 0 )
INKEY(0.01)
keybd_event( VK_LMENU, 0, KEYEVENTF_EXTENDEDKEY + KEYEVENTF_KEYUP, 0 )
DOEVENTS
StrToFile(_cliptext,'yourtextfile.txt')
Then you create a matching cursor, and APPEND FROM yourtextfile SDF

>Hi
>
>I am developing a phone call reporting system for a client of mine. We are using hyperterminal to view the call records on tcp/ip . The only way at the moment that I can import the onscreen report is to copy / paste the page into word, then save it as a text file and this use the import function in vfp8 to take the data into a dbf. Has anyone done this before or is there any way that I can paste the info straight into foxpro. I know I could probably put it into a memo file, but I want to analyse the call info afterwards.
>
>Thanks
>
>Brian O Donovan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform