Disable Flash/Assist Beam shortcut key - page 2 - Feature Requests - CHDK Forum  

Disable Flash/Assist Beam shortcut key

  • 11 Replies
  • 8107 Views
*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Disable Flash/Assist Beam shortcut key
« Reply #10 on: 14 / February / 2008, 15:52:29 »
Advertisements
Ok well that sounded simple enough so I wrote this script to dump them all:

Code: [Select]
rem Author: fudgey
rem tested on a570is, should work on all cameras?
rem requires get_prop and for loop, available in many new builds
@title propcase dump to file
rem writes values of all propcases to /CHDK/SCRIPTS/PR_SCREEN.TXT

@param a first prop
@default a 0
@param b last prop
@default b 255

print_screen 1
print "-------------"
print "propcase dump"
print "-------------"

for c=a to b
  get_prop c d
  sleep 20
  print "P "c" = "d
next c
print "-------------"
print_screen 0

end

The print_screen part in the wiki could maybe use some clarifying, I first tried "print_screen 0" on the first one and thought I'd get all neatly appended to the same file but didn't get any output with that...

Anyway, on the a570is propcase 5 is likely AF assist light, "1" when enabled, "0" when disabled... didn't try setting it yet...

edit: Well I tried setting it now. It works! :xmas

One caveat though: the AF light setting in the camera's own menu doesn't get updated when propcase 5 is changed to enable or disable AF light. Enabling or disabling AF light from Canon's menu does still work after setting the propcase from a script, so not much harm done. But scripts really ought to be nice and check the propcase before modifying it's value and then reset it back to whatever it was after the script is done with it.


« Last Edit: 14 / February / 2008, 16:17:42 by fudgey »

Re: Disable Flash/Assist Beam shortcut key
« Reply #11 on: 14 / February / 2008, 16:10:26 »
Deleted
« Last Edit: 22 / April / 2008, 11:57:51 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal