Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SYS(1500) Help
Message
De
08/01/2008 09:58:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/01/2008 09:53:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01280185
Message ID:
01280188
Vues:
27
>Hi,
>
>I'd like to automate the process of loading the contents of a PRG to the clipboard.
>For this task, I'm trying to use SYS(1500) to simulate some menu actions, like "Select All" and "Copy" - CtrlA and CtrlC
>
>Below is the code I'm using:
>
>
>
LOCAL lcFile
>lcFile = GETFILE("prg")
>
>MODIFY COMMAND (lcFile) NOWAIT
>
>* Select all
>SYS(1500, '_MED_SLCTA ', '_MEDIT')  && Select All menu item
>
>* Copy
>SYS(1500, '_MED_COPY ', '_MEDIT')  && Copy menu item
>
>
>The problem is that sometimes it seems to work fine, and sometimes, nothing happens. I've already tried lots of things, like ensuring that the menu is visible, prior checking if the menu is available using SYS(2013), DOEVENTS, waiting for a second before each action...
>
>Can someone provide a hint on this ?
>
>
>I really need the content of the PRG to the clipboard, in order use the new feature from VFP9 that sends the copied part of the PRG to the clipboard in the HTML mode.
>
>
>Thanks in advance
>
>Cesar

Cesar,
Do you need Ctrl+A,C ... to do that? Isn't

_cliptext = FileToStr(m.lcFile)

sufficient?
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform