Microsoft KB Archive/260359

= PRB: KEYBOARD &quot;{RIGHTMOUSE}&quot; Fails =

Article ID: 260359

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q260359



SYMPTOMS
Without an ON KEY LABEL in effect, no noticeable effect occurs when you issue the following command: KEYBOARD &quot;{RIGHTMOUSE}&quot;



RESOLUTION
To resolve this problem, issue the following command (with the appropriate coordinates) instead: MOUSE RIGHT CLICK AT MROW, MCOL

-or-

MOUSE RIGHT CLICK AT 0,0



STATUS
This behavior is by design.



MORE INFORMATION
At first glance, it seems as though KEYBOARD &quot;{RIGHTMOUSE}&quot; fails if you issue it from the Command window. However, it is not that simple. ON KEY LABEL RIGHTMOUSE WAIT WINDOW &quot;He plays the violin...&quot; KEYBOARD &quot;{RIGHTMOUSE}&quot; This code produces the specified message, and right-clicking the mouse also produces the message. If you use the MOUSE RIGHT CLICK command above, the wait window flashes briefly. When you press the context menu key on keyboards that include it, though, it does not trigger a {RIGHTMOUSE}; instead, you get a context menu.

