Well here it is: the first Lua script running on my IXUS 70.
for i = 1,10 do
print( "Picture "..i )
shoot()
sleep( 2000 )
end
I am already in the process to port more complex scripts to Lua. It is mostly straight forward. And they get much better to read and understand.
Still missing is error handling and script parameters.
New features include:
- variable names longer than 1 char
- no 10 ms delay between different code lines (only for commands that do something with the camera like "press" or "shoot")
- bug free scripting language
- functions
- data structures (Lua tables can be used as arrays or associative containers)
- strings
- garbage collection
- coroutines
- (and more I possibly forgot about)