are there any other great scripts out there that I can try / modify that might work with the m100?
Thanks for trying the script and reporting back.For the record, the following is very likely a mixup, the script from this thread does not write anything on screen. It was probably the dumper script.Quote from: psxpetey on 03 / June / 2019, 10:30:36when you switch to camera/record/or auto it will say "done" in green at the top. now you can unlock your lens and have clean hdmi!I'm also not sure if locking the lens makes any difference (it does not on my M10).But, it's true that starting a Canon Basic script may not work reliably, for unknown reasons. See c_joerg's posts here for example.For the request in PM, here's a version of the script that should also prevent the camera from turning off live view.Code: [Select]' clean rec mode palette' EOS M100, 100aDIM palette_buffer_ptr = 0x116f4DIM active_palette_buffer = 0x116ecDIM palette_to_zero = 0public sub check_compat() if Peek16(0xe1f20270) = 0x32d1 then check_compat = 1 else check_compat = 0 end if if strcmp("GM1.00A",0xe047b5b1) <> 0 then check_compat = 0 end ifend subprivate sub RegisterProcs() System.Create() UI.CreatePublic()end subprivate sub palette_mod() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end ifend subprivate sub Initialize() RegisterProcs() ret = check_compat() if ret=1 then LockMainPower() palette_mod() end ifend sub
when you switch to camera/record/or auto it will say "done" in green at the top. now you can unlock your lens and have clean hdmi!
' clean rec mode palette' EOS M100, 100aDIM palette_buffer_ptr = 0x116f4DIM active_palette_buffer = 0x116ecDIM palette_to_zero = 0public sub check_compat() if Peek16(0xe1f20270) = 0x32d1 then check_compat = 1 else check_compat = 0 end if if strcmp("GM1.00A",0xe047b5b1) <> 0 then check_compat = 0 end ifend subprivate sub RegisterProcs() System.Create() UI.CreatePublic()end subprivate sub palette_mod() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end ifend subprivate sub Initialize() RegisterProcs() ret = check_compat() if ret=1 then LockMainPower() palette_mod() end ifend sub
' no turn off' EOS M6, 100bprivate sub Initialize() RegisterProcs() ret = check_compat() if ret=1 then LockMainPower() palette_mod() end ifend sub
' EOS M6, 100b DIM palette_buffer_ptr = 0x11d4cDIM active_palette_buffer = 0x11d44DIM palette_to_zero = 0 private sub RegisterProcs() System.Create() 'UI.CreatePublic()end sub private sub Initialize() RegisterProcs() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end if private sub Initialize() RegisterProcs() ret = check_compat() if ret=1 then LockMainPower() palette_mod() end ifend sub
I'd like to disable the 30-minute auto-off on Live View for my M6.
' Prevent camera shutdown private sub RegisterProcs() System.Create() ExecuteEventProcedure("UI.CreatePublic")end sub private sub Initialize() RegisterProcs() LockMainPower()end sub' EOS M6, 100b DIM palette_buffer_ptr = 0x11d4cDIM active_palette_buffer = 0x11d44DIM palette_to_zero = 0 private sub RegisterProcs() System.Create() 'UI.CreatePublic()end sub private sub Initialize() RegisterProcs() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end ifend sub
' EOS M6, 100b DIM palette_buffer_ptr = 0x11d4cDIM active_palette_buffer = 0x11d44DIM palette_to_zero = 0 private sub RegisterProcs() System.Create() 'UI.CreatePublic()end sub private sub Initialize() RegisterProcs() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end ifend sub' Prevent camera shutdown private sub RegisterProcs() System.Create() ExecuteEventProcedure("UI.CreatePublic")end sub private sub Initialize() RegisterProcs() LockMainPower()end sub
Okay, getting a little greedy so I tried combining both the Live View auto-off disable and the clean overlays code.
' clean rec mode palette and disabled auto-off' EOS M6, 100bDIM palette_buffer_ptr = 0x11d4cDIM active_palette_buffer = 0x11d44DIM palette_to_zero = 0public sub check_compat() if Peek16(0xe1f20270) = 0x32c5 then check_compat = 1 else check_compat = 0 end if if strcmp("GM1.00B",0xe0431215) <> 0 then check_compat = 0 end ifend subprivate sub RegisterProcs() System.Create() UI.CreatePublic()end subprivate sub palette_mod() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end ifend subprivate sub Initialize() RegisterProcs() ret = check_compat() if ret=1 then LockMainPower() palette_mod() end ifend sub
For combining the the scripts, you would at a minimum want to combine the functions with the same names, so there is only one each of "RegisterProcs" and "Initialize", which include the lines from both scripts.
DIM palette_buffer_ptr = 0x11d4cDIM active_palette_buffer = 0x11d44DIM palette_to_zero = 0 private sub RegisterProcs() System.Create() ExecuteEventProcedure("UI.CreatePublic")end sub private sub Initialize() RegisterProcs() LockMainPower() adr = *palette_buffer_ptr adr = adr + (palette_to_zero * 4) if *adr <> 0 then adr = *adr + 4 memset(adr, 0, 256 * 4) end ifend sub
Here's the M100 combined script (clean overlay + no auto off), ported to M6 100b.As reyalp mentioned, this script will only work on firmware version 1.00b.
Started by psxpetey General Discussion and Assistance
Started by pigeonhill General Help and Assistance on using CHDK stable releases
Started by oPryzeLP General Discussion and Assistance
Started by platinummack « 1 2 3 4 » General Help and Assistance on using CHDK stable releases
Started by scinos General Discussion and Assistance