Re: [ANN] Release 9.6.2 RC-3

2021-03-17 Thread Håkan Liljegren via use-livecode
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

Re: Emtying browser widget cache?

2021-03-16 Thread Håkan Liljegren via use-livecode
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

Re: [ANN] Release 9.6.2 RC-3

2021-03-16 Thread Håkan Liljegren via use-livecode
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,

Emtying browser widget cache?

2021-03-15 Thread Håkan Liljegren via use-livecode
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

Re: [ANN] Release 9.6.2 RC-3

2021-03-15 Thread Håkan Liljegren via use-livecode
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.

Re: [ANN] Release 9.6.2 RC-3

2021-03-15 Thread Håkan Liljegren via use-livecode
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

Re: How to escape wildcard chars - and find the offset of a '?' in a URL?

2021-03-14 Thread Håkan Liljegren via use-livecode
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

Re: mergFTPd example?

2021-03-10 Thread Håkan Liljegren via use-livecode
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

Re: Printing BackgroundColor of text

2021-03-07 Thread Håkan Liljegren via use-livecode
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 ,

Re: Parsing properties in Link- and Internet Shortcut files

2021-02-26 Thread Håkan Liljegren via 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

Re: HTML internal to stack - best practices

2021-02-26 Thread Håkan Liljegren via use-livecode
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

Re: No visual effects on Big Sur?

2021-02-07 Thread Håkan Liljegren via use-livecode
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

No visual effects on Big Sur?

2021-02-05 Thread Håkan Liljegren via use-livecode
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

Re: reading QR-code on Mac from an imported image

2020-11-27 Thread Håkan Liljegren via use-livecode
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

Re: Suspend in iOS, or when is a mobile app running?

2020-11-17 Thread Håkan Liljegren via use-livecode
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

Re: Standardizing codepoints

2020-11-15 Thread Håkan Liljegren via use-livecode
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

Re: How do I shorten this script? Use 'repeat with'?

2020-11-13 Thread Håkan Liljegren via use-livecode
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

Re: How do I shorten this script? Use 'repeat with'?

2020-11-12 Thread Håkan Liljegren via use-livecode
You could use two variables like tName and tPrevious set the loc of grc "k1" to cardWidth/2,cardHeight/2 put ”k1” into tPrevious repeat with i = 2 to 5    put ”k” & i into tName    set the topleft of grc tName to the topright of grc tPrevious    put tName into tPrevious end repeat Coding out of

Re: LiveCode Server Under MAMP

2020-05-27 Thread Håkan Liljegren via use-livecode
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

Re: LiveCode Server Under MAMP

2020-05-27 Thread Håkan Liljegren via use-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

LiveCode Server Under MAMP

2020-05-27 Thread 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 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

LiveCode Server not notarized?

2020-05-27 Thread Håkan Liljegren via use-livecode
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. (

Re: Integrating Desktop or mobile application with LMS using LTI 1.3

2020-05-27 Thread Håkan Liljegren via use-livecode
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

Re: Group resizing.

2020-05-03 Thread Håkan Liljegren via use-livecode
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

Re: Mobile text input mystery

2020-04-24 Thread Håkan Liljegren via use-livecode
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

Re: Simple 3D animation question

2020-04-18 Thread Håkan Liljegren via use-livecode
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

Re: Even Distribution

2020-04-16 Thread Håkan Liljegren via use-livecode
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

Re: Hijack the property inspector?

2020-04-15 Thread Håkan Liljegren via use-livecode
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

Hijack the property inspector?

2020-04-15 Thread Håkan Liljegren via use-livecode
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

Re: Socket Help

2020-04-05 Thread Håkan Liljegren via use-livecode
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

Re: Getting started with geographical coordinates

2020-04-03 Thread Håkan Liljegren via use-livecode
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

Re: How to find the column and row of a basic tableField

2020-04-03 Thread Håkan Liljegren via use-livecode
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

Re: Guessing the encoding of a test file...

2020-03-20 Thread Håkan Liljegren via use-livecode
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

Re: No support for 24bit/96kHz audio file?

2020-01-23 Thread Håkan Liljegren via use-livecode
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

Re: Apple Mac menubar?

2020-01-21 Thread Håkan Liljegren via use-livecode
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

Re: Catalina

2019-10-09 Thread Håkan Liljegren via use-livecode
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

Re: Is there a way to use custom icons in the navbar widget?

2019-06-15 Thread Håkan Liljegren via use-livecode
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

Re: Browser HTML Source & URLs

2019-04-17 Thread Håkan Liljegren via use-livecode
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

Re: Saving a tab formatted field to a file and retaining its formatting

2019-04-11 Thread Håkan Liljegren via use-livecode
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

Re: Panel/Form Widget

2019-04-11 Thread Håkan Liljegren via use-livecode
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

Re: TabStops and Tab Spacings

2019-03-13 Thread Håkan Liljegren via use-livecode
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

Re: TabStops and Tab Spacings

2019-03-06 Thread Håkan Liljegren via use-livecode
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

Re: SVG icons in buttons

2019-02-26 Thread Håkan Liljegren via use-livecode
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

Re: SVG widget and grab me command

2019-02-22 Thread Håkan Liljegren via use-livecode
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. >

Re: How to IMPORT CONTACTS and GPS location

2019-02-22 Thread Håkan Liljegren via use-livecode
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

Re: Get RGB color of a specific screen location

2019-01-07 Thread Håkan Liljegren via use-livecode
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

Re: Probably a No-Brainer

2018-12-27 Thread Håkan Liljegren via use-livecode
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

Re: Setting hidden of lines very slow

2018-12-03 Thread Håkan Liljegren via use-livecode
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  

Re: How to unset the backdrop in the preferences?

2018-10-12 Thread Håkan Liljegren via use-livecode
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

Re: scaleFactor

2018-08-16 Thread Håkan Liljegren via use-livecode
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 

Re: Determine if device is a tablet

2018-08-15 Thread Håkan Liljegren via use-livecode
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. :

Re: CRASH after entering "put the hostnametoaddress" into MSG

2018-05-31 Thread Håkan Liljegren via use-livecode
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

Re: execution doesn't stop when multiple function calls in a line

2018-05-23 Thread Håkan Liljegren via use-livecode
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: > >

Re: Web fonts

2018-05-17 Thread Håkan Liljegren via use-livecode
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