Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Pause at end of graphics program?
Author | Message | ||||
toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 339 |
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: 6101 |
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 MMBasic Help |
||||
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 |
||||
Print this page |