Discussion:
scripts
(too old to reply)
Grumpy
2006-03-19 00:20:11 UTC
Permalink
Really good to see some movement here again.

I have been working on a problem and looking for some advice

I have a notify list longer than mirc
I need to access an external file list of names and message myself when a
nick is online, say scan each minute or so. Not being an experieced scripter
I am lost. Any advice would be appreciated,.

Ty
voipme
2006-03-20 14:22:03 UTC
Permalink
A couple of suggestions on doing this. A timer is going to be your
friend here. This is just a rough script that isn't really usable, but
it demonstrates what you'll need to do when writing the script. First,
you have the timer that repeats every 60 seconds until you stop it.

timer1 0 60 notify2

I'd recommend a hash table to store all of your nicks as they tend to
run fast and hold a lot of information. In fact, why don't we just
store the nicks in a constant hash table? The helpfile for mIRC has a
lot of good info on hash tables, and I highly recommend you read it.
Initially I was going to provide a quick little script but I tend to
overdo things and it almost turned into me scripting up a really
lengthy notify script.
Grumpy
2006-03-22 04:36:43 UTC
Permalink
yeh thats not the problem tho, it's doing the actual test and notifying if
the user is online
I was toy-ign with this idea

start a loop timer
read 1st line of data file
a: do a whois on the line info
if the length of the returned string is longer than say 20 characters, then
assume the user is active
if active send a message
increment line count until finished
go back to a:

but I need to code it

thanks for the help

"voipme" <
Post by voipme
A couple of suggestions on doing this. A timer is going to be your
friend here. This is just a rough script that isn't really usable, but
it demonstrates what you'll need to do when writing the script. First,
you have the timer that repeats every 60 seconds until you stop it.
timer1 0 60 notify2
I'd recommend a hash table to store all of your nicks as they tend to
run fast and hold a lot of information. In fact, why don't we just
store the nicks in a constant hash table? The helpfile for mIRC has a
lot of good info on hash tables, and I highly recommend you read it.
Initially I was going to provide a quick little script but I tend to
overdo things and it almost turned into me scripting up a really
lengthy notify script.
Loading...