mIRC Home    About    Download    Register    News    Help

Print Thread
#136444 28/11/05 10:06 AM
Joined: Feb 2003
Posts: 23
M
Mog Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2003
Posts: 23
I have copied the line out of the help file ...

on *:OPEN:?:*:/echo -s Just opened $target query window

When I load it into the remotes, make sure remotes are on, then open a query window, it doesn't do anything. Anyone else experiencing this problem?

I am using a completly blank copy of mIRC, the only code in it outside of the default things is that line.

#136445 28/11/05 11:07 AM
Joined: Dec 2004
Posts: 66
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2004
Posts: 66
It works for me, but only if I’m not the one that opens the query window, someone else needs to query me. And because of the -s switch the echo will display in the status window

#136446 28/11/05 03:30 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
The only way to trigger it yourself is by msg'ing yourself.

With a query window to yourself NOT opened do /msg <you> test
Then you should see the echo in status window.

Just double clicking a nick to open a query window will not do anything as you seem to be thinking. They have to msg you and a query window with them should not already be open.

#136447 29/11/05 01:03 AM
Joined: Feb 2003
Posts: 23
M
Mog Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2003
Posts: 23
Does anyone know a way around this ... even if it's with a DLL or whatever?

#136448 29/11/05 03:00 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I'm assuming that you want to be notified when you open a query window. The method I'm suggesting will only work when you double-click on a nickname in the nicklist of a channel.

Code:
- Open the options window (alt+o)
- Go to the 'Mouse' tab
- Paste the following in the textbox next to 'Nick List':

[color:blue]//query $$1 | echo -s Just opened $$1 query window[/color]

- Click OK


That will open a query window when you double-click on a nick in the nicklist, and it will echo a notification to the status window.

-genius_at_work

#136449 29/11/05 06:31 AM
Joined: Feb 2003
Posts: 23
M
Mog Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Feb 2003
Posts: 23
Sweet, that will work, ... do you know of a way to edit that from the command line without having to restart mIRC?

#136450 29/11/05 08:17 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
This isnt perfect it can be fooled by a script closing a pm. But for the average user it works pretty well.

Code:
alias -l query.window.list { if (!$hget(query.window.list)) { hmake query.window.list } | return query.window.list }
;
on *:CLOSE:?:{ hdel $query.window.list $+($cid,$cr,$target) }
;on *:CLOSE:*:{ !.echo -q $input($target .ALL. closing,o) | if ($target == Status Window) { while ($hfind($query.window.list,$+($cid,$cr,*),1,w)) { hdel -s $query.window.list $v1 } } }
;
on *:OPEN:?:*:{ opened.query.window $target }
on *:ACTIVE:?:{ if (!$hget($query.window.list,$+($cid,$cr,$active))) { opened.query.window $active } }
;
alias opened.query.window {
  hadd -m $query.window.list $+($cid,$cr,$1) 1
  echo -s Just opened $1 query window
  ; any other code you like to do on a queryu window opening here.
}



another option is to do this (along with your ON OPEN)

Code:
alias query {
  if (($0) &amp;&amp; (!$window($1)) {
    query $1-
    if ($window($1)) { echo -s Just opened $1 query window }
  }
  else {
    query $1-
  }
}


but if someone uses /!query it well bypass it.


Link Copied to Clipboard