Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:32 29 Nov 2024 Privacy Policy
Jump to

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 States
Posts: 339
Posted: 02:56am 25 Apr 2023
Copy link to clipboard 
Print this post

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: Australia
Posts: 6101
Posted: 03:16am 25 Apr 2023
Copy link to clipboard 
Print this post

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: Australia
Posts: 114
Posted: 08:52am 26 Apr 2023
Copy link to clipboard 
Print this post

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


To reply to this topic, you need to log in.

© JAQ Software 2024