rejetto forum

Auto-away since

0 Members and 1 Guest are viewing this topic.

Offline alkimiya

  • Moderator
  • Tireless poster
  • *****
    • Posts: 315
    • View Profile
I have the %awaysince% in my autoaway msg and it shows the time I was set away. Wouldn't it be better if it said which time I last used the computer?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13275
    • View Profile
it would not be better

it would be better if we had another symbol for that you asked :)


Offline alkimiya

  • Moderator
  • Tireless poster
  • *****
    • Posts: 315
    • View Profile
Off course :)

Btw is there a list of symbols for automsgs somewhere?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13275
    • View Profile
Code: [Select]
function getAutomsgFor(c:Tcontact):string;
var
  h:Tdatetime;
begin
if imAwaySince > 0 then
  h:=(now-imAwaySince)*24
else
  h:=0;
result:=template(automessages[0], [
  '%you%',   c.displayed,
  '%nick%',  c.nick,
  '%ip%', ifThen(c.ip=0,___('unk'),ip2str(c.ip)),
  '%status%', statusName(c.status),
  '%proto%', ifThen(c.proto=0, ___('unk'),  intToStr(c.proto)),
  '%awaysince%', formatDatetime(timeformat.automsg, imAwaySince),
  '%elapsedhours%', intToStr(trunc(h)),
  '%elapsedminutes%', intToStr(trunc(frac(h)*60)),
  '%h%', intToStr(hourof(now)),
  '%m%', intToStr(minuteof(now)),
  '%s%', intToStr(secondof(now)),
  '%D%', intToStr(dayof(now)),
  '%M%', intToStr(monthof(now)),
  '%Y%', intToStr(yearof(now)),
  '%hh%', intToStr(hourof(now),2),
  '%mm%', intToStr(minuteof(now),2),
  '%ss%', intToStr(secondof(now),2),
  '%DD%', intToStr(dayof(now),2),
  '%MM%', intToStr(monthof(now),2),
  '%YY%', intToStr(yearof(now),2),
  '%onlinecontacts%', intToStr(ICQ.readroaster.count-countContactsIn(SC_offline)),
  '%offlinecontacts%', intToStr(countContactsIn(SC_offline))
]);
end; // getAutomsg



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13275
    • View Profile
Quote from: "Timo"
And with winamp :?:
uh?


ggege

  • Guest
how can i display what winamp play at the moment? something like that %winamp...%


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13275
    • View Profile