[Gambas-user] ASCII value of keypress

Rob sourceforge-raindog2 at ...94...
Tue Feb 8 17:57:37 CET 2005


On Tuesday 08 February 2005 11:38, Daniel Oxley wrote:
> Hi, anyone know if it is possible (via code) to find out the
> value of the key that I press on my keyboard?  I have a
> keyboard with extra buttons on that i would like to use on my
> app but have no way of knowing what the key values are!!!

Maybe just make a little applet with no code but this?

Public Sub somecontrol_KeyPress()
	Print Key.Code
	Print Key.Ascii ' I forget if this will actually work,
	                ' maybe Key.Text?
End

Rob






More information about the User mailing list