Will this be enough reyalp?
If it's something you got from this forum or elsewhere, it would be helpful to link where you got it. What you posted doesn't appear to include the GUI part of the code that does the buttons.
Looking at the script, it seems like you should be able to avoid going to playback just by commenting out the 'play' commands in mc:jmod
so under for example, under
if s == 'dl' then
change
self:cmdwait('play',{printcmd=false})
to
-- self:cmdwait('play',{printcmd=false})
However, the download command appears to delete images. Many cameras will crash on when you try to switch to playback or shut down after deleting images in rec mode. You should test to see whether this happens on your cameras before updating the script. You can try this on one camera with chdkptp using
shoot -dl -rm
play
If the camera shuts down, then it has the problem.
You could avoid this by not deleting the images, but then the download commands would need to be modified to only download the most recent image (e.g using lastimg=1 in the download command).