mIRC Homepage
Posted By: MTech nicklist - 16/06/03 05:09 PM
im trying to add a Idle Time to this nicklist's info popup (when u highlight over a nick)
i just cant get it to load the idle time..
maybe someone can do it?

the file is here:

http://mtec89.ath.cx/nicklist.zip
Posted By: ScatMan Re: nicklist - 16/06/03 05:18 PM
$nick(#,$1).idle
u put this inside the nicklist section of popups



Posted By: MTech Re: nicklist - 16/06/03 05:51 PM
nah man i mean in the tool tip that popups up when u highlight over a nick, no right clicking..
that didnt work in the tool tip
Posted By: ScatMan Re: nicklist - 16/06/03 05:54 PM
what is 'tool tip' ??
Posted By: MTech Re: nicklist - 16/06/03 05:56 PM
look at my script i listed above
Posted By: ScatMan Re: nicklist - 16/06/03 05:58 PM
n/m
Posted By: codemastr Re: nicklist - 16/06/03 05:59 PM
And we're going to download that file because you tell us it is "virus free"? In my mind, if you feel the need to say "it's virus free" that makes me immediately think it is actually a virus.
Posted By: MTech Re: nicklist - 16/06/03 06:04 PM
ok, check it yourself...
Posted By: codemastr Re: nicklist - 16/06/03 06:05 PM
I'd rather just not download it instead. Just because my virus scanner may say it doesn't have a virus doesn't mean it's right. It means the file doesn't have a virus that my virus scanner is familiar with.
Posted By: _D3m0n_ Re: nicklist - 16/06/03 06:05 PM
Code:
alias nicktt {
  if ($1 == color) {
    if ($3 == $me) return %nl.owntext
    elseif ($istokcs(%nl.specialnicks,$3,44)) return %nl.specialtext
    elseif ($3 ishop $active) return %nl.halftext
    elseif ($3 isop $active) return %nl.optext
    elseif ($3 isvoice $active) return %nl.voicetext
    return %nl.regtext
  }

  if ($1 == tooltip) {
    return Nickname: $3 $+ $crlf $+ Address: $address( $+ $3 $+ ,1) $+ $crlf $+ Status: $getStatus($3,$active)
  }
}

alias getStatus {
  if ($istokcs(%nl.specialnicks,$1,44)) return Friends
  elseif ($1 == $me) return Yourself
  elseif ($1 ishop $2) return Halfops
  elseif ($1 isop $2) return Operator
  elseif ($1 isvoice $2) return Voice
  else return Regular
}


ok thats what you have right now ..... to get what your looking for why not just add something like this for that tooltip info

Code:
  if ($1 == tooltip) {
    if ( $3 == $me ) return This is you in $active :) $+ $crlf $+ Status: $getStatus($3,$active) $+ $crlf $+ Idle: $duration($nick($active,$3,a).idle, hh:mm:ss)
    if ( $3 isnotify ) return $3 is on your notify $+ $crlf $+ Address: $address($3,4) $+ $crlf $+ Common Channels: $iif($comchan($3,0) > 0,$comchan($3,0),None) $+ $crlf $+ Status: $getStatus($3,$active) $+ $crlf $+ Idle: $duration($nick($active,$3,a).idle, hh:mm:ss)
    return Nickname: $3 $+ $crlf $+ Address: $address($3,4) $+ $crlf $+ Common Channels: $iif($comchan($3,0) > 0,$comchan($3,0),None) $+ $crlf $+ Status: $getStatus($3,$active) $+ $crlf $+ Idle: $duration($nick($active,$3,a).idle, hh:mm:ss)
  }


atleast thats what ive done into mine and it returns idle time with it
Posted By: MTech Re: nicklist - 16/06/03 06:06 PM
aight ill check that, thanks man wink
Posted By: _D3m0n_ Re: nicklist - 16/06/03 06:08 PM
np at all just let me know if thats how you wanted yours or not ....... i just added your status thing to mine so ...... it still should work for ya maybe with alil more editing than i took the time to do tho
Posted By: MTech Re: nicklist - 16/06/03 06:13 PM
no it dont work right, it only show the time that ther have been idle since iv been in the room, and i have to click the nick, move my cursor off the nick and put it back on the nick to get it to update, not just move my cursor

but it is still only the ammount of time they have been idle since i entered the room...

[edit]
it also wants to continue conting up idle time for someone that came back from being idle...
Posted By: MTech Re: nicklist - 16/06/03 06:15 PM
codemaster i suppose you dont download ANYTHING? heh...
Posted By: codemastr Re: nicklist - 16/06/03 06:34 PM
I download things, just not things when people say "trust me, it's not a virus"
Posted By: MTech Re: nicklist - 16/06/03 06:38 PM
smile look up i didnt say anything of the sort...
Posted By: _D3m0n_ Re: nicklist - 16/06/03 07:06 PM
u cant get idle time for ppl before your in the room unless u whois them and set them to variable ...... thats the only way i know of presantly to do this
Posted By: MTech Re: nicklist - 16/06/03 07:10 PM
so how can i get a script to make the idle time right?
Posted By: _D3m0n_ Re: nicklist - 16/06/03 07:12 PM
i told u ..... the only way is to /whois the channel ..... save each users real idle time ...... then u have a base for it ...... then ud have to run a comparison to that on a timer or when each user enters a line in the channel ...... basically your gonna flood yourself off the server by doing all this ... your best bet is to just use what ive used to just get idle times in channel
Posted By: MTech Re: nicklist - 16/06/03 07:25 PM
ok
Posted By: pheonix Re: nicklist - 16/06/03 08:12 PM
your zip file had no files to extract :tongue: , also it said the folder may have been modified or corrupted
Posted By: MTech Re: nicklist - 16/06/03 09:25 PM
well it screwed up d/ling then i can extract it fine on my pc...
Posted By: _D3m0n_ Re: nicklist - 17/06/03 01:21 AM
pheonix ...... how do u think i got his code ??? there were infact files there and they were intact and operable ...... maybe u just got a bad download
Posted By: pheonix Re: nicklist - 17/06/03 07:40 AM
nah, (my bad m-tech blush) it was just a killer virus that had already destroyed winzip my antivirus and various other programs, nothing to worry about tho :tongue:
Posted By: MTech Re: nicklist - 17/06/03 03:29 PM
smile its ok
Posted By: MTech Re: nicklist - 17/06/03 03:32 PM
another thing:
how can a virus in a zip file do anything?
Posted By: pheonix Re: nicklist - 17/06/03 04:33 PM
i know it cant but i just found it suspicious that you wouldnt check the zip was ok 1st, but as i said i made a big mistake frown
Posted By: codemastr Re: nicklist - 17/06/03 05:02 PM
Umm it sure can. With new virus technologies ANY file can contain a virus, there was one that I can't remember the name off hand, that made it so .jpg files can contain viruses.
Posted By: MTech Re: nicklist - 17/06/03 05:34 PM
never heard of stuff like that, only exes

but i check everything i send out to anything and anything i get from people

some people like to know that i check stuff, some like that guy think its suspicious
Posted By: ScatMan Re: nicklist - 17/06/03 05:37 PM
i don't really know but i think that a virus start working on your computer only when u RUN the file so just don't run it
Posted By: MTech Re: nicklist - 17/06/03 05:55 PM
i never run zips i only extract them
Posted By: pheonix Re: nicklist - 17/06/03 05:59 PM
well ive had 3 from txts,7 from exes,4 from internet sites,n 1 that i didnt know of
Posted By: _D3m0n_ Re: nicklist - 17/06/03 07:49 PM
wow in the last 6 yrs ive only ever gotten one virus ...... you must be really in need of watching where ur downloading from
Posted By: MTech Re: nicklist - 17/06/03 08:06 PM
i got a trojan from a warez site but my avs caught it and i erased it, no harm done smile
Posted By: pheonix Re: nicklist - 17/06/03 08:33 PM
i know, its because i normally improve on my scripting by learning from others code, so i perform a google search every time i think of something i want to see, ive got 4 viruses from doing that :tongue:
Posted By: nitestarzz Re: nicklist - 18/06/03 06:32 PM
Code:
 
alias nicktt {
  if ($1 == color) {
    if ($3 == $me) return %nl.owntext
    elseif ($istokcs(%nl.specialnicks,$3,44)) return %nl.specialtext
    elseif ($3 ishop $active) return %nl.halftext
    elseif ($3 isop $active) return %nl.optext
    elseif ($3 isvoice $active) return %nl.voicetext
    return %nl.regtext
  }

  if ($1 == tooltip) {
    return Nickname: $3 $+ $crlf $+ Address: $address( $+ $3 $+ ,1) $+ $crlf $+ Status: $getStatus($3,$active)
  }
}


this code is from Custom Nicklist by l0n3R in mircscripts.org
and to tell u i'm l0n3R

with reference to u wanting to return the idle time which i had try but it wont work

cause when the dll sense its a tooltip it call for the nicktt alias
the dll perform the alias and it places the command on hold till the dll request it to display to the screen

so even u do a whois nick
it wont return the current nick that is rollover it will only return the result of the previous nick that is rollover
Posted By: MTech Re: nicklist - 18/06/03 07:19 PM
oh
ok ty, maybe try to fix this somehows? it would be cool if it can be done
Posted By: _D3m0n_ Re: nicklist - 18/06/03 08:02 PM
if that is his code mtech ..... hes saying that what your trying to accomplish was attemtped ,,,,, but due to the time it takes to get the info and the time the tooltip has to fire ....... it just wont perform it corectly ..... stick with the way i showed u or just dont mess with it at all ..... your just trying to give yourself a huge headache
Posted By: MTech Re: nicklist - 19/06/03 01:59 AM
ill try to delay the popup..
Posted By: nitestarzz Re: nicklist - 19/06/03 05:04 AM
its not how late the delay of the tooltip came out

but its its already on hold the result than when the tooltip is call to be display it will just display the result that is on hold
Posted By: MTech Re: nicklist - 19/06/03 05:32 AM
yea i couldnt figure it out...
im going to figure somthing to display the idle time if it kills meh...
Posted By: _D3m0n_ Re: nicklist - 19/06/03 05:35 AM
i told u how ... but your only gonna be able to do it in channels that arnt huge or your gonna flood off the server
Posted By: MTech Re: nicklist - 20/06/03 02:00 AM
i go to huge channels....
Posted By: _D3m0n_ Re: nicklist - 20/06/03 02:32 AM
then dont mess with it ...... mine works fine for me and ive been in channels of 150 + ...... and on some servers u cant /who a chan unless your op in the chan ..... makes some scripts not work properly
Posted By: MTech Re: nicklist - 20/06/03 03:57 AM
id rather have no idle time than an incorrect one
Posted By: _D3m0n_ Re: nicklist - 20/06/03 05:35 AM
ok then dont use one ...... doesnt really matter to me in the least ... what mirc has always got its idle time thru that is in channel idle time not server wide idle time ..... and it cant get idle time from before u were there ..... there is no base to get it from ...... its not totally incorrect ...... its just not the real idle time your after

furthermore ...... you will never be able to get the full idle time of every user because they can set themselves +i which is invisble on most servers ..... negating any scan u can run to get it from

why would an idle time be so important in the first place? is there a dire need that u have to have this? i mean it could be done ...... just not in that tooltip ......
Posted By: MTech Re: nicklist - 20/06/03 11:57 PM
yep i like to know if anyone is listening before i go off blabering in the channel
© mIRC Discussion Forums