Are some thing in ubasic not possible, which are possible in Lua?
One last question: you seem to be in favor of Lua. Are some thing in ubasic not possible, which are possible in Lua?
repeat sleep(100) until get_shooting() == true release("shoot_half")repeat sleep(100) until get_shooting() == false set_aflock(1)repeat until get_usb_power() > 6a = get_tick_count()b = 1print_screen(true)repeat sleep(100) if get_usb_power() > 6 then press("shoot_full") repeat sleep(100) until get_shooting() == true print("#:", b, " -> ", get_tick_count()-1) b = b+1 a = get_tick_count() enduntil false
#: 1 -> 24259#: 2 -> 26129#: 3 -> 29179#: 4 -> 31289#: 5 -> 33389#: 6 -> 36459#: 7 -> 37479#: 8 -> 38499#: 9 -> 40609#: 10 -> 41629#: 11 -> 42619#: 12 -> 44599#: 13 -> 45619#: 14 -> 46699#: 15 -> 48679#: 16 -> 49699#: 17 -> 50719#: 18 -> 52699#: 19 -> 53719#: 20 -> 54739#: 21 -> 56849#: 22 -> 58929#: 23 -> 60909*** INTERRUPTED ***
repeat sleep(100) until get_shooting() == true release("shoot_half")repeat sleep(100) until get_shooting() == false set_aflock(1)b = 1print_screen(true) press("shoot_full")a=get_tick_count()repeat repeat sleep(20) until get_shooting() == true print("#:", b, " -> ", get_tick_count()-a) b = b+1 repeat sleep(20) until get_shooting() == falseuntil false
press("shoot_half")repeat sleep(100) until get_shooting() == true release("shoot_half")repeat sleep(100) until get_shooting() == false set_aflock(1)repeat until get_usb_power() > 6a = get_tick_count()b = 1print_screen(true)repeat sleep(100) if get_usb_power() > 6 then press("shoot_full") repeat sleep(100) until get_shooting() == true print("#:", b, " -> ", get_tick_count()-a) b = b+1 a = get_tick_count() repeat sleep(100) until get_shooting() == false enduntil false
#: 1 -> 1370*** INTERRUPTED ***
Hmm... Maybe because i had continuous shooting enabled.
--[[@title Time Stamper Lua Script--]]repeat sleep(100) until get_usb_power() > 6press("shoot_half")repeat sleep(100) until get_shooting() == true release("shoot_half")repeat sleep(100) until get_shooting() == false set_aflock(1)print_screen(true)start_time=get_tick_count()shot_count = get_exp_count()press("shoot_full")repeat repeat sleep(50) new_count = get_exp_count() until new_count > shot_count print("IMG_", new_count, ".JPG -> ", get_tick_count()-start_time) shot_count = new_countuntil false
--[[@title Time Stamper Lua Script--]]i = 1 print_screen(true)while true do repeat until is_pressed "right" start_time=get_tick_count() print("received trigger", i) i = i + 1 press("shoot_half") repeat sleep(100) until get_shooting() == true release("shoot_half") repeat sleep(100) until get_shooting() == false set_aflock(1) shot_count = get_exp_count() press("shoot_full") while is_pressed "right" do repeat sleep(50) new_count = get_exp_count() until new_count > shot_count print("IMG_", new_count, ".JPG -> ", get_tick_count()-start_time) shot_count = new_count end release("shoot_full")end
received trigger 1IMG_ 791 .JPG -> 2610IMG_ 792 .JPG -> 4440IMG_ 793 .JPG -> 6250IMG_ 794 .JPG -> 8020IMG_ 795 .JPG -> 9790IMG_ 796 .JPG -> 11590IMG_ 797 .JPG -> 13370IMG_ 798 .JPG -> 15200IMG_ 799 .JPG -> 16970received trigger 2IMG_ 800 .JPG -> 2020IMG_ 801 .JPG -> 3790IMG_ 802 .JPG -> 5530IMG_ 803 .JPG -> 7360IMG_ 804 .JPG -> 9140
Started by clevermonkey General Help and Assistance on using CHDK stable releases
Started by DanDMan Script Writing
Started by maude018 Script Writing
Started by iwolf3 Script Writing
Started by SkyWalker9 Script Writing