Set main menu parameters (volume, lens retract) - Script Writing - CHDK Forum  

Set main menu parameters (volume, lens retract)

  • 3 Replies
  • 1663 Views
Set main menu parameters (volume, lens retract)
« on: 12 / September / 2012, 17:01:39 »
Advertisements
Is there any way to set the camera menu (not the chdk menu) parameters from a script? Things like mute, power saving, lens retract. I've seen some posts suggesting to use click(), but how to make sure that a certain parameter is selected? I've also seen suggestions to use set_parameter_data(), but I cannot find a list of parameters or more information about them...

Any tips will be appreciated, thanks!

*

Offline reyalp

  • ******
  • 12742
Re: Set main menu parameters (volume, lens retract)
« Reply #1 on: 12 / September / 2012, 22:09:43 »
set_parameter_data doesn't actually exist in script, although it would be easy to implement.

These parameters are stored in internal flash. If you managed to store bad values, it could be a serious problem. Here's thread from a user who had corrupt paramater data and some information about changing it http://chdk.setepontos.com/index.php?topic=5660.msg55221#msg55221

There is no comprehensive list of the values, http://chdk.wikia.com/wiki/PropertyCase#get_parameter_data.28.29 is the most I know of, plus a few that are read in CHDK code.
Don't forget what the H stands for.

Re: Set main menu parameters (volume, lens retract)
« Reply #2 on: 17 / September / 2012, 11:19:31 »
While some parameters are stored there (LCD brightness), it seems that others, such as mute and volume are not.  Here are some tests made with A810: http://chdk.wikia.com/wiki/A810#Params_Table.  The method was to use SCRIPTS/EXAM/PARAMDMP.LUA before and after changing one of the parameters.

Any ideas why mute, volume etc are not changing the table?

Re: Set main menu parameters (volume, lens retract)
« Reply #3 on: 17 / September / 2012, 16:19:21 »
BTW, tested with a A630 with the same result: volume and power saving parameters do not seem to alter the table.


 

Related Topics