Preventing multuple instances of my windows app

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
magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Preventing multuple instances of my windows app

Post by magice » Thu May 22, 2014 4:30 pm

I have figured out how to use $1 to pass the file location from explorer to my app and load the file on openStack, But I have not figured out how to handle a second chosen file. I want the user click the file in explorer and have it replace the first file instead of opening a second instance of my app. Can someone point me in the right direction?

Klaus
Posts: 14205
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Preventing multuple instances of my windows app

Post by Klaus » Thu May 22, 2014 4:34 pm

Hi magice,

check "relaunch" in the dictionary!

Basically you add this (empty) handler to the main stack script
to prevent any other instances of the app:

Code: Select all

on relaunch
  ## Nothing :-)
end relaunch
Best

Klaus

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: Preventing multuple instances of my windows app

Post by magice » Thu May 22, 2014 5:01 pm

Klaus wrote:Hi magice,

check "relaunch" in the dictionary!

Basically you add this (empty) handler to the main stack script
to prevent any other instances of the app:

Code: Select all

on relaunch
  ## Nothing :-)
end relaunch
Best

Klaus
Thank you Klaus. Relaunch was what I needed to look up.

Post Reply