Basic interaction with another program
I have a dos program (run in a window) that I would like to control with a script. It needs only text input. For example, I only need to tell it: L u 100 u It will then wait for a file to be created, rename the file, then loop. Simple. I'd like to run this on Lucid Puppy Linux as it will be implemented on a very old laptop, but can probably deal with windows if needed. I only need direction on getting Python to interact with another program; how do I get it to direct text onto another window? -- http://mail.python.org/mailman/listinfo/python-list
Re: Basic interaction with another program
Thanks everyone. I actually ran the program in question using Wine compatibility layer and it seemed to work fine. Terry, that looks like it could be useful, too. I'll give it a shot and let you guys know how it works. -- http://mail.python.org/mailman/listinfo/python-list
USB HID documentation?
I have a little robot project I'm programming in python using the Lynxmotion SSC-32 servo controller via serial. I'd like to use a USB game controller (PS2 style) to control the robot. I've read a number of threads about the difficulty of using USB without extensive understanding of the way it works, but a few have stated that HID is different somehow. I definitely do not have any USB knowledge, and I don't care to get into that. However, if USB-HID is much simpler I would love to learn. I have the python extensions for windows: http://sourceforge.net/project/showfiles.php?group_id=78018 but I haven't found any documentation on how to implement HID in python. Can anyone give me some examples or links? Thanks much. -- http://mail.python.org/mailman/listinfo/python-list
Re: USB HID documentation?
I don't doubt I misunderstand since most programming jargon goes over my head. That said, I'm sure you can guess my OS is Windows and I don't know what an API is. After a quick search it looks like windows uses something called DirectInput for gaming devices. Is anyone familiar with DirectInput? Is it implementable in Python? Here's my source: http://msdn.microsoft.com/en-us/library/bb219802(VS.85).aspx Actually, I found this, too: http://directpython.sourceforge.net/ Sounds like it is very straight forward. i would definitely still appreciate any comments or suggestions on the best way to implement a game controller. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list