mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
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) && (!$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) && (!$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 2 of 2 1 2

Link Copied to Clipboard