mIRC Homepage
Posted By: bond5 $chr(36) - 01/03/04 07:02 AM
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
Posted By: bloupx Re: $chr(36) - 01/03/04 08:55 AM

if (text isin $1-) .timer $+ $nick 1 5 query $nick
Posted By: bond5 Re: $chr(36) - 01/03/04 02:43 PM
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 $+
Posted By: Online Re: $chr(36) - 01/03/04 02:58 PM
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 $+.
Posted By: bond5 Re: $chr(36) - 01/03/04 04:51 PM
thank you, works great smile
Posted By: bond5 Re: $chr(36) - 01/03/04 07:44 PM
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 $!!+
}
}
Posted By: bloupx Re: $chr(36) - 01/03/04 08:56 PM
on ^*:OPEN:?:*text*:timer $+ $nick 1 5 query $nick $!!+
Posted By: bond5 Re: $chr(36) - 01/03/04 11:15 PM
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
Posted By: DaveC Re: $chr(36) - 02/03/04 12:12 AM
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.
Posted By: bond5 Re: $chr(36) - 02/03/04 12:39 AM
that's exactly what I want it, thanks again smile
Posted By: Iori Re: $chr(36) - 02/03/04 04:43 AM
To have your query windows automagically open minimized go to Options > IRC > [x] "Iconify query windows"
© mIRC Discussion Forums