mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Joined: Mar 2005
Posts: 20
D
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
;  }
;}
 

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Mar 2005
Posts: 20
D
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!

Joined: Mar 2005
Posts: 20
D
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!!!

Joined: Oct 2004
Posts: 38
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Oct 2004
Posts: 38
don`t forget about on notice and on action too

Joined: Mar 2005
Posts: 20
D
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
}
}


Joined: Feb 2005
Posts: 194
A
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.
Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Thank you folks so much! You've been great help and quick!!!

Joined: Feb 2005
Posts: 194
A
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"
Joined: Mar 2005
Posts: 20
D
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!

Joined: Feb 2005
Posts: 194
A
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"
Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
I have that - but still not beeping for me frown

Joined: Feb 2005
Posts: 194
A
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"
Joined: Mar 2005
Posts: 20
D
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)

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Mar 2005
Posts: 20
D
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 }

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Feb 2005
Posts: 194
A
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"
Joined: Mar 2005
Posts: 20
D
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 }

Joined: Nov 2003
Posts: 2,327
T
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

Link Copied to Clipboard