Ray,

What Björnke says. However, I would use a frontscript to catch the preOpenStack messages, check that that target is card 1 of a script editor and then set the loc and rect of the script editor if necessary.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 1/30/2014 14:46, Björnke von Gierke wrote:

On 30.01.2014, at 14:08, Ray <r...@linkit.com> wrote:

  Could you please point me to a lesson/steps or something which would help me 
write a backscript in a plugin and have it open automatically?


Well the first stop would obviously be to read the backscript entry of the dictionary. I have a similar setup 
as mark, only my stack allows the editing of label fields when in browse mode. There's several ways to 
include code in the message path, for example I use "start using stack" instead of 
"backscript" or "frontscript".

A so called "plugin" is simply a stack that resides in the plugin folder within the user extension folder of 
the IDE. To see where your IDE has stored that folder, go to the Preferences, and select "FIles & Memory" 
(it's at the bottom). Also check out the "development" menu: development -> plugins -> plugin settings

Also see this lessons:
http://lessons.runrev.com/s/lessons/m/4071/l/21341-how-to-install-a-3rd-party-plugin-in-the-livecode-ide

As a test, you can make a stack that reports the location of the mouse when you 
click in browse mode, to do that just make a new stack with this code in its 
stack script (also make sure to rename the card accordingly):

on openstack
   if the target = "card" && quote & "my own plugin" & quote then
     start using this stack
   end if
   pass openstack
end openstack

on mouseUp
   put the mouseLoc & return & the screenMouseLoc
   pass mouseUp
end mouseUp



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to