| Revision 985,
412 bytes
checked in by pixeldoc2000, 2 years ago
(diff) |
|
script/*.bas cleanup
|
-
Property svn:eol-style set to
LF
|
| Line | |
|---|
| 1 | rem Interval shooting |
|---|
| 2 | |
|---|
| 3 | @title Interval shooting |
|---|
| 4 | @param a Shoot count |
|---|
| 5 | @default a 10 |
|---|
| 6 | @param b Interval (Minutes) |
|---|
| 7 | @default b 0 |
|---|
| 8 | @param c Interval (Seconds) |
|---|
| 9 | @default c 10 |
|---|
| 10 | |
|---|
| 11 | t=b*60000+c*1000 |
|---|
| 12 | if a<2 then let a=10 |
|---|
| 13 | if t<1000 then let t=1000 |
|---|
| 14 | |
|---|
| 15 | print "Total time:", t*a/60000; "min", t*a%60000/1000; "sec" |
|---|
| 16 | |
|---|
| 17 | sleep 1000 |
|---|
| 18 | |
|---|
| 19 | print "Shoot 1 of", a |
|---|
| 20 | shoot |
|---|
| 21 | |
|---|
| 22 | for n=2 to a |
|---|
| 23 | sleep t |
|---|
| 24 | print "Shoot", n, "of", a |
|---|
| 25 | shoot |
|---|
| 26 | next n |
|---|
| 27 | |
|---|
| 28 | end |
|---|
Note: See
TracBrowser
for help on using the repository browser.