First plug-in

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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

First plug-in

Post by dunbarx » Mon Nov 27, 2017 4:00 pm

Well, almost.

Just never did this before.

So I have a small stack that I placed in ".../My LiveCode/Plugins". It indeed appears in the plugins menu. I make it open when LC does as an invisible stack. It appears in the "Window" menu. All good.

It does not work. I assumed that plugin stack scripts were either placed in use or included as backScripts in the current session, or whatever equivalent process makes that script accessible to everything in LC.

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: First plug-in

Post by FourthWorld » Mon Nov 27, 2017 4:32 pm

Not all plugins are libraries. Many are utilities, where their scripts are only useful to themselves.

You can use openStack on the plugin's card script to start using the plugin's stack script.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

Re: First plug-in

Post by dunbarx » Mon Nov 27, 2017 6:39 pm

Richard.

OK, thanks. I misunderstood what a plugin really was.

Craig

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: First plug-in

Post by shaosean » Tue Nov 28, 2017 8:21 am

You can create a plugin that places its own script in the backScript, if that was your goal..

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

Re: First plug-in

Post by dunbarx » Tue Nov 28, 2017 2:58 pm

Sean.
You can create a plugin that places its own script in the backScript, if that was your goal..
It was, I did.

I thought any stack that was placed in the plugins folder was automatically placed in use. Apparently not so. Anyway, all is good now.

The plugin itself simply allows me to use the right-click on my mouse to switch between pointer tool and browse tool in any stack I am working on. What a pleasure.

Craig

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: First plug-in

Post by shaosean » Tue Nov 28, 2017 2:59 pm

Novel idea :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”