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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Twitchy finger syndrome

Post by richmond62 »

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: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Twitchy finger syndrome

Post by bogs »

I would mention relaunch, but apparently that is not universal.
Image
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Twitchy finger syndrome

Post by Klaus »

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: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Twitchy finger syndrome

Post by richmond62 »

Great: I'll run off a standalone and give it a try.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: Twitchy finger syndrome

Post by dunbarx »

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