@title Remote button
while 1=1
do
p = get_usb_power 2
until p>0
if p = 1 then
print "value is 1"
endif
if p = 2 then
print "value is 2"
endif
if p > 2 then
print "value is >2"
endif
rem wait_click 1
rem if is_key "remote" then shoot
wend
end
--[[
@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"
end
until (false)