Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

SendKeys in Word 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bo Hansson - 16 Mar 2005 19:23 GMT
A simple SendKeys statement that works OK in Word 2000 does not work in Word
2003 (both in Windows XP) ...

WHY?

/Bosse Hansson
Jay Freedman - 16 Mar 2005 20:51 GMT
> A simple SendKeys statement that works OK in Word 2000 does not work
> in Word 2003 (both in Windows XP) ...
>
> WHY?
>
> /Bosse Hansson

Hi Bo,

I haven't seen any problems with SendKeys in 2003 (other than the usual
flakiness when multiple windows are open). When you say it doesn't work, do
you mean nothing happens, or that the wrong thing happens?

Double-check that all the keystrokes included in the SendKeys call would
still have the correct effects if executed manually. Some dialogs aren't in
the same place any more, and some things may be in different orders and
require different numbers of tabs or arrow-keys.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

Bo Hansson - 16 Mar 2005 21:28 GMT
Hi Jay,

Using a very simple example: SendKeys "%A?" (File Open in Swedish)
When fired from a click on a command of my own menu (with one single
document open) it makes the letter ? appear in the document. Thats all!

Manually executed it works as expected.

/BosseH

>> A simple SendKeys statement that works OK in Word 2000 does not work
>> in Word 2003 (both in Windows XP) ...
[quoted text clipped - 15 lines]
> the same place any more, and some things may be in different orders and
> require different numbers of tabs or arrow-keys.
Howard Kaikow - 16 Mar 2005 23:10 GMT
Word dialogs do not always remain the same in different versions of Word.

Verify that the dialogs are identical in tab order, etc. in both versions of
Word.

Signature

http://www.standards.com/; See Howard Kaikow's web site.

> Hi Jay,
>
[quoted text clipped - 25 lines]
> > the same place any more, and some things may be in different orders and
> > require different numbers of tabs or arrow-keys.
Bo Hansson - 16 Mar 2005 21:41 GMT
What I really want to do is to control my Adobe Acrobat 7 menu. I've earlier
got following response to my Adobe problems:

---------------------------------------------------------------------------------
Acrobat 7 uses a COM add-in and frankly it should never have been released
in its present condition. For a start it commits the cardinal sin of
preventing Word from functioning correctly, by blocking Word's ability to
save changes in normal.dot. I don't think there is going to be a simple
answer to this, though others may think differently :)

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP
-------------------------------------------------------------------------------

Is it possible that Acrobat 7 even makes it impossible to send keys to other
menues ?

/BosseH

>A simple SendKeys statement that works OK in Word 2000 does not work in
>Word 2003 (both in Windows XP) ...
>
> WHY?
>
> /Bosse Hansson
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.