Sign in to follow this  
Followers 0
DrDemonic

Calling one script from another

5 posts in this topic

I am just wondering if there is a way to open one script from another, passing variables over to the second.

Basically, I am writing an encryption tool. I am writing my own algorithms for it. The algorithm will be specified through the gui by the user. So the tool needs to call the second script, send the encryption method specified, and pass the variables containing what file to encrypt and such to the second script.

Is their a simple way to do this?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Welcome to the forum !

Looking up "Command Line Parameters" in the help file would be a good start

HTH,

wim

Edited by whim

Share this post


Link to post
Share on other sites

You could also just #include the second script, and then call one of its functions and pass the parameters you want.

Share this post


Link to post
Share on other sites

This way too:

Run(@AutoItExe & ' /AutoIt3ExecuteScript "scriptfile.au3"')

[size="5"] [/size]

Share this post


Link to post
Share on other sites

I think you don't have a reason to make second script. Just put it whole into Func and call it with parameter. Or am I missing something?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0