:##keysset_lcd_display 1playsound 2do k=0 wait_click 50 if is_pressed "zoom_in" then k=22 if is_pressed "zoom_out" then k=24 if is_pressed "shoot_half" then k=29 if is_pressed "face" then k=1 if is_pressed "up" then k=2 if is_pressed "video" then k=3 if is_pressed "left" then k=4 if is_pressed "set" then k=5 if is_pressed "right" then k=6 if is_pressed "display" then k=7 if is_pressed "down" then k=8 if is_pressed "menu" then k=9 if is_pressed "help" then k=11 if is_pressed "wifi" then k=12 if is_pressed "playback" then k=13 if is_pressed "print" then k=16rem some cams NEED is_key (Sx200), &Touchscreen? if k*(A=1) then gosub "##log" sleep 50until E>2return:##logplaysound 4if (K*k=5)+(Q=1) then returnk=k+Q*tselect k case 22,24; gosub "##zoom" case 1; click "face" case 2; click "up" case 3; gosub "##time2" case 4; click "left" case 5; click "set" case 6; click "right" case 8; click "down" case 9; click "menu" case 12; print " click 'wifi'" case 13; exit_alt case 29; E=E+1 case_else gosub "##fun"end_selectsleep 99select k case 1; print " click 'face'" case 2; print " click 'up'" case 4; print " click 'left'" case 5; print " click 'set'" case 6; print " click 'right'" case 8; print " click 'down'" case 9; print " click 'menu'" case 12; print " click 'wifi'" case 13; sleep t case 29; gosub "##baustelle" case_else print "sleep 999"end_selectprint " sleep 99"return
Looking at the Lua key functions, I can’t see how to use wait_click and is_key to do the following. 1. Wait for a key press2. Capture the name of the key press, ie that I put in a variable, say, KeyName3. Use KeyName to do my stuff4. If my stuff not needed, pass through the KeyName to the Canon side for normal Canon actionAs I say, looking at the available Lua calls, I don’t think I can achieve the above. But someone else may see a Lua solution ;-)
Started by Killa-X Script Writing
Started by CNW Script Writing
Started by geokite Script Writing
Started by reyalp General Discussion and Assistance
Started by borf Completed and Working Scripts