mIRC Home    About    Download    Register    News    Help

Print Thread
#73269 01/03/04 07:02 AM
Joined: Feb 2004
Posts: 8
B
bond5 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
var %a = query $nick $chr(36) $+ $chr(43)
if (text isin $1-) .timera 1 5 %a

any idea how to make this work ?

thanks
bond

#73270 01/03/04 08:55 AM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124

if (text isin $1-) .timer $+ $nick 1 5 query $nick

#73271 01/03/04 02:43 PM
Joined: Feb 2004
Posts: 8
B
bond5 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
still doesn't work

if (text isin $1-) .timer $+ $nick 1 5 query $nick $chr(36) $+ $chr(43)

it opens the query window but shows nothing in it, no $+

#73272 01/03/04 02:58 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
if text isin $1- { .timer $+ $nick 1 5 query $nick $!!+ }

The doubled exclamation mark helps $+ survive two evaluations: When /timer is executed, $!!+ becomes $!+, and when /query is executed $!+ becomes $+.

#73273 01/03/04 04:51 PM
Joined: Feb 2004
Posts: 8
B
bond5 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
thank you, works great smile

#73274 01/03/04 07:44 PM
Joined: Feb 2004
Posts: 8
B
bond5 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
sorry another q?
how can I prevent the query window from opening ?


tried to replace on text with on open but script doesn't work at all that way.

this opens & closes the window:

on ^*:TEXT:*:#:{
/window -h $nick
if (text isin $1-) {
.timer $+ $nick 1 5 query $nick $!!+
}
}

#73275 01/03/04 08:56 PM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
on ^*:OPEN:?:*text*:timer $+ $nick 1 5 query $nick $!!+

#73276 01/03/04 11:15 PM
Joined: Feb 2004
Posts: 8
B
bond5 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
now after the $+ command is entered it opens the query window and it stays there, is there any way to stay in the channel all the time without being transfered back & forth ? confused

#73277 02/03/04 12:12 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I dont really understand what you want to do, but it sounds like this,

Someone msgs you if there is BLAH BLAH BLAH written in the text, and you dont already have a msg window open to them, you want to reply with $+ in five seconds, While maintaining the window your in.

on *:OPEN:?:*blah blah blah*:{
.timer 1 5 msg $nick $!!+
window -n $nick
}

On my system the "window -n $nick" isnt needed as PM's dont come to the front, but im tired and cant remeber if thats a setting or not., so i added that in.

#73278 02/03/04 12:39 AM
Joined: Feb 2004
Posts: 8
B
bond5 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Feb 2004
Posts: 8
that's exactly what I want it, thanks again smile

#73279 02/03/04 04:43 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
To have your query windows automagically open minimized go to Options > IRC > [x] "Iconify query windows"


Link Copied to Clipboard