pavankm Posted February 8, 2017 Share Posted February 8, 2017 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 More sharing options...
JohnOne Posted February 8, 2017 Share Posted February 8, 2017 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. pavankm 1 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 More sharing options...
pavankm Posted February 9, 2017 Author Share Posted February 9, 2017 (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 February 9, 2017 by pavankm Provided Link to the Function 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