Eng:Number Pad Detection

This tutorial shows you how to detect if a numpad key is down in Scratch 1.4.

Script
The When Key Pressed block fires either when a number key is pressed using the writing row or the numeric pad. The Key Pressed? block with the numbers 0-9 selected, however, only reports true if the number in the writing row is down.

Add this script: when [1 v] key pressed if  set [type of number v] to [writing field "1"] else set [type of number v] to [numeric field "1"] end

You now have a script that will detect if the "1" numeric key is pressed.

play note (40 v) for (0.5) beats play note (40 v) for (0.5) beats

Example Uses

 * Adding a hidden menu
 * Making Operating System projects more realistic