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
if (text isin $1-) .timer $+ $nick 1 5 query $nick
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 $+
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 $+.
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 $!!+
}
}
on ^*:OPEN:?:*text*:timer $+ $nick 1 5 query $nick $!!+
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 ?
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.
that's exactly what I want it, thanks again
To have your query windows automagically open minimized go to Options > IRC > [x] "Iconify query windows"