Or a combined "log or debug" is possible:
Commands:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
.log("myvar")
Script:
if(logging = "debug")do
local line = arg(1) ++ " = " ++ eval(arg(1))
win.debug(line)
elseif(logging = "log")
local line = date ++ " " ++ time ++ " " ++ arg(1) ++ " = " ++ eval(arg(1))
exec.tofile(logpath,line)
endif
quit
@debug
static logging = "debug"
endif
@log
static logging = "log"
endif
@none
static logging = ""
endif
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/