mIRC Home    About    Download    Register    News    Help

Print Thread
#51776 28/09/03 08:49 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
mirc 6.1
has most of you must have noticed we cal only exe one comand in this situation, so i tryed to send the value to an alias to make my processing.
$findfile(c:,*,0,1, $make_all($1-,0,0,0))

the problem is that the values, using echo test $1-, that i read in $make_all are
C:\WINDOWS\system32\ C:\WINDOWS\system32\ http://tontito.dei.uc.pt win win\ 0 0 0
its just an example in one of my addons.
it was suposed to recive here a file path and name together and the 0 0 0
thanks for your time

#51777 28/09/03 09:11 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
i forgot to say that this value "C:\WINDOWS\system32\"
was passed to the function that is exe the $findfile, so the problem is that the $1- isn't overwrited when its passed to the make_all function

#51778 28/09/03 09:55 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
I don't understand.. what should $make_all return when used from outside $findfile?


* cold edits his posts 24/7
#51779 28/09/03 11:35 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Perhaps instead he could include the code for make_all.

#51780 29/09/03 01:08 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
alias -l make_all {
echo test $1-
}


#51781 30/09/03 09:19 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Ok, I got the problem too.
Solved it by using $findfile(c:\,*,0,1, [color:red]!.echo -q $1- $(|) $make_all($1-,0,0,0) )[/color].
Anyway, I don't know what you want to do, but why not use the "traditional" way, $findfile(c:\,*,0,1, make_all $1- 0 0 0)?


* cold edits his posts 24/7
#51782 03/10/03 11:39 PM
Joined: Feb 2003
Posts: 307
T
tontito Offline OP
Fjord artisan
OP Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
uhm thanks, that solves the problem, but i still think that there is some problem with it...


Link Copied to Clipboard