Author Topic: Auto-away since  (Read 5918 times)

0 Members and 1 Guest are viewing this topic.

Offline alkimiya

  • Moderator
  • Tireless poster
  • *****
  • Posts: 315
    • View Profile
Auto-away since
« on: July 03, 2002, 01:54:22 PM »
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: 12903
    • View Profile
Auto-away since
« Reply #1 on: July 03, 2002, 03:50:18 PM »
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
Auto-away since
« Reply #2 on: July 03, 2002, 03:56:18 PM »
Off course :)

Btw is there a list of symbols for automsgs somewhere?

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12903
    • View Profile
Auto-away since
« Reply #3 on: July 03, 2002, 04:55:16 PM »
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

Timo

  • Guest
Auto-away since
« Reply #4 on: November 28, 2005, 07:06:27 PM »
And with winamp :?:

 :P

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12903
    • View Profile
Auto-away since
« Reply #5 on: November 29, 2005, 01:32:55 AM »
Quote from: "Timo"
And with winamp :?:
uh?

ggege

  • Guest
Auto-away since
« Reply #6 on: January 05, 2006, 10:33:54 AM »
how can i display what winamp play at the moment? something like that %winamp...%

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12903
    • View Profile
Auto-away since
« Reply #7 on: January 05, 2006, 01:38:05 PM »
do you REALLY guys want such feature?