mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2005
Posts: 34
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
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,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try something like...
Code:
alias query {
  query $$1 
  echo $$1 [query session with $$1 started]
  query $$1 $$2-
}

Joined: Feb 2005
Posts: 34
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
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 ?

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
you could perhaps make it a timed thing by using a variable
if (%variable != on) {
........
set -u<time> %variable on


The Kodokan will move you, one way or another.
Joined: Feb 2005
Posts: 34
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: Feb 2005
Posts: 34
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,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
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,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
The query alias I wrote for you would have done the same. grin


Link Copied to Clipboard