mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
"/return %var" doesn't work if:
1) %var is someone's nick
2) there's a query window opened (but not active) to that nick

I think "/return %var" tries to do something with that query window and doesn't return the value.

(I'm using "/return %var" in a custom identifier)


-= endless in a victory of a yourself =-
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I couldn't reproduce the bug and I tend to think there isn't one. Your problem is most possibly script-related. Show us a specific script that 'reproduces the bug' so we can see whether it's a bug and, if it isn't, try to pinpoint the error.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Define "doesn't work" It returns random letters? It returns nothing? mIRC freezes? mIRC crashes? You get error messages? etc. Also what version of Windows and of mIRC? But in any case I can't reproduce it:

alias test { query codemastr | var %var = codemastr | return %var }

//echo -s $test
it opens the query window to codemastr, then prints codemastr to the status window

WinME mIRC 6.03

Joined: May 2003
Posts: 78
M
MauS Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2003
Posts: 78
Yeah, seems that was totally my fault. I didn't add $active parametr somewhere, and %var was treated like a window name...

Sorry for bothering blush


-= endless in a victory of a yourself =-
Joined: Jun 2003
Posts: 2
D
Bowl of petunias
Offline
Bowl of petunias
D
Joined: Jun 2003
Posts: 2
You didnt do it right..

alias test { query codemastr | var %var = codemastr | return %var }

is wrong. It should be:

alias test { query codemastr | set %var codemastr | return %var }




you wrote "var %var = codemastr"
it should be: set %var codemastr

So when I do the right one, I get: * /echo: insufficient parameters


So, problem reprodused

Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
I can't reproduce it.


Link Copied to Clipboard