if (type(call_event_proc) ~= "function") then error("ERROR: your CHDK does not support native function calls")end
... and i'm looking for if it is set (active) or not
... Written in Romlog.Lua: Code: [Select]if (type(call_event_proc) ~= "function") then error("ERROR: your CHDK does not support native function calls")end
if get_config_value(1999) == 1
You should be able to useCode: [Select]if get_config_value(1999) == 1
although i cannot find 1999 back in the conf.c file it seems to work, so it's a keeper.
// ID offsets for ConfInfo mapping from Lua libraries#define CONF_CORE 1000#define CONF_OSD 2000#define CONF_USER 3000#define CONF_GPS 4000
ids lower than 1000 are mapped to be backward compatible with the ids used before the conf files were split, but that doesn't include the native calls option.
set_config_value(1200,1)
Code: [Select]set_config_value(1200,1)as listed in cnf_core.lua
cnf_core = require'gen/cnf_core'set_config_value(cnf_core.remote_enable,1)
(except the native calls one which isn't included for obscure reasons )
Started by SkyWalker9 Completed and Working Scripts
Started by Alejandro Feature Requests
Started by mojo43 General Discussion and Assistance
Started by kosmarnik General Discussion and Assistance
Started by Mlapse LUA Scripting