By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,813 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,813 IT Pros & Developers. It's quick & easy.

Need to automate app with SendInput()

P: n/a
I've never tried to use windows messages to automate an application, but
I've read some different blogs and articles that talk about sending keyboard
input and mouse input.

I wanted to describe what I want to do and hopefully someone here can tell
me if it's possible or if I will be wasting my time.

The steps I need to execute are:
1) Import a file using the file menu of the target application
(File->Import)
2) paste a filename in the filename edit control
3) press enter
4) press another button in the UI
5) copy text from an edit control in the UI

I don't know if copying and pasting is possible or if working with common
controls like the FileOpen dialog.

If anyone has done this or knows if it's possible or not, I would appreciate
knowing that before I dig into this project.

Thanks for any help,
Steve
Jun 1 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I just realized after thinking about this more that I can do everything that
I want with keyboard input, good ol' keyboard! ;)

Copy? "^c" - duh!
etc...
"sklett" <sk****@mddirect.comwrote in message
news:uM**************@TK2MSFTNGP02.phx.gbl...
I've never tried to use windows messages to automate an application, but
I've read some different blogs and articles that talk about sending
keyboard input and mouse input.

I wanted to describe what I want to do and hopefully someone here can tell
me if it's possible or if I will be wasting my time.

The steps I need to execute are:
1) Import a file using the file menu of the target application
(File->Import)
2) paste a filename in the filename edit control
3) press enter
4) press another button in the UI
5) copy text from an edit control in the UI

I don't know if copying and pasting is possible or if working with common
controls like the FileOpen dialog.

If anyone has done this or knows if it's possible or not, I would
appreciate knowing that before I dig into this project.

Thanks for any help,
Steve

Jun 1 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.