472,145 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

Getting python script to write to input box on another window

Hi,

I'm wondering if there is a way to get a python script to write text
to an input box in a window of another program that is running? For
example a text box in a web browser window?

Thanks!

Apr 24 '07 #1
2 2172
sophie_newbie <pa**********@gmail.comwrote:
I'm wondering if there is a way to get a python script to write text
to an input box in a window of another program that is running? For
example a text box in a web browser window?
Yes there is, but the solution depends on the operating system
and the program so you'll have to be more specific.

For Windows and IE you could use COM to connect to the
running application and you can then manipulate the DOM: see

http://groups.google.co.uk/group/com...359e3ff6b905ca

for an example.
Apr 24 '07 #2
En Tue, 24 Apr 2007 06:15:51 -0300, sophie_newbie <pa**********@gmail.com>
escribió:
I'm wondering if there is a way to get a python script to write text
to an input box in a window of another program that is running? For
example a text box in a web browser window?
You could use pyWinAuto on Windows.

--
Gabriel Genellina
Apr 24 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by lawrence | last post: by
8 posts views Thread by Paul Cochrane | last post: by
3 posts views Thread by elrondrules | last post: by
11 posts views Thread by Tom Gur | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.