Jump to content

Recommended Posts

Posted

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. 

 

Posted
  On 9/23/2019 at 3:59 AM, 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.

Expand  

Thanks for the reply. 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...