>Does any one have a good way to add the use of "Hot Keys" without the "Hot Key" oversteping the natural function of a key. Example: F3 will put a generic note into an editbox with:
>
>If nkeycode = 86 Then
> note function
>EndIf
>
>But if the user needs to type in a cap "V" which is the same nKeyCode(86) the note will also appear without intension.
Check the nShiftAltCtrl state variable for the proper condition, too. F3 by itself is a -2, not an 86, that's a shifted F3.
So you should:
DO CASE
CASE nShiftAltCtrl=0 AND nKeyCode=-2
CASE nShiftAltCtrl=1 AND nKeyCode=86
ENDDO