Maybe we can add to propset5.h:Code: [Select]#define PROPCASE_TIMER_SHOOTS 377 // Number of shoots for TIMER_MODE=Custom
#define PROPCASE_TIMER_SHOOTS 377 // Number of shoots for TIMER_MODE=Custom
Writing to those propcase (TIMER_MODE, TIMER_DELAY, "TIMER_SHOOTS"), I did not see any effect.
--[[@title Night_Scene]]capmode=require("capmode")props=require("propcase")function selftimer() sleep (1000) click ("set") sleep (500) click ("down") sleep (500) click ("right") sleep (500) click ("down") sleep (500) click ("set") sleep (500) endset_prop(props.FLASH_MODE, 2) -- flash offselftimer() -- self-timercapmode.set("SCN_LONG_SHUTTER") -- Long Shutter modeset_prop(57, 0) -- JPG Superfineexit_alt() -- done
Surely a similar workaround is needed to set IS Mode to off.
I've seen IS disabled by setting the appropriate propcase in several scripts so I believe you won't need the button pressing trick for that.
Quote from: waterwingz on 12 / August / 2014, 08:06:30I've seen IS disabled by setting the appropriate propcase in several scripts so I believe you won't need the button pressing trick for that.Neither set_prop(145, 4) nor set_prop(props.IS_MODE, 4) work on my cam... you know, it thinks different
The ultimate.lua script uses set_prop(props.IS_MODE, 3) but I don't know if that actually does anything.
function ISMode() ism = get_prop(145) if (ism ~= 4) then sleep (1000) click ("menu") sleep (500) click ("up") sleep (500) click ("up") sleep (500) click ("up") sleep (500) click ("right") sleep (500) click ("right") sleep (500) click ("right") sleep (500) click ("menu") sleep (500) click ("menu") sleep (500) end end
Definitely the self-timer property case is Read Only, so i fell back on a less elegant, but working , script:
call_event_proc("UI.CreatePublic")call_event_proc("PTM_SetCurrentItem",0x800e,1)
You can try this alternative (it requires Lua native calls enabled):Code: [Select]call_event_proc("UI.CreatePublic")call_event_proc("PTM_SetCurrentItem",0x800e,1)
I dare not ask where to find these magic formulas
It maybe this workaround also could solve the set_focus issues with my camera ?
Those don't seem to be related to setting UI values ....
Started by jetzt « 1 2 » General Chat
Started by nocaC_230 General Discussion and Assistance
Started by paime Script Writing
Started by Ben29 General Help and Assistance on using CHDK stable releases
Started by Sdack Hotwire! Hardware Mods, Accessories and Insights