Difference between revisions of "Luo.Cont"
From OpenEUO
(ebuddy http://chromatist.tripod.com/article-prayin-for-help-t.i.html article prayin for help t.i www.patuxent farms.com http://chromatist.tripod.com/www.naughtyallie.com-passwords-members.html www.na) |
(killspam) |
||
| Line 1: | Line 1: | ||
| − | + | == Calling Convention == | |
| + | Call | ||
| + | local f = sl.luo.Cont | ||
| + | -- later | ||
| + | local t = f() | ||
| + | Args | ||
| + | none | ||
| + | Returns | ||
| + | f is a function, which when called produces t | ||
| + | t is a table of UO variable values | ||
| + | |||
| + | == Example Usage == | ||
| + | local l = sl.luo | ||
| + | local s = sl.str | ||
| + | local t,vo,v = {}, "", "" | ||
| + | while true do | ||
| + | t = l.Cont() | ||
| + | vo = s.joinsep(" ", | ||
| + | t.ID, | ||
| + | t.Kind, | ||
| + | t.Name, | ||
| + | t.Type) | ||
| + | print(vo) | ||
| + | repeat | ||
| + | t = l.Cont() | ||
| + | v = s.joinsep(" ", | ||
| + | t.ID, | ||
| + | t.Kind, | ||
| + | t.Name, | ||
| + | t.Type) | ||
| + | wait(100) | ||
| + | until v ~= vo | ||
| + | end | ||
| + | |||
| + | == Description == | ||
| + | |||
| + | The live UO luo.Cont method returns a table of current UO variable values at the time when it is called. Keys and values of the resultant table: | ||
| + | |||
| + | key value | ||
| + | ID UO.ContID | ||
| + | Kind UO.ContKind | ||
| + | Name UO.ContName | ||
| + | PosX UO.ContPosX | ||
| + | PosY UO.ContPosY | ||
| + | SizeX UO.ContSizeX | ||
| + | SizeY UO.ContSizeY | ||
| + | Type UO.ContType | ||
| + | |||
| + | |||
| + | == See Also == | ||
| + | |||
| + | * [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] | ||
| + | |||
| + | * [http://www.easyuo.com/openeuo/wiki/index.php/Documentation#Variables UO Variables] | ||
| + | |||
| + | * [[luo]] | ||
Latest revision as of 11:14, 13 July 2012
Calling Convention
Call
local f = sl.luo.Cont -- later local t = f()
Args
none
Returns
f is a function, which when called produces t t is a table of UO variable values
Example Usage
local l = sl.luo
local s = sl.str
local t,vo,v = {}, "", ""
while true do
t = l.Cont()
vo = s.joinsep(" ",
t.ID,
t.Kind,
t.Name,
t.Type)
print(vo)
repeat
t = l.Cont()
v = s.joinsep(" ",
t.ID,
t.Kind,
t.Name,
t.Type)
wait(100)
until v ~= vo
end
Description
The live UO luo.Cont method returns a table of current UO variable values at the time when it is called. Keys and values of the resultant table:
key value ID UO.ContID Kind UO.ContKind Name UO.ContName PosX UO.ContPosX PosY UO.ContPosY SizeX UO.ContSizeX SizeY UO.ContSizeY Type UO.ContType