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 an alternative Dictionary viewer:
http://bjoernke.com/bvgdocu/

Chat with other RunRev developers:
http://bjoernke.com/chatrev/



_______________________________________________
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