6.5.2 Doesn't Remember Script Editor Location
Ray
ray at linkit.com
Thu Jan 30 11:23:50 EST 2014
No luck (sorry) - here's the script I have in a button named "Front Script":
on openCard
put the ticks
end openCard
I've inserted it with this command:
on mouseUp
insert the script of btn "Front Script" into front
end mouseUp
It works if I click on File and choose Open Stack, but the ever-elusive
Script Editor window completely bypasses this somehow.
But thanks for trying :-) Any other suggestions?
Ray
On 1/30/2014 11:04 AM, PystCat wrote:
> Try it in the openCard.
>
>> On Jan 30, 2014, at 10:26 AM, Ray <ray at linkit.com> wrote:
>>
>> I'm not having any luck with inserting the following script into front:
>>
>> on preOpenStack
>> put the ticks
>> end preOpenStack
>>
>> With this inserted I get a message box opened with the ticks when I open another stack from the desktop, but no ticks when I shift-control-S to open the stack script (the script editor window). Evidently a script inserted into the front doesn't get triggered when opening the script editor. Neither does the 'start using stack' method.
>>
>> Am I doing this right?
>>
>> Ray
>>
>>> On 1/30/2014 10:15 AM, Mark Schonewille wrote:
>>> 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 <ray at 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 at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list