Twitchy finger syndrome

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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Twitchy finger syndrome

Post by richmond62 » Thu May 27, 2021 3:48 pm

Cripes . . .

Here I am with a shed-load of 6-8 year old blobs working with standalones of mine on ancient PCs running Xubuntu 18.04
(last Xubuntu version available for 32-bit processors) and, because they are of the post "I want it now" generation
they click and click and click on the start icon of a standalone so as many as 12 instances launch. :evil:

Is there some sort of code that can be written inwith the original stack so only one instance of a standalone will launch?
Last edited by richmond62 on Thu May 27, 2021 4:01 pm, edited 1 time in total.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Twitchy finger syndrome

Post by bogs » Thu May 27, 2021 3:56 pm

I would mention relaunch, but apparently that is not universal.
Image

Klaus
Posts: 13828
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Twitchy finger syndrome

Post by Klaus » Thu May 27, 2021 4:15 pm

Hi Richmond,

add a dummy handler to the stackscript of your standalone:

Code: Select all

on relaunch
  ## Info: Will only work on Windows
  ## But won't hurt on Mac and NIX
end relaunch
That's it!


Best

Klaus

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9385
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Twitchy finger syndrome

Post by richmond62 » Thu May 27, 2021 5:17 pm

Great: I'll run off a standalone and give it a try.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9660
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Twitchy finger syndrome

Post by dunbarx » Thu May 27, 2021 6:56 pm

Klaus is giving a great example of burying a message. It is similar to:

Code: Select all

on  mouseUp
end mouseUp
Buries that message, and the question becomes where to put it.

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”