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: 10501
Joined: Wed May 06, 2009 2:28 pm

First plug-in

Post by dunbarx »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: First plug-in

Post by FourthWorld »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: First plug-in

Post by dunbarx »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: First plug-in

Post by dunbarx »

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 »

Novel idea :D
Post Reply