Briansmith Posted December 14, 2010 Posted December 14, 2010 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.
Briansmith Posted December 14, 2010 Author Posted December 14, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now