sho Posted September 23, 2019 Posted September 23, 2019 Hi, I am trying to search for a solution for this and couldn't find much information, hopefully can get some advice here. Thanks alot. I have an autoit script which is already running, extracting information from an internal system, and storing the data as three sets of array variables. Separately I have a python py script with a defined function, processing some data cleaning on these three arrays and generate a txt file. I am trying to combine the two processing scripts (autoit and py) together, such that after the process completed in autoit with the output of 3 arrays, I can execute the py script and pass these 3 arrays into the py function. I have managed to use either runwait or shellexecute to execute the py script, but I was unable to pass the 3 arrays variables into the py script function, as result it has been generating an empty txt file. Example: Final output in autoit: $array1 $array2 $array3 In my py script : def dataclean(array1, array2, array3) : some data cleaning steps return (txt output) dataclean(array1, array2, array3) How can I assign array1 in py script to $array1 in autoit? Thanks alot in advance.
Nine Posted September 23, 2019 Posted September 23, 2019 You cannot pass array parameter to another program directly (only strings). You may consider doing everything in autoit. Or use intermediate txt files. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
sho Posted September 23, 2019 Author Posted September 23, 2019 54 minutes ago, Nine said: You cannot pass array parameter to another program directly (only strings). You may consider doing everything in autoit. Or use intermediate txt files. Thanks for the reply.
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