Hi,
you have two choices:
1) use scripted keypresses in your script, see the "click", "press", "release" (etc.) commands
here2) use
UI properties (requires enabled "Lua native calls", see the Misc menu):
You need the following function calls in your script:
call_event_proc("UI.CreatePublic") -- you only need to call this once
call_event_proc("PTM_SetCurrentItem",<ID>,<value>)
You need to
determine <ID> and <value>, because they are camera model dependent. If you have the correct ID and values, you can switch drive mode between continuous and single with the PTM_SetCurrentItem eventproc.