mIRC Homepage
Posted By: Ledah $scriptdir - 19/10/07 07:35 PM
Is there a way to pass on $scriptdir WITHOUT explicitly says it in an identifier?
As in, i have two script, A and B, in different folders (lets say C and D).
A contains an identifier that i want makes reference to the Scriptdir OF THE SCRIPT THAT CALLED THE COMMAND.

I would like to use that identifier in Script B without having to use $id($scriptdir,Something) and just use $id(Something)

Is it possible by any ways, or would i really need to use it in every call?
Posted By: Riamus2 Re: $scriptdir - 19/10/07 08:31 PM
Unless you wanted to store the directory somewhere (variable, etc), not really.

Of course, depending what you're doing, this can probably be done close to how you would like. But we'd need to see the 2 scripts (or at least the related parts if they are large) to give a more exact answer.

Example:
Code:
;Script A
alias ScriptA {
  return $scriptdir
}

;Script B
alias ScriptB {
  return $scriptA $1
}

//echo -a $scriptB(Something)


That's a very general example. I can't give a better one without seeing what you're trying to do.
© mIRC Discussion Forums