mIRC Home    About    Download    Register    News    Help

Print Thread
#188252 19/10/07 07:35 PM
Joined: Oct 2006
Posts: 6
L
Ledah Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Oct 2006
Posts: 6
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?

Ledah #188259 19/10/07 08:31 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard