Sx210: wheel_ already fine.
if k ~= 'no_key' then click(k); sleep(99) print('key',k) endOnly shoot_half | playback perform as expected, all others are eaten (equivalent:Ix300)
// For Sx240 I would expect a copy&paste solution from new Sx260 code working.
Quote from: Caefix on 09 / June / 2020, 12:29:43Sx210: wheel_ already fine.Do you mean the test build I posted fixes it?
Ix970:void JogDial_CW(void){ _PostLogicalEventToUI(0x866, 2); // RotateJogDialRight}void JogDial_CCW(void){ _PostLogicalEventToUI(0x867, 2); // RotateJogDialLeft}--- :...,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....Ix200:void JogDial_CW(void){ _PostLogicalEventToUI(0x876, 2); // RotateJogDialRight}void JogDial_CCW(void){ _PostLogicalEventToUI(0x877, 2); // RotateJogDialLeft}--- :...,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....S90:void JogDial_CW(void){ _PostLogicalEventForNotPowerType(0x876, 1); // RotateJogDialRight}void JogDial_CCW(void){ _PostLogicalEventForNotPowerType(0x877 1); // RotateJogDialLeft}--- :...,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....S95, Sx230, SX30?:void JogDial_CW(void){ _PostLogicalEventToUI(0x86E, 1); // RotateJogDialRight}void JogDial_CCW(void){ _PostLogicalEventToUI(0x86F, 1); // RotateJogDialLeft}--- :...,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....Sx20:void JogDial_CW(void){ _PostLogicalEventToUI(0x876, 1); // RotateJogDialRight}void JogDial_CCW(void){ _PostLogicalEventToUI(0x877, 1); // RotateJogDialLeft}
--- :...,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....S110, Sx50// note this camera was reported to require *ToUI rather than ForNotPowerType// https://chdk.setepontos.com/index.php?topic=7889.msg143589#msg143589void JogDial_CW(void) { _PostLogicalEventToUI(0x872, 1); //asm1989 RotateJogDialRight (in table @ FF58799C)}void JogDial_CCW(void) { _PostLogicalEventToUI(0x873, 1); //asm1989 RotateJogDialLeft (in table @FF5879A8 like SX40 -> FF593E5C,)}
2.) if k=='menu' then click ('menu'); print('menu') end ... does only the print()
#undef CAM_KEY_PRESS_DELAY #define CAM_KEY_PRESS_DELAY 60 // delay after a press
Quote from: Caefix on 09 / June / 2020, 13:41:592.) if k=='menu' then click ('menu'); print('menu') end ... does only the print()If you leave alt mode while the script is running, behavior is not well defined.
-- from !Edi.Lua :)function exitalt(x) -- keeps cursor on place x=x or 1 sleep(99); wait_click(22) if x~=0 then exit_alt() end; wait_click(22) repeat sleep(333) until get_alt_mode() if get_mode() then set_record(false) end -- update values EXP_COUNT=string.format("_%04d.",get_exp_count() or 0) INSERT_MAP[1][3]=EXP_COUNT sleep(1000) play_sound(4)end--- :...,....1....,....2....,....3....,....4....,....5....,....6....,....7....,.... if todo=="exit_alt()" then exitalt(1) end if not get_alt_mode() then exitalt(1) end
Quote from: Caefix on 09 / June / 2020, 13:41:592.) if k=='menu' then click ('menu'); print('menu') end ... does only the print()It sounds like you are saying the click function doesn't work at all, for all keys except playback and half shoot, on ixus300 and sx230 Sx210?Are you sure?
#define CAM_ADJUSTABLE_ALT_BUTTON 1 #define CAM_ALT_BUTTON_NAMES { "Video", "Playback", "Shortcut" }//, "Wifi" } #define CAM_ALT_BUTTON_OPTIONS { KEY_VIDEO, KEY_PLAYBACK, KEY_PRINT }//, KEY_WIFI}
Started by dimitrios General Discussion and Assistance
Started by toinech Feature Requests
Started by andrew.stephens.754365 Hotwire! Hardware Mods, Accessories and Insights
Started by koshy « 1 2 ... 12 13 » General Discussion and Assistance
Started by C0NFUS4TR0N General Help and Assistance on using CHDK stable releases