Sign in to follow this  
Followers 0
Briansmith

Use variable from Function in Script

2 posts in this topic

I am somewhat new to Autoit, but I would like to use a variable from a function in the script that is calling the function. I don't have any example code, as I have no idea how this might work. But for example, there is _ArrayDiplay function that I am using in conjunction with _ADListPrintQueues. the end result is I have a variable in the _ArrayDisplay function call $sclip, this is where the choice of printers is "copied to the clipboard". I would like to use the $sclip var in the script that is calling the function. I apologize if this is in the wrong forum.

thanks.

Share this post


Link to post
Share on other sites



Please IGNORE this post. I have found the answer with 2 minutes of research.

Using Global $Sclip to declare the Variable, then removing the LOCAL tag from the Function makes is available to me.

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