101
FARR Plugins and Aliases / FLua: FARR Plugins Using Lua
« on: July 02, 2010, 09:38 AM »
I've been working on trying to make it possible to write plugins for FARR in Lua and there is now something that seems to work somewhat so...
The design is almost completely based on ecaradec's FScript (many thanks to him for releasing the source to that). I haven't implemented timers yet, but other things are somewhat in-place. If you've used FScript before, the interface should feel very familiar.
Had some luck with following:
Implemented but didn't really test:
Below is a link to a sample Lua plugin. It is supposed to be similar to vitalyb's FARREnvironmentVariables plugin.
It's got some issues (e.g. DOS window showing up momentarily), but anyway:
http://ewemoa.dcmembers.com/tmp/LuaPathEnvVars.zip
SHA-1: 50f501d3d6e85b7ea3052e76b13ecda58ca8be72
The contained files and folders are:
The main file to tinker with at this point is plugin.lua.
Any comments welcome :)
The design is almost completely based on ecaradec's FScript (many thanks to him for releasing the source to that). I haven't implemented timers yet, but other things are somewhat in-place. If you've used FScript before, the interface should feel very familiar.
Had some luck with following:
- on_init
- on_set_str_val
- on_search_begins
- on_regex_search_match
- on_process_trigger
- farr_set_str_value
- farr_get_str_value
- farr_emit_result
- farr_set_state
- farr_emit_results (this may be more convenient than using the last two)
Implemented but didn't really test:
- on_receive_key
- on_idle_time
Below is a link to a sample Lua plugin. It is supposed to be similar to vitalyb's FARREnvironmentVariables plugin.
It's got some issues (e.g. DOS window showing up momentarily), but anyway:
http://ewemoa.dcmembers.com/tmp/LuaPathEnvVars.zip
SHA-1: 50f501d3d6e85b7ea3052e76b13ecda58ca8be72
The contained files and folders are:
- FLua.dll
- flua.lua
- LICENSES\
- LuaPathEnvVars.ico
- plugin.lua
- README.txt <- pretty much useless at this point
The main file to tinker with at this point is plugin.lua.
Any comments welcome :)