mIRC Home    About    Download    Register    News    Help

Print Thread
/return bug or my mistake... Explain, please #28610 07/06/03 07:51 PM
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 =-
Re: /return bug or my mistake... Explain, please #28611 07/06/03 10:45 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
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
Re: /return bug or my mistake... Explain, please #28612 08/06/03 04:31 AM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
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

Re: /return bug or my mistake... Explain, please #28613 08/06/03 06:35 AM
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 =-
Re: /return bug or my mistake... Explain, please #28614 09/06/03 12:37 PM
Joined: Jun 2003
Posts: 2
D
Demolish Offline
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

Re: /return bug or my mistake... Explain, please #28615 09/06/03 12:57 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
I can't reproduce it.