rem rem @title Remote buttonwhile 1do p = get_usb_power 2 until p>0if p = 1 then print "value is 1" endifif p = 2 then print "value is 2" endifif p > 2 then print "value is >2" endifrem wait_click 1rem if is_key "remote" then shootwendend
--[[@title Remote2L]]repeatdo p = get_usb_power 2 until p>0if p = 1 then print "value is 1" endif p = 2 then print "value is 2" endif p > 2 then print "value is >2" enduntil (false)
@title Remote button while 1=1do p = get_usb_power 2 until p>0if p = 1 then print "value is 1" endifif p = 2 then print "value is 2" endifif p > 2 then print "value is >2" endifrem wait_click 1rem if is_key "remote" then shootwendend
--[[@title Remote2L]]repeat repeat p = get_usb_power(2) until p>0 if p == 1 then print "value is 1" end if (p == 2) then print "value is 2" end if (p > 2) then print "value is >2" enduntil (false)
Started by GrAnd Forum related topics (including issues)
Started by fudgey General Chat
Started by acsian General Help and Assistance on using CHDK stable releases
Started by otosclerosi « 1 2 » LUA Scripting
Started by cloudv General Discussion and Assistance