Friday, August 7, 2009
3:46
How to turn build in script interpreter
You must enable script mode :
MODSET.xxx file |
[SCRIPT_EN_MODE EN] |
Make 'AUTORUN.xxx' file (xxx same as in MODSET file) with script inside.
Available BASIC keywords |
END, EXIT, PAUSE, WAIT, GOTO, IFGOTO, ALLCLR, CLS, PRINT, LANGUAGE, COLOR, $ % ( for values ) GOSUB, IFGOSUB , RETURN, IF, ELSE,
WHILE, INTERVAL, CYCLE, FILEOUT, FSEARCH,
TIMERON, TIMEROFF. |
Looks like quite full functional BASIC You could try "hello world" first.
AUTORUN.xxx hello world example |
PRINT "Hello World"; EXIT |
According to first test results, you must turn camera on with MENU button and after firmware version number you'll see your program execution result.
Test volunteers are welcome.
General comments (11)
COMMENTS [ Posted by Neil,August 07, 2009 7:25 ] The *istD V1.11 autorun is AUTORUN.321, but the MODSET stuff doesn't appear to work. The firmware has the filename MODSET.TXT, but neither that nor MODSET.321 work for me. Hello world works if scripting is enabled, but you don't need to hold the menu button on when turning the camera on. Hello world shows up when you just press the menu button.
[ Posted by Zebooka,August 08, 2009 6:19 ] On mine *isdDs, MODSET also doesn't work? (I've tried MODSET.TXT as written in firmware .bin file).
Autorun shows Hello world only for a fraction of second, then screen turns-off. Even if there are print commands after first print.
[ Posted by tr13,August 08, 2009 7:01 ] *isdDs Firmware is too different.
Use PAUSE to wait until any key will be pressed.
[ Posted by Zebooka,August 08, 2009 7:25 ] This doesn't work.
Only first line of AUTORUN executed. Maybe it's because I have linux line-ends? will try on Windows in few minutes.
Still my main desire - enable permanently AF TEST menu on K10D ver.1.30
[ Posted by Zebooka,August 08, 2009 7:32 ] Yes. It's true.
You need CRLF windows/dos line endings in AUTORUN file.
Also I've added ; at the end of each line.
Now I'll test all colors available.
[ Posted by Zebooka,August 08, 2009 8:10 ] COLOR:
0 - black
1 - blue
2 - green
3 - cyan
4 - red
5 - violet
6 - yellow
7 - white
8 - orange
9 - gray
Colors with values larger than 9 are strange, they are all similar, but have
different lightness. (upto 269 almost all are green)
10 - dark green
22 - dark red
19 - dark blue ?
30 - very dark green
110,112 - light pink/violet
113 - light orange
125 - light yellow
138 - very dark cyan
NOTE: This is for *ist Ds.
[ Posted by KristoVeeR,August 31, 2009 14:02 ] What's the autorun file extension for k10d v1.30? I tried .txt .421, and it doesn't work :(
[ Posted by sean,September 30, 2009 6:35 ] How to add another text?
[ Posted by tr13,September 30, 2009 15:19 ] What do you want to add?
[ Posted by mugabo,January 29, 2010 5:53 ] I still dint get it...will the word hello world will flick in the lcd after strart turning on the camera?
[ Posted by mugabo,January 29, 2010 5:55 ] So there were 3 file inserted 3 times? btw i have a k10d
|