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
Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
For some reason - it still does not beep when a query window open the background - here is what I have in its entirety of the script loaded:

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

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

;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)  $+ 10 $+ $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  $chr(32)  $+ 8 $+ $me $+  $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
    .msg $active $1-
    haltdef
  }
}

on ^*:ACTION:*:#:{
  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
  haltdef
}

on ^*:NOTICE:*:*:{
  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
  haltdef
}

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

Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
Not sure if this is what you are looking for but this is what I currently use in my script and it uses two different sounds. One sound plays when the person first private message's you (eg: incoming private message) and a second one for everytime they type in the query window (eg: beep). Works very well and it also only plays the sounds if the window is not active except when the query window is active but mirc is minimized then the sound will alert when something is typed.

Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
heh smile what is is the solution? :-)

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You shouldn't be using 2 of the same events in a single file, you'll have to add the if ($nick != $active) { beep } into your other on text event.


New username: hixxy
Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
Code:
on *:open:?:{
  if (!$hget(msged,$site)) {
    splay $mircdirsounds/pm.wav
    hinc -m msged $site
    hinc -u1 msged temp
  }
} 
on *:text:*:?:{ 
  if ($active != $nick) &amp;&amp; (!$hget(msged,temp)) splay $mircdirsounds/pms.wav
}


Sorry for posting but not postiung the sollution. I was told today on my way to work by my brother who also comes here that i forgot to give the code. The sad part is this is the second time i've posted that i forgot to give the code smile

/me chalks it up to old age

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
It isn't the age, your work is pushing you too hard. Ask for a pay rise. :tongue:

Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Quote:
Code:
on *:open:?:{
  if (!$hget(msged,$site)) {
    splay $mircdirsounds/pm.wav
    hinc -m msged $site
    hinc -u1 msged temp
  }
} 
on *:text:*:?:{ 
  if ($active != $nick) &amp;&amp; (!$hget(msged,temp)) splay $mircdirsounds/pms.wav
}


Sorry for posting but not postiung the sollution. I was told today on my way to work by my brother who also comes here that i forgot to give the code. The sad part is this is the second time i've posted that i forgot to give the code smile

/me chalks it up to old age


Wow! Thanks! It is working :-)

You guys have been a HUGE help!

Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
That worked well - and I know I am probably getting on everyones nerves big time... But what I want I've seen in scripts/addons but I dont need all the other stuff in them.

In summary of What I'm trying to do is this:
1. changed the < > around the nicks (done)
2. beep when a new query window is opened (done)
3. beep when someone types in that query window when its not in focus (done) - but I do not want it beeping when the query window is in focus.
4. Have the query window 'flash' when text is entered - and not in focus / active.
5. Have it display the name of the person that sent the PM/Query when mIRC itself it not the focus/active application or even if minimized. and/or if I'm in a normal channel and still have that query open - still allow it to flash/beep for me to gain my attention... This is I have with 99.9% of you help:

If you can help - I would greatly appreciate it. I also can not seem to find all these commands we're using anywhere - so i'm clueless to what to try.

Code:
on *:open:?:{ 
  if (!$hget(msged,$site)) {
    beep 5
    flash $+ $nick
    ;splay $mircdirsounds/page.wav
    hinc -m msged $site    
    hinc -u1 msged temp 

  }
}

on *:text:*:?:{ 
  if ($active != $nick) &amp;&amp; (!$hget(msged,temp)) 
  ;splay $mircdirsounds/default.wav
  flash $+ $nick
  beep 1

} 
;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)  $+ 10 $+ $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  $chr(32)  $+ 8 $+ $me $+  $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
    .msg $active $1-
    haltdef
  }
}

;on ^*:ACTION:*:#:{
;  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
;  haltdef
;}

;on ^*:NOTICE:*:*:{
;  echo -t $chan $chr(32) $+ 7 $+ $nick $+ $chr(32) $+ $chr(93) $+ $chr(58) $+  $1-
;  haltdef
;}


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

Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
is this something too complex that I'm trying to do?

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
no more than liekly your threads just not on the first page anymore, so no ones noticed it.

Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
so I'm outta luck now? frown They where so awesome in helping.

Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Could you help with - my post: #119949 ?

I am so close to having what I wanted.

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
4. Look at the -g switch in /window (/help /window)
5. Look at the /flash command (/help /flash)


New username: hixxy
Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
I have beated myself up looking at that - and everything I've tried doesn't work.

/flash [-wbrN] [window] <text>
This flashes the specified mIRC window/icon with text in the titlebar but only if mIRC is not the active application.

The -b switch makes mIRC beep every second.
The -w switch makes mIRC play the Flash sound specified in the Event Beeps section.

The -rN switch makes mIRC repeat the flash only N times.

I've dug through the help file - googled - even tried looking at other scripts - but they are so spread out - its hard to tell what is what - and when it does anything.

Page 1 of 2 1 2

Link Copied to Clipboard