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

SendKeys impl,ementation issues

P: n/a

I have a question regarding SendKeys(). I am working on a small VB .Net
script that manipulates/automates programs through SendKeys().
Unfortunately, I have run into several problems. First, almost all of my
manipulations use the ALT key to browse through the different menus within a
window. The problem is that I have found that using SendKeys() to send ALT+F
or ALT+R has a different effect from typing ALT+F or ALT+R.

This is a very big problem for me, as it has precluded me from actually
finishing my scripts. One of the actions I need to be able to do is
automatically open and browse through the menus in my applications.

So my questions are:

0. Is SendKeys() broken in respect to using the ALT key?
1. Has anyone else experienced this problem?
2. Is there a known work-around?
3. Does anyone have suggestions on how to deal with this?
4. Could it be that the problems are application dependent rather than
related to issues within .Net and MS's codebase?

Just for reference, I have also been trying to write the same scripts using
Perl, and unfortunately, that effort totally failed as when I tried to use
the necessary module, it sent the ALT key to EVERY open window.

Anyway, I would appreciate any help and advice, as I definitely not an
expert programmer.

Thanks in advance.

David Kanter
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.