mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Replacing the < > around a nick #114019 11/03/05 06:56 AM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
How do you replace the default < > around the nicknames with something like [ ] instead? I've tried and tried and can not get it to work. It will echo to my screen fine - but doesn't really send to channels / queries.

This is what I have (dont laugh :P )

Code:
 n ^*:text:*:#:{
  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) 2 $1-
  haltdef
}

;FOR PRIVATE MESSAGES
on ^*:text:?:{
  echo -t $nick $chr(91) $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $1-
  haltdef
}


;FOR YOUR OWN NICKNAME

on *:INPUT:#: { if (/* !iswm $1) || ($ctrlenter) {
    echo -t $chan $chr(32) $+ 8 $+ $me $+  $chr(32) $+ $chr(93) $+ $chr(58) $+ 2 $1-
    haltdef
  }
}


;FOR PRIVATE MESSAGES FOR SELF
;on 1:INPUT:?:  { if (/* !iswm $1) || ($ctrlenter) {
;    echo -t  $me $+  $chr(32) $+ $chr(93) $+ $chr(58) $+ 2 $1-
;    haltdef
;  }
;}
 

Re: Replacing the < > around a nick #114020 11/03/05 08:57 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
For the first one you're missing an o:

Code:
[color:red]o[/color]n ^*:text:*:#:{
  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) 2 $1-
  haltdef
}


For the second one you're missing the matchtext section:

Code:
on ^*:text:[color:red]*:[/color]?:{
  echo -t $nick $chr(91) $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $1-
  haltdef
}


The third one should display fine but it won't message the channel:

Code:
on *:INPUT:#: { 
  if (/* !iswm $1) || ($ctrlenter) {
    echo -t $chan $chr(32) $+ 8 $+ $me $+  $chr(32) $+ $chr(93) $+ $chr(58) $+ 2 $1-
    [color:Red].msg $chan $1-[/color]
    haltdef
  }
}


You need to add the msg part to the last (Commented) one as well,
but change $chan to $active.


New username: hixxy
Re: Replacing the < > around a nick #114021 11/03/05 05:25 PM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Thank you!

So the:
Code:
on *:INPUT:#: {   if (/* !iswm $1) || ($ctrlenter) {    echo -t $chan $chr(32) $+ 8 $+ $me $+  $chr(32) $+ $chr(93) $+ $chr(58) $+ 2 $1-    .msg $chan $1-    haltdef  }}


Will work in a channel correctly - and would I need to change the :#: to :?: to work in a query window?

Thank you so much!

Re: Replacing the < > around a nick #114022 11/03/05 08:09 PM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
didn't see that bottom part about $active - works great now! thank you!!!

Re: Replacing the < > around a nick #114023 11/03/05 10:40 PM
Joined: Oct 2004
Posts: 38
S
Stranger_Lv Offline
Ameglian cow
Offline
Ameglian cow
S
Joined: Oct 2004
Posts: 38
don`t forget about on notice and on action too

Re: Replacing the < > around a nick #114024 11/03/05 11:59 PM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Quote:
don`t forget about on notice and on action too


How do I do that? I noticed now all the actions and notices are all Bold. This is what I ended up having:

Quote:

;FOR CHANNELS
on ^*:text:*:#:{
echo -t $chan $chr(32)  $+ 10 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58)  $+ $1-
haltdef
}

;FOR PRIVATE MESSAGES
on ^*:text:*:?:{
echo -t $nick $chr(32) $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $1-
haltdef
}


;FOR YOUR OWN NICKNAME IN CHANNEL

on *:INPUT:#: { if (/* !iswm $1) || ($ctrlenter) {
echo -t $chan $chr(32)  $+ 8 $+ $me $+ $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
.msg $chan $1-
haltdef
}
}


;FOR PRIVATE MESSAGES FOR SELF
on 1:INPUT:?: { if (/* !iswm $1) || ($ctrlenter) {
echo -t $me $+ $chr(32) $+ $chr(93) $+ $chr(58) $+ 2 $1-
.msg $active $1-
haltdef
}
}


Re: Replacing the < > around a nick #114025 12/03/05 12:59 AM
Joined: Feb 2005
Posts: 194
A
alhammer Offline
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
You can use on NOTICE, and on ACTION. Such as...
Code:
on ^*:NOTICE:*:*:{
  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) 2 $1-
  haltdef
}

And...
Code:
on ^*:ACTION:*:#:{
  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) 2 $1-
  haltdef
}
Good luck! laugh

[EDIT]
By the way, sorry about the double spacing. I'm not quite sure what causes that.

Last edited by alhammer; 12/03/05 01:04 AM.
Re: Replacing the < > around a nick #114026 12/03/05 02:48 AM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Thank you folks so much! You've been great help and quick!!!

Re: Replacing the < > around a nick #114027 12/03/05 02:56 AM
Joined: Feb 2005
Posts: 194
A
alhammer Offline
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
laugh


"God sometimes puts us in the dark for us to see the light"
Re: Replacing the < > around a nick #114028 12/03/05 02:58 AM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
one last thing if I may -

When someone PM's me now - it doesn't beep... and when I take focus off the query window into an channel somewhere - and they type again - it doesn't beep anymore - used to - it would beep if the query window was not the primary focus. There something special I need to do - or do I lose that my modifying what I have?

Thanks!

Re: Replacing the < > around a nick #114029 12/03/05 03:05 AM
Joined: Feb 2005
Posts: 194
A
alhammer Offline
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
View...Options...Sounds..."Beep on"...tick: "Query message"

Last edited by alhammer; 12/03/05 03:06 AM.

"God sometimes puts us in the dark for us to see the light"
Re: Replacing the < > around a nick #114030 12/03/05 04:15 AM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
I have that - but still not beeping for me frown

Re: Replacing the < > around a nick #114031 12/03/05 04:50 AM
Joined: Feb 2005
Posts: 194
A
alhammer Offline
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Tell me what option you have set in your sound options. Then i should be able to better help you. laugh


"God sometimes puts us in the dark for us to see the light"
Re: Replacing the < > around a nick #114032 12/03/05 04:56 AM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
mIRC Options:

Sounds
Enable Sounds checked
On Event, play sound:
Query/Chat = Event Beep


Beep on:
Query Message - checked
Message while in buffer checked (and this works)

Re: Replacing the < > around a nick #114033 12/03/05 09:05 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
alhammer, the beeping doesn't work because haltdef tends to halt everything the normal event would do.

Datawire, use the on open event:

Code:
on *:open:?:{ beep 5 }


New username: hixxy
Re: Replacing the < > around a nick #114034 12/03/05 06:54 PM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Thanks! Trying that now -

So I have:

Code:
on *:open:?:{ beep 5 }

on *:NOTICE:*:*{ beep 1 }

Re: Replacing the < > around a nick #114035 12/03/05 07:01 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You're missing an : in the notice event.

Code:
on *:NOTICE:*:*[color:Red]:[/color]{ beep 1 }


New username: hixxy
Re: Replacing the < > around a nick #114036 12/03/05 07:06 PM
Joined: Feb 2005
Posts: 194
A
alhammer Offline
Vogon poet
Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
Thanks tidy for that comment. I didnt know that. wink


"God sometimes puts us in the dark for us to see the light"
Re: Replacing the < > around a nick #114037 12/03/05 07:07 PM
Joined: Mar 2005
Posts: 20
D
Datawire Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
I've added that and made the correction - and it does beep when they open a new window - but now - if I'm in a channel - it does not beep if someone types in an open query window thats not in focus - but it does when I unload this script in this thread. I tried adding:

Code:
 
on ^*:ACTION:*:?:{ beep 1 }

Re: Replacing the < > around a nick #114038 12/03/05 07:09 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
For the query beeping use:

Code:
on *:text:*:?:{
  if ($nick != $active) { beep }
}


New username: hixxy
Page 1 of 2 1 2