> s = pickstring("alpha\nbeta\rgamma\rdelta","What have you done?")
> I like to see the most often used activities in the picklist, but
> neither \n nor \r nor \r\n does show several list entries.

Works fine for me.  Make sure \ is your escape character 
(setup|advanced|chars) or check standard configuration on 
setup|advanced|config.




> Then I want to save the result in a new line of a file with the
> current date and time.
local s = pickstring ...// as above
local d = formatdate("...",date )  //see help for ...
local t = formattime("...",time )  //see help
Exec.Tofile("C:/file/path/with/slashes.txt", s++" "++d++" "++t)


--------------------------------------------

A totally different idea.  Have a countdown timer that runs a script 
every ten seconds.  That script writes the current exe file 
(win.exename("active")) to a file.  Then analyse that file with Excel 
pivot tables to see what programs you run and how much time you spend 
in each. 


Reply via email to