Luarida is Script that operates on Android. The linguistic system is Lua. The program can be written as easily as BASIC. The sample file is not installed when there is already Luarida folder in the SD card. Please Copy&Paste from my Web site or rename the folder.
The self-made program can be put on the home as a short cut.
(1)Input Command
editsetText(text)
editText(title[, flag])
touch([mode])
inkey([mode])
(2)System Command
system.exit()
system.expCall(classname [, data, type])
system.getAppPath()
system.getCardMnt()
system.getSec()
system.impCallActionSend(text [, type])
system.impCallActionView(text, type)
system.setrun(Luafilename)
system.setScreen(mode)
system.setSleep(off(keep)/on)
system.version()
El_Psy_Congroo()
(3)Graphic Command
canvas.drawCircle(x, y, r, color [, fill])
canvas.drawCls([colorcode])
canvas.drawLine(x0, y0, x1, y1, colorcode)
canvas.drawRect(x0, y0, x1, y1, colorcode [, fill])
canvas.getBmpSize(filename)
canvas.getColor(x, y)
canvas.getg(gx0, gy0, gx1, gy1, wx0, wy0, wx1, wy1)
canvas.getviewSize()
canvas.loadBmp(filename, x0, y0, x1, y1 [, n])
canvas.putCircle(x, y, r, colorcode [, fill])
canvas.putCls([colorcode])
canvas.putflush([x0, y0, x1, y1])
canvas.putg(gx0, gy0, gx1, gy1, wx0, wy0, wx1, wy1)
canvas.putLine(x0, y0, x1, y1, colorcode)
canvas.putRect(x0, y0, x1, y1, colorcode [, fill])
canvas.putrotg(cx, cy, angle, wx0, wy0, wx1, wy1)
canvas.putWork(xs0, ys0, xs1, ys1, xd0, yd0, xd1, yd1)
canvas.saveBmp(filename, x0, y0, x1, y1)
canvas.setMainBmp(Width, Height)
canvas.setWorkBmp(Width, Height)
canvas.workCls([colorcode])
canvas.workflush(x0, y0, x1, y1)
color(r, g, b [, Alpha])
(4)Text Command
canvas.drawText(text, x, y, size, colorcode[, backcolorcode])
canvas.drawTextBox(text, x, y, size, colorcode, wide[, backcolorcode])
canvas.drawTextCenter(text, x, y, size, colorcode[, backcolorcode])
canvas.drawTextRotate(text, x, y, angle, size, colorcode[, backcolorcode])
canvas.putText(text, x, y, size, colorcode[, backcolorcode])
canvas.putTextBox(text, x, y, size, color, wide[, backcolorcode])
canvas.putTextCenter(text, x, y, size, colorcode[, backcolorcode])
canvas.putTextRotate(text, x, y, angle, size, colorcode[, backcolorcode])
(5)Http Command
http.addHeader(headername, data)
http.addParam(post-parameter)
http.clrHeader()
http.clrParam()
http.get(url, savefilename)
http.post(url)
http.setContentType(content-type)
http.setPostFile(post-filename)
http.status()
(6)Dialog Command
dialog(title, text[, button])
item.add(text[, flag])
item.check(title)
item.clear()
item.list(title)
item.radio(title, position)
toast(text [, time])
(7)Sensor Command
sensor.getAccel()
sensor.setdevAccel(sw)
sensor.setdevMagnet(sw)
sensor.setdevOrient(sw)
sensor.getGdirection()
sensor.getMagnet()
sensor.getOrient()
(8)Sound Command
sound.beep([hz[, ms]])
sound.isPlay(soundnumber)
sound.pause(soundnumber)
sound.restart(soundnumber)
sound.setSoundFile(filename, soundnumber, flag)
sound.start(soundnumber [, loop])
sound.stop(soundnumber)
(9)ZIP Command
zip.addFile(compressed-filename [, melt-folder])
zip.exec(zipfilename)
zip.status()
(10)socket Command
sock.close(Number)
sock.connectOpen(Number, Address, Port[, TimeOut])
sock.getAddress(Number[, Local])
sock.listenOpen(Number, Port[, TimeOut])
sock.nclose(Number)
sock.nconnectOpen(Number, Address, Port[, TimeOut])
sock.ngetAddress(Number[, Local])
sock.nlistenOpen(Number, Port[, TimeOut])
sock.nrecv(Number[, TimeOut])
sock.nsend(Number, Data, Length)
sock.recv(Number[, TimeOut])
sock.send(Number, Data, Length)
(11)sprite Command
sprite.clear()
sprite.define(Number, WorkX0, WorkY0, WorkX1, WorkY1)
sprite.inArea(Number, Distance)
sprite.init()
sprite.move(Number, View, CX, CY [, WRatio, HRatio[, Angle]])
sprite.put()
sprite.touch([Number[, Number]])
The number of characters of explanations exceeded, and refer to the explanation blog for the command of the remainder, please.
http://d.hatena.ne.jp/tarosay/20110217/1297957894
Sample program for Luarida. Added a command to rotate text and images. Using a sample of the command. When you run this program, / sdcard / luarida / rotatesample / scripts folder ...
Sample program for Luarida. Sample program to get the file name of the folder. The sample comes with a scrolling text. Appears on the screen to get the photo file name. Later, ...
Menu (luarida.lua) of Luarida is changed. Please note an overwrite when you correct luarida.lua for myself. Please choose "Backup of the menu", and back up the menu when you ...
Sample program for Luarida. Intent is a sample command used to call other applications using the. When you run this program, / sdcard / luarida / intentsample / scripts folder is ...
Sample program for Luarida. SD card file is a sample reading. When you run this program, / sdcard / luarida / fileiosample / scripts folder is copied. Later, luarida.lua please ...
Sample program for Luarida. Play a sound file is a sample program. Sound commands have BGM mode and sound effects mode. When you run this program, / sdcard / luarida / soundsample ...
Sample program for Luarida. sound.beep Commands to process a sample. When you run this program, / sdcard / luarida / beepsample / scripts folder is copied. Later, luarida.lua ...
Sample program for Luarida. Using a sample command to get the accelerometer data. When you run this program, / sdcard / luarida / gsensorsample / scripts folder is copied. Later, ...
Sample program for Luarida. Dialog is a sample command used to display lists and radio buttons and check list. When you run this program, / sdcard / luarida / listsample / scripts ...
Sample program for Luarida. Bitmap Commands to process a sample. When you run this program, / sdcard / luarida / bitmapsample / scripts folder is copied. Later, luarida.lua please ...