Computer Science Canada how do i set commands for a button? |
Author: | Stormtrooper [ Thu Apr 10, 2003 12:41 pm ] |
Post subject: | how do i set commands for a button? |
lets say i want to exit a programm and i want just to tap 1 key or something and it will exit how do i do that? |
Author: | Tony [ Thu Apr 10, 2003 1:49 pm ] | ||
Post subject: | |||
inside your loop you'll have
if any key is pressed, it will be recorded in variable c (type string(1)) Then if its something like "q" or something then you quit. |