Numeric keypad
Blitz3D Forums/Blitz3D Programming/Numeric keypad
| ||
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 :) |
| ||
make sure the numlock key is pressed? |
| ||
Note that the numeric keypad has different scancodes to the numbered keys on the main keyboard. |
| ||
Try this:While Not KeyDown(1) For f = 0 To 255 If KeyDown(f) DebugLog f+" pressed" EndIf Next Wend End |
| ||
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 |
| ||
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 |