Bernd R
your changed mint.lua worked perfectly fine with the build i made using chdk shell, build 1067 with the msleep change.
wonderful
edit: also works with ultimA's experimental builds where as the original script (copy and pasted from the LUA page) did not work.
edit 2: ultimA, as i am attempting to learn about this more, may i ask what change was made to code in your experimental builds?
I am sorry they didn't work....we'll get there eventually though
edit 3: i looked at the scripts that NEZtron had posted that he was using that worked....both have a blank line at the end of the code...
...to me it looks as though the problem with the script is not caused at all by the msleep being longer....but is the compiler used and the way the script is ended...
i downloaded the motion detection script from the user scripts wiki page and without any changes it worked, because there was already a blank line at the end of the code....
the longer msleep and the properly concluded script for a chdk shell compiled build is working perfectly stable for me
thanks to BERND R and and everyone else!
i don't think the longer msleep is a hack but is just giving more time for it to initialize.....
but because i am not in any way a programmer (do know a bit though as I am a computer guy and did programming in high school so its a bit rusty) - i am humbly willing to continue to test out other builds and such to find a different solution if need be