Thanks!
The “user_visible" works with script_widgets also, so setting:
case “htmlText”
return { “user_visible” : false }
…
Will hide the property in the inspector. Unfortunately the “group” or
“subsection” doesn’t seem to work. All my properties are still jumbled.
> On 2 May
AFTER!
Create two cards
Add a button or something on the first card with the code
on mouseUp
visual effect dissolve slow
go to next card
end mouseUp
On the second card add a control and the hide it and add the script to the card:
on opencard
show control 1
end opencard
You will then
Dabbling with some script widgets. Fun, but a bit tedious at the moment, but
here are some findings and some questions/proposals.
=== Findings: (Can be me missing something though…) ===
Don’t forget that you need to click the “Show Options” button in the file
chooser and change the Format to
ments/sample-script-widget.zip
>>> The link to that stack was posted in the Blog here
>>> https://livecode.com/livecode-10-dp-5-smaller-faster-richer/
>>>
>>>
>>>
>>> My problem currently is, that LC crashes to Desktop right away when I try
&g
There should be some routine that
> prevents LC from crashing when there is a problem with building the script
> widget.
> But it's a DP so let's see.
>
>
> Regards,
> Matthias
>
>
>
>
>
>> Am 21.04.2023 um 10:49 schrieb Håkan Liljegren via use-livecode
&g
This caught my eye as I have several “controls” already that could be turned
into "script widgets”. But after “scriptifying” a “group widget” how can I turn
it into a script widget. I can’t add the file in the extension builder so how
can I create the needed .lce file? Or is this a “not
Thanks for the tip! But unfortunately already tried that! I only try to work
with one stack at a time.
If I set a breakpoint and step over the line
delete stack “teststack"
And then try to open a new stack with the same name there is no dialog box
If I run the same code (without any
me one else on the list has the exact API details.
> Alternatively, contact supp...@livecode.com and ask what the IDE API is to
> unload a stack.
>
>
>
> On 4/4/2023 10:22 AM, Håkan Liljegren via use-livecode wrote:
>> When my students turn in their assignments all t
When my students turn in their assignments all their individual stacks usually
have the same name. If I try to loop through all of them there seems to be no
way to close one stack and move on to the next one (with the same name) without
getting the dialog asking if I want to save, purge or
Ok here is the “Binged” version after asking "Can you write a poem about
LiveCode programming language”. I especially like the third line in the second
verse "You can even make games with its built-in physics engine" as that looks
into the future :)
LiveCode is a language that's easy to learn,
Probably not what you want to hear, but I never distribute documents in Word as
I then have no control on the formatting. The receiver might not have the same
font installed and then the text might reflow and all kinds of bad things might
happen! :)
I always use PDF for distrution. BUT, if you
Ok, after a day or so it creeps back. Unplug extra monitor, restart LiveCode,
plug in extra monitor. Annoying, but maybe not a showstopper...
I only see this with LiveCode and not any of my other apps.
:-Håkan
On 16 Mar 2021, 08:08 +0100, Håkan Liljegren via use-livecode
, wrote:
> Tha
Thanks! Works like a charm! Should have thought about that, myself. Teaching
web design for nearly two decades, and still missed the obvious…
:-Håkan
On 15 Mar 2021, 21:21 +0100, How to use LiveCode
, wrote:
>
> do "location.reload()" in widget "myBrowser"
>
> Kind regards,
> Panos
t; fired it up
> > without any problems at all:
> >
> > macOS 11.3 Beta 3, 2018 Mac Mini, 3 monitors.
> >
> > I suspect you have some background process (i.e. something set to run at
> > startup) that is
> > clogging up the works.
> >
> > Best,
Does anyone know if the browser widget has its own cache? If I load a local web
page (by setting the URL property) the browser widget seams to cache the linked
CSS-file. If I restart LiveCode the edits usually go through, but, is there any
way to empty the browser widget cache without needing
one the licensing "dance" and
> fired it up
> without any problems at all:
>
> macOS 11.3 Beta 3, 2018 Mac Mini, 3 monitors.
>
> I suspect you have some background process (i.e. something set to run at
> startup) that is
> clogging up the works.
>
> Best, Richmond.
After downloading and activating with my indie license, LiveCode starts but is
totally unresponsive! I can move the windows, but that’s it! I can’t click
anything not even in the menu. No shortcuts works, and, If I select ”Quit” from
the icon in the dock LiveCode doesn’t quit. Only thing I can
Hmm, strange! For me it works without problems:
put "https://www.mysite.com/?some=parameters=folllow; into tURL
put offset("?", tURL)
Returns 24
:-Håkan
On 14 Mar 2021, 17:29 +0100, BT via use-livecode
, wrote:
> Hi folks,
> What’s the correct the syntax needed to escape a question mark so
I would go for a REST API on the desktop and then use the https protocol. On
the mobile app you can then just use the powerful url command. Take a look at
”post data to URL” in the dictionary. And maybe also the ”put url … into” for
getting data in the opposite direction.
:-Håkan
On 10 Mar
Looks like a bug to me, and on top of that the HTML should be updated IMHO as
the -tag is officially deprecated in HTML 5. But, that’s another story.
When I try I get the same error! So, I guess it is a bug that should be
reported-
:-Håkan
On 4 Mar 2021, 21:06 +0100, How to use LiveCode
,
On macOS URL link files are stored as a plist-file like:
http://www.apple.com/DTDs/PropertyList-1.0.dtd;>
URL
https://lessons.livecode.com/
So you can open the file as text and then parse the content.
:-Håkan
On 12 Feb 2021, 18:55 +0100, R.H. via use-livecode
, wrote:
> I
Found this old mail, but no answer?! Maybe just me, but here goes.
LiveCode has a strong connection between the browser and the LiveCode engine as
you can call LiveCode handlers from within your JavaScript and call JavaScript
from within your LiveCode handlers. You can also detect clicks on
t was
> > working on previous versions.
> >
> > Yes, please file a bug report.
> >
> > Bill
> >
> > > On Feb 5, 2021, at 10:55 PM, Håkan Liljegren via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > Running L
Running LC 9.6.2 (rc2) on macOS Big Sur I have no visual effects that work.
None! Is there anyone else having the same experience, or is it just my setup?
I have tried to wipe every RunRev/LiveCode file in the Library and in the
applications folder and then reinstall but still no luck. Also
There is a free command line tool called zbar that you maybe could bundle or
even create a library from.
https://github.com/mchehab/zbar
:-Håkan
On 20 Nov 2020, 19:17 +0100, Klaus major-k via use-livecode
, wrote:
> Hi all,
>
> ist is possible to read the QR-code from an imported image
> on the
I’m not sure what you mean with ”suspend” on mobile. You only run one
application at a time. If your app goes out due to a phone call or any other
event it will normally quit your app and send a closeStack message and some
more. If you want to create an application that doesn’t allow the screen
What do you mean with standard? Do you mean that some combined codepoints show
up as one glyph and your question is if there is one codepoint for every such
combination? Or do you mean that several seemingly identical glyphs might have
different codepoints? Unicode actually has a good
Great!
For me it works without adding 'the name of grc ”k1”‘. This works perfectly:
set the loc of grc "k1" to the width of this card/2, the height of this
card/2
put "k1" into tPrevious
repeat with i = 2 to 5
put "k" & i into tName
set the topleft of grc tName to item 1 of
catch my interest.
>
> Thanks,
>
> Rick
>
> > On May 27, 2020, at 11:44 AM, Håkan Liljegren via use-livecode
> > wrote:
> >
> > Ouch,
> >
> > Hit send to early, new try:
> >
> > Hi,
> >
> > I was trying to get LiveCode
> Am 27.05.2020 um 17:44 schrieb Håkan Liljegren via use-livecode
> > :
> >
> > Ouch,
> >
> > Hit send to early, new try:
> >
> > Hi,
> >
> > I was trying to get LiveCode server up and running under MAMP in macOS
> > Catalina a
Ouch,
Hit send to early, new try:
Hi,
I was trying to get LiveCode server up and running under MAMP in macOS Catalina
and if anyone is interested. This is what I did to get it running.
1. Download and unpack LiveCode Server
2. Move livecode-server, drivers folder and externals folder into the
Hi,
I was trying to get LiveCode server up and running under MAMP in macOS Catalina
and if anyone is interested. This is what I did to get it running.
1. Download and unpack LiveCode Server
2. Move livecode-server, drivers folder and externals folder into the cgi-bin
folder in MAMP. (
I don't think LTI is dead at all, most mayor LMSs support LTI today in one way
on another. I'm also looking into this as we are using the Canvas LMS at our
university (where I have my day-work) so I'm definitely interested in some
participation in a LiveCode LTI library. I've just started my
You probably need to lock messages in the beginning of your resizeControl.
Otherwise the group will adapt to your resizing of your controls. I usually
begin with both lock messages and lock screen, but the last is more for
optimization.
Håkan
On 3 May 2020, 16:22 +0200, Alex Tweedly via
Have you tried to add a background color to the control so you can actually see
it? Then the dictionary actually tells you that the result holds the ID. I know
that you can then use them both. I usually use the ID as that is guaranteed to
be unique.
Håkan
On 22 Apr 2020, 19:39 +0200, Graham
When teaching my students about hybrid apps I usually do a session called "Vad
är klockan vart då?" (What is the time where?) Where we have a globe in a
browser widget, that you can spin and tap. When you tap a location we have a
clock-widget set to the current time at that location. The globe
Maybe I’m misunderstanding but if you just want to divide the jobs you could
have a counter for the current driver and after assigning a job you increase
the counter and wrap it when you exceed the number of drivers.
If you’re looking for a more fancy job division algorithm you should take a
is possible (at least in a way that insulates them in
> the same way as a widget is)
>
> On Wed, 15 Apr 2020 at 15:42, Håkan Liljegren via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > When building widgets we can quite easily “inject" the proper
When building widgets we can quite easily “inject" the properties into the
ordinary property inspector. I often build new controls out of LiveCode
controls and mainly a group of controls. Currently I have my own system with my
own tools palette for dragging them to the current card and my own
There is no problem running the server and client on the same machine. I've
used it for doing elevated services. There is a demo stack for a chat server
and client that you can download. I know that helped me a lot when doing my
first client server.
:-Håkan
On 5 Apr 2020, 20:23 +0200, Bob
Most of the mobileSomething are wrappers around the system functions so you can
learn a lot by reading the ios developer documentation as most of the functions
started there.
And reading the docs I can see that you probably get a CLLocationCoordinate2D
from the system and that is in turn two
With risk of going slightly off-topic, but also showing yet another code
example. I had exactly this problem some time ago and came up with the
following solution:
getProp clickedRowCol
# calc Row => TODO: Handle row with variable row heights
put the clickV - the top of me - the
I know that Mozilla had a library for finding text decoding. I don’t think they
use it anymore though. But I know it was translated into several other
languages. It was called something like “universal character detection” or
something equally sexy. Just typing out of my head, so it might be
I kind of never use the built-in sound player other than small short sound
effects and often not even at then, as the build in player is so limited. I
instead use the player control. It can play kind of every file. (96kHz/ 24bit
Flac among them). On top of that you can play several sounds at
I this is already created by our hero Trevor Devore. Take a look at his github
page:
github.com/trevordevore/lc-macos-toolset
what you are looking for is the nssystem-status-bar.lcb
On 21 Jan 2020, 18:45 +0100, Bob Sneidar via use-livecode
, wrote:
> I thought they were called Diddly
So, maybe I’m an Apple fanatic but here goes…
By dropping 32-bit support Apple doesn’t need to update 2 pairs of system
libraries, as most 32-bit applications requires 32-bit libraries to work. Thus
it would also be possible to save some disk space (as I only need 64-bit). This
also means that
The is a command setCurrentIconFamliy that you can use. You first need to
create an icon family by adding all your wanted icons into an array, there
array needs to have a structure of
Array
Iconname
Codepoint
SVG
iconname
…
I’ve always used 0 for code point and the svg
You can execute a small javascript to grab the HTML. I’ve done something
similar in an Instagram Scraper I just built….
First you need to set up a callback function in the widget under javascript
handlers e.g. jscallback then you can call a javascript that calls you back
with whatever you
If you want the tab stops to be included in the file I guess you need to add
them manually to the rtf file. There is a \tx command in rtf that sets the tab
size. I used it long time ago so I don’t remember of it was relative or absolut
positions but I do think it should be doable…
:-Håkan
On 8
Maybe I don’t understand your idea but I do think you have kind of the same
using a group. If you design your group or your ”panel” you still need to place
your controls. If you move a group you also move the controls within that
group. You can also grab individual controls in a group if you
If so, I don’t find anything about tab size in the dictionary.
>
> Roger
>
> > On Mar 6, 2019, at 1:16 PM, Håkan Liljegren via use-livecode
> > wrote:
> >
> > There is a tab-size attribute that you can use but it can’t contain more
> > than one number and i
There is a tab-size attribute that you can use but it can’t contain more than
one number and it only handles ”number of spaces” for a tab like
tab-size: 6
Will give you 6-spaced tab.
To get the layout in HTML I instead suggest another approach. Replace each tab
with an HTML-element to convert
For me it usually works with “import as control” or “import as referenced...”,
but for some “mysterious” reason it never works by setting the filename of the
control. I haven’t looked into the IDE code, but I guess it takes care of the
calling to drawingSVGcompile() or something
Håkan
On
Or you can use an image instead as they happily handle SVG files nowadays…
:-Håkan
On 21 Feb 2019, 18:18 +0100, Tore Nilsen via use-livecode
, wrote:
>
> The simple solution was to «group» each individual SVG widget and add the
> grab me command to the group.
>
Take a look at mobileFindContact, mobileGetContact etc (search for contact) in
the dictionary… Remember though that you will get a dialog asking the user for
permission and if they reject you will not be able to grab anything!
GPS is a system with satellites that your device can use to
Well, he could, if he didn’t wanted an average value of some more pixels, and,
calculating an average via screenMouseLoc is really slow. Exporting a rect to
an image is fairly quick though
Found the following in a stack:
# Calculates the average color value for an image
# pID should be the
replace "x^n" with "x^" & n in field "formula"
might do the trick…
:-Håkan
On 27 Dec 2018, 04:34 +0100, Roger Guay via use-livecode
, wrote:
> As an example, I want to replace the contents of a field that contains x^n
> with x^1 or x^2 or x^3 as n= 1 or 2 or 3 etc.
> But I can’t seem to find
The code will not work if you have htmltext containing the text "color=" like:
To set the color you can use color="#fa3b42"
and you can also shave off some milliseconds in the styledText version by using
foreach:
…
repeat for each key aKey in tTextA
# Check if first run has textcolor set
Does
View => Backdrop
work?
On my Mac it is "sticky" between launches of LiveCode
Håkan
On 12 Oct 2018, 12:48 +0200, Andre Alves Garzia via use-livecode
, wrote:
> Hey Friends,
>
> This will sound silly. I am on Windows 10 using LC 9.x, I've set a
> backdrop on preferences and now I want to
As the screenrect is the same but virtually larger / smaller based on the
scaleFactor you need calculate the scale factor based on the current
scaleFactor and the new scaleFactor
Try this:
on changeScaleFactor pNewScale
put the scaleFactor of this stack into tScale
put tScale / pNewScale
I think the idea is that if you have enough space for a viable landscape
representation I think you should support it. The line between phone and tablet
is very blurry and according to the rumours even Apple will start to support
landscape multi-column apps on the new phones. Eg. :
Crash here!
LC 9.0.0 / Mac OS 10.13.4
On 31 May 2018, 10:42 +0200, How to use LiveCode
, wrote:
>
> put the hostnametoaddress
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
It is out to get you ;)
I can’t replicate this. The first stop stops the full execution for me (as
expected). Do you have anything in your getVal that can cause it (e.g.
recursion)?
:-Håkan
On 23 May 2018, 00:47 +0200, Dr. Hawkins via use-livecode
, wrote:
>
>
Web fonts are usually .woff and LiveCode can’t use that internally, AFAIK. But
if you use the browser widget they do work! You can of course download the font
in .ttf format and use it that way but then make sure that the licence allow
you to do that.
Håkan Liljegren
On 17 May 2018, 00:34
64 matches
Mail list logo