| Lua scripting support |
|
|
(Es ist noch keine deutsche Übersetzung dieser Seite verfügbar)
See also:
Plugin programming / Lua scripting support from hermocomWith using Lua scripting, you can greately enhance the capabilities of NoteCase Pro. For example, NoteCase Pro Plugins are written in Lua. But also simple stand-alone scripts written in Lua can be used in NoteCase Pro to quickly add small new features.ExampleThis simple script
-- Get IDs of current document and note:
nDocID = Nc_Doc_ID_GetCur()
strNoteID = Nc_Note_ID_GetCur(nDocID)
-- build time stamp:
strTimeStamp = "~~~ " .. os.date("%a %Y-%m-%d %H:%M") .. " ~~~"
-- append time stamp to current note:
strCurNoteContent = Nc_Note_Content_Get(nDocID, strNoteID, 1)
strNewNoteContent = strCurNoteContent .. strTimeStamp
Nc_Note_Content_Set(nDocID, strNoteID, strNewNoteContent, 1)
appends a time stamp to the end of the current note.
How do I start?Lua scripting can be used to automate almost everything in NoteCase Pro, from simple repeating tasks to complex information processing, using the currently (as of NoteCase Pro version 3.5.7) almost 250 available program functions (APIs) of NoteCase Pro.If you like to use NoteCase Pro for your information management and need your information to be processed in certain ways that are possible but complicated to do manually with NoteCase Pro, or which require involving third-party tools to process text, use Lua scripting to automate what you want NoteCase Pro to do. In the help file of NoteCase Pro (press F1 in NoteCase Pro), all the Lua APIs (function calls) are documented. In the "Scripts" menu under "Execute File" you can find some sample scripts. There is also an online scripts collection at www.notecasepro.com and there are, of course, the NoteCase Pro Plugins, which are also Lua scripts, collected and arranged in Plugin files. The "Plugin Developer Tools" Plugin by hermocom provides easy-to-use helper tools for Plugin developers, e.g. a Plugin template generator, many useful Lua functions collected in some libraries, comrprehensive documentation including Plugin development tutorials and much more. If you don't want to learn Lua programming yourself, or if your need is just too complicated for you to implement in Lua, just call me or write an email, so we can discuss the possiblites. With all my Lua experience, collected while writing my NoteCase Pro Plugins (including a complex Getting Things Done task management system), I offer support for your Lua programming from giving short hints up to entirely writing your scripts or plugins according to your requirements. Contact me, if you are interested.
|
| Zuletzt aktualisiert am Dienstag, den 28. Februar 2012 |

Please wait...