Sign in to follow this  
Followers 0
pavankm

Receive Variable from Python program

3 posts in this topic

I am executing a python program from AutoIt script using ShellExecute  i also have the alternative of using Run function. But my python program returns a variable which I want to use in my AutoIit script.  In using  ShellExecute / Run ,  the return value is a PID.

How do I capture the varaible returned by the python program.

Thank You.

Share this post


Link to post
Share on other sites



Don't know python, but a quick search suggests you could use sys.stdout.write, and capture that, alternatively if you return value is int, you may use runwait / shellexecutewait to get exit code.

1 person likes this

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ShellExecuteWait is good. From here I can trigger a dummy python program which will execute the main python program and write the returned value to a text file. Then read this into my autoit program.

Thank You.

Edited by pavankm
Provided Link to the Function

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