Board index » delphi » Invoke LiveTemplates via Open Tools API

Invoke LiveTemplates via Open Tools API


2006-10-15 10:26:57 AM
delphi240
Is it possible to invoke a Live Template via the OTAPI? If so what area
should I start looking at?
Regards,
Lachlan
 
 

Re:Invoke LiveTemplates via Open Tools API

Found it. For anyone else it is all in CodeTemplateAPI specifically the
IOTACodeTemplateServices.InsertCode method.
Regards,
Lachlan
 

Re:Invoke LiveTemplates via Open Tools API

Lachlan Gemmell writes:
Quote
Is it possible to invoke a Live Template via the OTAPI? If so what area
should I start looking at?
I'm not aware of any OTA methods of triggering a template. You could try
to manually simulate keystroke presses by posting windows keystroke
messages, and it should work, but I have not tested it myself.
Erik
 

Re:Invoke LiveTemplates via Open Tools API

Lachlan,
Yes. You should be able to use the functionality in CodeTemplateAPI.pas
(query BorlandIDEServices for IOTACodeTemplateServices).
-Adam
"Lachlan Gemmell" <XXXX@XXXXX.COM>writes
Quote
Is it possible to invoke a Live Template via the OTAPI? If so what area
should I start looking at?

Regards,

Lachlan