Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access to the active code editor window?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Access to the active code editor window?
Divers
Thread ID:
00702897
Message ID:
00702897
Vues:
48
Hello. I'm looking to write a keyboard hook of some sorts that needs to be able to access the code that I'm writing(read-only), and pump the keyboard buffer based on what it finds(or possibly edit code very much near the cursor). Is there any way to do this? It needs to work for modifying PRGs, and object methods. It must access the code currently being written, which is not neccessarly the code saved to the file being edited.

What I'm actually trying to accomplish, is adding the CTRL+SPACE functionality of VC++ to VFP-- if I hit CTRL+SPACE while I'm typing a variable name, it will search backwards from the current location, looking for a variable in scope to which I am referring-- it would then complete what I'm attempting to type, and possibly even replace what I've already typed(say, I defined the variable mixed-case, and I'm typing it all lower-case, it will change it to the mixed case in which I defined it). If there is a way to accomplish this without writing my own keyboard hook, I'd love to hear about it.

Thanks!
Derek J. Kalweit
Software Engineer
Microworks POS Solutions, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform