Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
651 B

  1. Const SAKEY_RETURN = 13
  2. Const SAKEY_ESCAPE = 27
  3. Const SAKEY_LEFT = 37
  4. Const SAKEY_UP = 38
  5. Const SAKEY_RIGHT = 39
  6. Const SAKEY_DOWN = 40
  7. Set Keypad = CreateObject("sacom.sakeypad")
  8. do while 1
  9. Keypress = Keypad.Key
  10. Select Case Keypress
  11. case SAKEY_RETURN
  12. wscript.echo "Return"
  13. case SAKEY_ESCAPE
  14. wscript.echo "Escape"
  15. case SAKEY_LEFT
  16. wscript.echo "Left arrow"
  17. case SAKEY_RIGHT
  18. wscript.echo "Right arrow"
  19. case SAKEY_UP
  20. wscript.echo "Up arrow"
  21. case SAKEY_DOWN
  22. wscript.echo "Down arrow"
  23. End Select
  24. loop