How to clear queued pushed button messages

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

How to clear queued pushed button messages

Post by KimD » Sun Mar 13, 2016 9:58 pm

I know that I've seen this somewhere before, but I can't find the words to search on which tell me about the command that clears the queue of buttons that the user has already clicked

Scenario :
1) User is clicking on buttons as part of a game
2) User reaches the end point of the game, but has overshot by clicking too many buttons

The user has already won - how do I clear the excess of user button clicks?

Thanks in advance

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: How to clear queued pushed button messages

Post by jacque » Mon Mar 14, 2016 4:41 pm

See "flushEvents" in the dictionary.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

Re: How to clear queued pushed button messages

Post by KimD » Mon Mar 14, 2016 7:47 pm

Thanks. I was searching on "Clear", "Delete", "Empty" etc. Never thought of "Flush" ;-)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to clear queued pushed button messages

Post by FourthWorld » Mon Mar 14, 2016 9:48 pm

KimD wrote:Thanks. I was searching on "Clear", "Delete", "Empty" etc. Never thought of "Flush" ;-)
The name was borrowed from an old Mac API call. If that one seems unintuitive check out the ink property values, also borrowed from the same source. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply