Numeric keypad

Blitz3D Forums/Blitz3D Programming/Numeric keypad

Gerard(Posted 2008) [#1]
Hi all!
I have a problem to use the numbers of the keypad !
I wrote a program in Blitz3D and I need to give him series of numbers. For this, it would be faster to make with the keypad rather than with 1,2,3, ... of the main keyboard, because it is necessary to pass in ALT+1, ALT+2, etc... But, when I launch the EXE, I try to enter numeric keypad numbers, but it is impossible :-((
Is it someone knowing a function or a program which allows me to use directly the numbers of the keypad ?
Thank you in advance :)


Ross C(Posted 2008) [#2]
make sure the numlock key is pressed?


GfK(Posted 2008) [#3]
Note that the numeric keypad has different scancodes to the numbered keys on the main keyboard.


Beaker(Posted 2008) [#4]
Try this:
While Not KeyDown(1)
For f = 0 To 255
If KeyDown(f)
DebugLog f+" pressed"
EndIf
Next
Wend
End



Gerard(Posted 2008) [#5]
Hello!
thanks for answers !
- to ROSS C : yes, numlock key is pressed !
- to BEAKER : I'll try this. But I not understand why numeric keys are detected in Blitz Editor, and not with any *.exe !!!
So, with yours answers, my post is closed :)
Cordialy
Gerard


Ginger Tea(Posted 2008) [#6]
But I not understand why numeric keys are detected in Blitz Editor, and not with any *.exe !!!


like gfk said
just cos it says 1 on it and note pad and others will display 1, a program you write could display the text 'cheese' if you wanted via 1 on the numpad and 1 on the main board
or a south western diagonal movement on a civ type game