mIRC Home    About    Download    Register    News    Help

Print Thread
#42068 15/08/03 04:04 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
anywhere i can read about "signals".. mirc.hlp dont give much :tongue:

#42069 15/08/03 04:10 PM
P
pheonix
pheonix
P
signals are easy:

alias test {
.signal test hello person
}
on *:SIGNAL:test:{
echo -a $signal - $1-
}
this should echo "test - hello person"

#42070 15/08/03 04:17 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
I trying to figure out how i can halt the text when i do /channel .. i dont want to see that

* Retrieving # info...

i want to use haltdef on that, but so far i only can hide it with colors on "info2 text" :tongue:

#42071 15/08/03 04:21 PM
P
pheonix
pheonix
P
dunno soz

#42072 15/08/03 06:08 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Add this alias..
Code:
alias channel {
  if ($active ischan) { .echo $target * Retrieving # info... | channel }
  else { echo You are not on a channel }
}

#42073 15/08/03 07:19 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
I buy you a beer if that works laugh the only thing missing in my channel theme, i test it tomorow :tongue:

#42074 15/08/03 07:22 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Seems I missed the halt bit, sorry..
Code:
alias channel {
  if ($active ischan) { .echo $target * Retrieving # info... | channel | halt }
  else { echo You are not on a channel }
}

I have no idea why I forgot to paste that bit. :s

#42075 15/08/03 07:23 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
haltdef plz grin smirk

#42076 15/08/03 07:31 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
No point using /haltdef, /halt works fine.

#42077 15/08/03 07:52 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
I have other functions that also will work with that event crazy :tongue:

#42078 15/08/03 08:12 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
* Retrieving #temp info... <<-- the echo
* Retrieving #temp info...

i cant make it to HALT or do a HALTDEF frown

#42079 15/08/03 11:33 PM
Joined: May 2003
Posts: 215
L
Fjord artisan
Offline
Fjord artisan
L
Joined: May 2003
Posts: 215
As far as I know, haltdef doesn't have any affect on aliases. It's better to use return if you want to halt an alias without completely halting the script

#42080 15/08/03 11:35 PM
Joined: May 2003
Posts: 215
L
Fjord artisan
Offline
Fjord artisan
L
Joined: May 2003
Posts: 215
Prefix the /channel command with a . to hide the * Retrieving #channel info...

#42081 16/08/03 02:13 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
That worked just fine.. Thnx for the help ! smirk


Link Copied to Clipboard