#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes}
... The header is parsed in core/gui_script.c, different area...
I have the following in my scriptCode: [Select]#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes}I wish to access the text associated with a menu item, eg 1 above is “X2INF”, but I can’t work out how.
#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes} table
Quote from: pigeonhill on 18 / June / 2022, 13:06:42I have the following in my scriptCode: [Select]#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes}I wish to access the text associated with a menu item, eg 1 above is “X2INF”, but I can’t work out how.Use the table option, likeCode: [Select]#mode = 0 "Focus?" {Off X2INF Min2INF Manual Min2X SupRes} tableThen you can access the string with mode.value. You can also access the index with mode.index. Note .index is one based, unlike items created without the table option. See https://chdk.fandom.com/wiki/CHDK_Script_Header
Started by jetzt General Discussion and Assistance
Started by buetts General Help and Assistance on using CHDK stable releases
Started by LukeSkaff Feature Requests
Started by shaunam General Help and Assistance on using CHDK stable releases
Started by waterwingz « 1 2 » General Discussion and Assistance