SendKeys 
Author Message
 SendKeys

Why does the use of SendKeys in VBA toggles Num Lock and Caps Lock?


Mon, 03 Jan 2005 13:16:05 GMT  
 SendKeys
Hi,

This is a well-known problem. See Q179987 in the MS Knowledge Base
(http://support.microsoft.com/) for full details. If possible, try to revise
your code so that it doesn't use SendKeys. Otherwise, try some of the
workarounds described in the article.

-----
Simon Lewis


Quote:
> Why does the use of SendKeys in VBA toggles Num Lock and Caps Lock?



Mon, 03 Jan 2005 15:51:58 GMT  
 SendKeys


Quote:
>Why does the use of SendKeys in VBA toggles Num Lock and Caps Lock?

Because of a deep-seated and apparently unfixable bug in Windows.

Most serious developers try to avoid ever using SendKeys. There are
alternatives for almost everything you can do with SendKeys - usually
a DoCmd.RunCommand ac<something>. See the online help for RunCommand
to see if you can accomplish what you want to do without using
SendKeys.

                  John W. Vinson[MVP]    
    Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public



Tue, 04 Jan 2005 00:50:35 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. SendKeys problem - datagrid app. shuts down after updating by sendkeys

2. Concerning Sendkeys bug

3. SendKeys

4. SendKeys & the numeric keypad - revised

5. SendKeys & the numeric keypad

6. Compact SendKeys

7. Sendkeys

8. Sendkeys

9. Sendkeys replacement?

10. SendKeys question

11. SendKeys Syntax

12. SendKeys

 

 
Powered by phpBB® Forum Software