Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Include (-
  2. [ DetectKeys key;
  3. key = VM_KeyChar();
  4. return key;
  5. ];
  6. -).
  7.  
  8. To decide what number is Key Pressed:
  9. (- DetectKeys() -).
  10.  
  11. To wait for the enter key:
  12. let key be Key Pressed;
  13. while key is not 13: [Or whichever number it was, if you make it "say key" you'll get it.]
  14. let key be key pressed;
  15.  
  16. [Optionally, depending on how your code is done you can also include a
  17. say "Press the Enter key to continue.";
  18. Right at the beginning of the "to wait for the enter key" section.]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement