mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
Code:
on *:text:*:?:{
  if ( ( $active != $nick ) && (!$hget(msged, temp) ) ) {
    beep 2  
    ;echo "being paged"
    flash -w $active $+ $nick
  }
}



The idea - is when i'm not focused on that PM - it beeps and flashes - and when I'm not focused on the mirc application - it should beep and flash in the status bar showing the $nick

I've figured out alot of stuff - but this is am totally stuck ok - so any help would be appreciated - you guys have been great!

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
The Beeps & flashes when you receive a query can be configured thru mIRC's options.

For the beeps, ALT-O -> SOUNDS -> Check the box "Enable sounds" -> Check the box "Query Message" under Beeo on -> Check the box "Use Internal beep" or you could use your own sound.

For the Flashes, ALT-O -> IRC -> Options -> Check the box "Query Message" under Flash on.

Then you would only use the flash command with the text event:

Code:
 on *:text:*:?:  flash -w PM: $nick  


Hope that helps.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Mar 2005
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2005
Posts: 20
From what I've been told the haltdef from other on text events will prevent the enternal flash/beeps from working.
Here is the entire snippit of what I'm doing:

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

on *:text:*:?:{
  if ( ( $active != $nick ) && (!$hget(msged, temp) ) ) {
    beep 2  
    ;echo "being paged"
    flash -w $active $+ $nick
  }
}

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

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


;FOR YOUR OWN NICKNAME IN CHANNEL

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


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



Link Copied to Clipboard