automate commands to an .exe console program through python
Juan Perez
corleone82 at gmail.com
Mon Dec 12 11:41:00 EST 2011
More information about the Python-list mailing list
Mon Dec 12 11:41:00 EST 2011
- Previous message (by thread): PyDev and multithreaded application debug
- Next message (by thread): automate commands to an .exe console program through python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I'm new to this mailing list and new in python as well. I need to automate a .exe console program in windows, and send key characters like 'a', 'M' ... I don't need to take the output as is printed in a different text log, but I'll have to send the messages to the program. I had this running in an autoIT script which with only activating cmd window, and with the "send" parameter I had all already done. But I'm having a lot of problems with python, I've tried with process.call, communicate(), os.popen ... but no results. I can't comunicate with the program and even i can't maintain it opened more than a few seconds. If I open a program like notepad.exe it remains opened but when I try to comunicate with the stdin pipe just don't write anything to the program. Someone has any idea about that, Thanks and sorry for my english level, Juan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20111212/b90e7de3/attachment.html>
- Previous message (by thread): PyDev and multithreaded application debug
- Next message (by thread): automate commands to an .exe console program through python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list