Jump to content

Receive Variable from Python program


pavankm
 Share

Recommended Posts

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.

Link to comment
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.

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

Monkey's are, like, natures humans.

Link to comment
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
 Share

  • Recently Browsing   0 members

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