Would there be a way that i Could get vbkeyAlt? Or is there an Ascii Value that i could get for Alt keypress? Thanks! :)
Printable View
Would there be a way that i Could get vbkeyAlt? Or is there an Ascii Value that i could get for Alt keypress? Thanks! :)
VB Code:
Private Sub Form_MouseDown(Button As Integer, _ Shift As Integer, X As Single, Y As Single) ShiftTest = Shift And 7 Select Case ShiftTest Case 1 ' or vbShiftMask Print "You pressed the SHIFT key." Case 2 ' or vbCtrlMask Print "You pressed the CTRL key." Case 4 ' or vbAltMask Print "You pressed the ALT key." Case 3 Print "You pressed both SHIFT and CTRL." Case 5 Print "You pressed both SHIFT and ALT." Case 6 Print "You pressed both CTRL and ALT." Case 7 Print "You pressed SHIFT, CTRL, and ALT." End Select End Sub
yea i saw that code when i searched. Problem Is, I need it a definite Ascii Value.
So.. no one know's how?
Why do you need an ascii value?
nvm, I figured out a way that i could use the previous code.
nvm. I cant use it. I need to get a vbkey or ascii doing here:
VB Code:
If GetAsyncKeyState( [COLOR=red]Alt Here[/COLOR] )
The keycode constant for the ALT key is called vbKeyMenu.
THANK YOU! That's what i was looking for.