Querying current menu position with CHDK, is it possible somehow? - Script Writing - CHDK Forum

Querying current menu position with CHDK, is it possible somehow?

  • 3 Replies
  • 3710 Views
Advertisements
Does anybody know a technique to query the current position of the "focus" in the Canon menus so it would be possible to know which menu item is selected when pressing the "set" button via script?

Thanks! Martin

Re: Querying current menu position with CHDK, is it possible somehow?
« Reply #1 on: 18 / December / 2013, 10:40:25 »
My guess would be "No".
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Querying current menu position with CHDK, is it possible somehow?
« Reply #2 on: 18 / December / 2013, 12:23:35 »
Alright. Thanks!

*

Offline srsa_4c

  • ******
  • 4451
Re: Querying current menu position with CHDK, is it possible somehow?
« Reply #3 on: 18 / December / 2013, 14:05:20 »
Does anybody know a technique to query the current position of the "focus" in the Canon menus so it would be possible to know which menu item is selected when pressing the "set" button via script?
Since you're apparently still having trouble with reliably browsing the Canon menu, try replacing keypresses in the script with pairs of
Code: [Select]
post_levent_to_ui("PressSetButton")
post_levent_to_ui("UnpressSetButton")
commands. AFAIK the camera translates physical keypresses to these for internal use, and they may work more reliably.
The key strings you'll most likely need are
PressLeftButton
PressRightButton
PressDownButton
PressUpButton
PressSetButton

and their "Unpress" pair, according to the example above. Upper and lowercase matters, you can find more strings in the firmware dump, or in strings.txt if you download the dump from the http://tinyurl.com/chdkfiles2 repo.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal