From: gregarican Date: 2005-07-08T23:50:48+09:00 Subject: Possibility using win32ole? I have an old DOS app used for retail polling that I have to babysit. The app runs as a VDM window within a Windows 2000 Server session. That particular DOS window (when it has the focus) needs to receive a simple keystroke such as . There are other windows which could be present, but when it has the focus this particular DOS window should get the keystroke. If another window receives the keystroke it could cancel the polling process. What I am wondering is if it is possible to write a Ruby script that I could schedule to submit a keystroke to that particular DOS VDM window based on its window name. Is this something that can be done? I am starting to revisit the Ruby API docs now. But if there isn't a method I can create or an existing method I can invoke to do this I might look elsewhere...