mIRC Home    About    Download    Register    News    Help

Print Thread
K
k1tkra04
k1tkra04
K
When u double click the nicklist to open a query box for the nickname. I want it to say in the query box [query session with $nick started] I've tried on 1:open:?:*: but that only works when they message me first. Any help would be greatly appreciated.

Thanks.

arkt1k

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Try something like...
Code:
alias query {
  query $$1 
  echo $$1 [query session with $$1 started]
  query $$1 $$2-
}

K
k1tkra04
k1tkra04
K
Code:
on 1:active:?:{ .echo -a 9[11 $+ $timestamp $+ 9] [11Query Session with $active started $+ 9] | halt }


This does what I want, but each time I click on their query window I get the message, is there a way to halt it after the first time ?

R
ricky_knuckles
ricky_knuckles
R
you could perhaps make it a timed thing by using a variable
if (%variable != on) {
........
set -u<time> %variable on

K
k1tkra04
k1tkra04
K
Thanks to the both of you.

I found a more simple way. Sorry for starting this post without looking first. I simply went to Option < Mouse and then in the nicklist text box, I added an alias I created to perform that command...

Code:
querystart {
  .echo -a 9[11 $+ $timestamp $+ 9] [11Query Session with $active started $+ 9]
}


so now in the editbox it say /query $$1 | querystart smile


I figured I would post this incase anyone is trying to do something similar.


Thanks,

arkt1k

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
I don't think you can using On Active and $active because that event triggers whenever a window in mIRC is ativated or when mIRC's active status changes.

Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
The query alias I wrote for you would have done the same. grin


Link Copied to Clipboard