Setting CHDK Remote Parameters in a script - Script Writing - CHDK Forum supplierdeeply

Setting CHDK Remote Parameters in a script

  • 1 Replies
Setting CHDK Remote Parameters in a script
« on: 25 / February / 2016, 12:34:04 »

I'd like to write a script that sets and unsets the following CHDK parameters:

CHDK Settings -> Remote Parameters -> Enable Remote: ON
CHDK Settings -> Remote Parameters -> Switch Type: OnePush
CHDK Settings -> Remote Parameters -> Control Mode:  Normal

I switch back and forth between software control, so setting/unsettling these each time is a pain. I can't seem to find anything in all the pages of scripting commands that allows me to set these parameters.  Any help would be greatly appreciated. Thanks!


Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Setting CHDK Remote Parameters in a script
« Reply #1 on: 25 / February / 2016, 14:33:48 »
You can use get/set_config_value() for that. It's not quite easy to figure out the IDs. You must study conf.c from the CHDK source code. Or you use a generated lua library:
Code: [Select]
set_config_value(core.remote_enable, 1)
set_config_value(core.remote_switch_type, 1)
set_config_value(core.remote_control_mode, 1)

There is also a script for storing different configurations:



Related Topics

SimplePortal 2.3.6 © 2008-2014, SimplePortal