molotofc Posted January 14, 2014 Share Posted January 14, 2014 Hello, I was wondering if it's possible open another script within a script. Here's my scenario: I have scripts (call it Script A, Script B, Script C... I have 22 of these) that are very similar to each other, apart from a few lines of code. Those few lines of code I need to change fairly often, and when I need to change it, all 22 of them need to change which I have to do it one by one manually. You can imagine this takes a long time. I was thinking if its possible to put these few lines of code in a separate script, so when Script A, B, C etc. need to run those few lines of code, instead, it would now open this separate script instead. I've read in the forums opening another script within a script is possible, but it would not be able to carry data (like Variables) over from the original script to the separate script - carrying data over to the separate script is essential for me. What can I do? Link to comment Share on other sites More sharing options...
jdelaney Posted January 14, 2014 Share Posted January 14, 2014 (edited) Look in the helpfile: Command Line Parameters You can call single lines of script in a new process, or call other scripts with params. Probably better just to have switch cases, calling different functions. Edited January 14, 2014 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Zedna Posted January 14, 2014 Share Posted January 14, 2014 Look here at Run() with /AutoIt3ExecuteLine (also look at this in helpfile) '?do=embed' frameborder='0' data-embedContent>> Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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