Also, this is my first time on the forums so I just realized that there might be rules about no script posting. Sorry if that's the case 0_0
--Test 1--[[rem 20080815 test script by xxx@title batterytest1@param m free memory percentage@default a 1@param i shoot interval@default b 3000@param b battery dead@default h false@param n shot number@default n 0]]freemem, interval, deadbatt shotnumber = m, i, b, n--Jump right into it!while deadbatt == false do table1 = get_meminfo() if table1 ~= nil then freemem = (table1[11]/table1[11]) --NewMem/StartingMem, default of 1 print(freemem) else print("err1:notable") end sleep(3000) --Take the shot press("shoot_half") repeat sleep(50) until get_shooting() == true click("shoot_full") release("shoot_half") shotnumber = shotnumber+1 print("Shots taken: " .. shotnumber) --For initial testing purposes if shotnumber == 20 then deadbatt = true print("Script End") endend
--Test 1--[[rem Test1 by mrShrimp@title batterytest1@param m free memory percentage@default m 1@param i shoot interval@default i 3000@param b battery dead@default b 0@param n shot number@default n 0]]freemem, interval, deadbatt, shotnumber = m, i, b, n--Jump right into it!x = get_meminfo()original = x[11]print("we got this far")while deadbatt == 0 do table1 = get_meminfo() if table1 ~= nil then freemem = (table1[11]/original) --NewMem/StartingMem, default of 1 print(freemem) else print("err1:notable") end sleep(3000) --Take the shot press("shoot_half") repeat sleep(50) until get_shooting() == true click("shoot_full") release("shoot_half") shotnumber = shotnumber+1 print("Shots taken: " .. shotnumber) --For initial testing purposes if shotnumber == 20 then deadbatt = 1 print("Script End") endend
--[[rem Test1 by mrShrimp@title batterytest1@param m free memory percentage@default m 1@param i shoot interval@default i 3000@param b battery dead@default b false@param n shot number@default n 0]]
@param x@default x 4@range x 1 10
@param c foobar@default c 0@range c 0 1
foobar [false]
@param f author@default f 2@range f alva bethe gamov
author [ bethe ]
Nevertheless in the so-called unstable trunk you can have more possibilities:you can use @range keyword to set the allowed range for parameter. Example:...You can also use the @values keyword for setting the list of settings. Example:...
Quote from: outslider on 23 / June / 2012, 03:33:33Nevertheless in the so-called unstable trunk you can have more possibilities:you can use @range keyword to set the allowed range for parameter. Example:...You can also use the @values keyword for setting the list of settings. Example:...@range and @values are also available in the release-1.0 'stable' branch so that scripts remain compatible between versions.Phil.
Started by knorke Creative Uses of CHDK
Started by barret General Chat
Started by outslider Archived Issues
Started by acseven General Discussion and Assistance
Started by waterwingz General Chat