|
Forum Index : Microcontroller and PC projects : Pause at end of graphics program?
| Author | Message | ||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 491 |
I'd like to pause a graphics program at the end until the user presses a key. Right now, I do this: DO WHILE INKEY$="": LOOP Is there an easier way? |
||||
TassyJim![]() Guru Joined: 07/08/2011 Location: AustraliaPosts: 6363 |
Not really. You can use INPUT but that is likely to mess up GUI displays. You could loop looking for a button press but no advantage there either. VK7JH MMedit |
||||
| Goksteroo Senior Member Joined: 15/03/2021 Location: AustraliaPosts: 114 |
or.... DO WHILE NOT KEYDOWN(0):LOOP but no real advantage that I can see over what you've already done. EDIT: but.... DO WHILE NOT (KEYDOWN(0)+KEYDOWN(7)):LOOP will also respond to CAPSLOCk/SHIFT/ALT/CTRL/etc keys. Edited 2023-04-26 19:06 by Goksteroo |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |