Re: Should the scope of WholeMatches be expanded?

2019-08-09 Thread hh via use-livecode
There is already truewordOffset available but you have to check whether the search string is the next trueword. So matchChunk is faster. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manag

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> Klaus M. wrote: > and what can I do to make my app run? Did you already try to put the compiled things on startup from custom props into the temporary folder? I never had problems with running compiled shell scripts from there. ___ use-livecode mailin

Password Rules

2019-08-10 Thread hh via use-livecode
Often passwords should obey some rules, e.g. contain at least a certain number of digits, lowercase chars, uppercase chars, xtra chars with an ascii number in range 32-127 or special local chars as "åáãçß". Or contain only some of these char groups. Stack PasswordRules allows to check whether a

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> Klaus M. wrote: > yes, success, at least partly, now I get a SHELL error -> ... access denied > Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so > everyone should be able to access it, before I put it into a custom property > of my stack. What can I do to make it run?

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
Once again without missing spaces. > Klaus M. wrote: > yes, success, at least partly, now I get a SHELL error -> ... access denied > Although I "chmod"ded that file to "777" (via the INFO window on my Mac), so > everyone should be able to access it, before I put it into a custom property > of my s

Re: "copy files", specialfolderpath("resources") and missing files = SHOWSTOPPER

2019-08-10 Thread hh via use-livecode
> But does that mean that my previous "chmod" does not stick? Yes, on every unix system. From security reasons. The Carbon question should better be answered by a team member. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit thi

Re: is it possible to readfromfile line x to y

2019-08-10 Thread hh via use-livecode
Did you already try (use a counter add 42 to lineCntr read from file for 42 lines --> placed into it (check the result for empty or "eof") Note. The file contains base64 encoded imagedata (which is in one long line). Such a line may be too long to display in a LC field (-> may cause a hang). So

Re: is it possible to readfromfile line x to y

2019-08-10 Thread hh via use-livecode
1. Read for N lines reads sequentially, doesn't need an offset. 2. You could instead try to do that in one strike: put url ("file:"&) into str filter str with "*" typical line for further extracting: U+1F600 ___ use-livecode mailing list use-live

Re: QR Code Reader with Livecode

2019-08-11 Thread hh via use-livecode
I have a QRcode Reader nearly finished. Will publish it on Wednesday in "Sample Stacks". There will be also a QRcode Writer that outputs to a SVG icon widget (or to a polygon graphic or to an image). ___ use-livecode mailing list use-livecode@lists.runr

Re: QR Code Reader with Livecode

2019-08-12 Thread hh via use-livecode
My stack is a (simple) QR Code *reader* not a *scanner*. It reads from static images. That is, if you use a webcam on desktop or a built-in camera on mobile you have to take a (sharp) picture and then select from that picture to read the code. Usually a webcam or a mobile that cannot do an autom

QR-Reader_v100

2019-08-13 Thread hh via use-livecode
QR-Reader runs with any edition of LC 8/9 (tested with 9.5/9.0.4/8.1.10) on every platform that supports the browser widget. It is a QR code *reader* which reads from static images that may be slightly rotated/skewed/distorted. You can make it to a QR code *scanner* by providing webCam/mobileCam

Re: QR-Reader_v100

2019-08-14 Thread hh via use-livecode
Updated to version v101. Download QR-Reader_v101 from "Sample Stacks" of the LC toolbar or http://livecodeshare.runrev.com/stack/943/ The stack works now also on linux with snapshots from the browser widget or other apps on screen using a lengthy but clever workaround by Mark Wieder (see bug # 20

Re: QR-Reader_v100

2019-08-14 Thread hh via use-livecode
> So with this tip the browser widget then runs on Linux (Ubuntu) but only > in the IDE? Not as standalone? On linux QR-Reader runs here fine with LC 9.0.5 and 8.1.10 in the IDE on Ubuntu/xUbuntu 1604 64 bit and also as standalone which was made on Mac using LC 9.0.5 (with "search for required in

HTML5 Focus-Move-Resize v_100

2019-08-19 Thread hh via use-livecode
The stack shows simple methods how to resize and move a HTML5 standalone in the browser and how to focus a field so that you can start typing at startup without first clicking in a field. Moving a stack window has to be done by JavaScript, the script is in the stack script. It is added to your HTM

Re: HTML5 Focus-Move-Resize v_100

2019-08-19 Thread hh via use-livecode
Sorry, the correct download link (if not from "Sample Stacks") is http://livecodeshare.runrev.com/stack/945/ The one below loses the stack name (downloads as "rev" only). > I wrote: > Download "HTML5 Focus-Move-Resize" > from "Sample Stacks" of the LC toolbar or > > http://livecodeshare.runrev.c

Re: Scaling Imported Images

2019-08-20 Thread hh via use-livecode
> Bob S. wrote: > I seem to remember some time ago there was a key combination > so that when you sized an image, instead of cropping it, it > would scale it. Am I imagining things? I can create a new > scaled image in Preview, so no big deal. Resizing with the pointer tool has these modifier spe

LC expectations

2019-08-23 Thread hh via use-livecode
The new LC without LCFM: > Under Maintenance > > We're working on some changes. Unfortunately, livecode.com is > temporarily unavailable. > We expect to be back in a few minutes. Never ever anything has been more than 90% finished with LC. That's life, probably this is impossible, also with LCFM

Re: LC expectations

2019-08-23 Thread hh via use-livecode
> Matthias R. wrote: > Just tried and website is accessible You probably mean the top page of livecode.com? What do you do with that page? But on the LC toolbar click "Sample Stacks" or "Tutorials": Under maintenance, since a few thousand minutes ... _

Re: LC expectations

2019-08-23 Thread hh via use-livecode
Obviously they killed some x.runrev.com addresses and replaced them by x.livecode.com (but not all). Under maintenance forever (so watch 'old' links): forums.runrev.com/ quality.runrev.com/ livecodeshare.runrev.com/ works now as: forums.livecode.com/ quality.livecode.com/ but doesn't exist: l

Re: LC expectations

2019-08-23 Thread hh via use-livecode
> So let´s say they "finally" killed the old ones [addresses] I really don't mind the fact. I even wonder that it wasn't done earlier. Could also be done with other "runrev" and "rev" things (for example http://lists.runrev.com and all the libraries). But I mind the procedure. This is not "mainte

livecodeshare

2019-08-24 Thread hh via use-livecode
Who knows why livecodeshare is now disabled (has maintenance forever respectively)? It was working without problems. And the domain runrev.com is still alive ... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subs

Selective forums

2019-08-27 Thread hh via use-livecode
The forums have when viewed in Firefox-Mac some days and newer messages lost. Different to Safari/Chrome-Mac where some in-between-posts are lost. This is NOT a problem of caching, but another problem created by "maintenance"... ___ use-livecode mailing

Re: another list test

2019-08-27 Thread hh via use-livecode
> Heather wrote: > Hooray, we are back. Thanks to Robin's dedicated work and excellent > detective abilities in figuring out the problem. > Apologies to all for the outage of the lists, they didn't make it > over correctly to our new server and diagnosing the issue was tricky! > > You can all now

Re: Selective forums

2019-08-27 Thread hh via use-livecode
> Heather wrote: > Very interesting, yes. We're investigating. Probably to do > with who posted what when, at what point of transition. Some "diff threads" disappeared but it is Ok now. Possibly this was simply a wrong browser/platform switch. ___ use-l

Multiple windows in HTML5

2019-08-27 Thread hh via use-livecode
I added two demos to my HTML5 standalone samples (US) http://hh.on-rev.com/html5/index-large.html#as (EU) http://hyperhh.de/html5/index-large.html#as 1 • Multi Focus-Move-Resize shows how to move and resize multiple windows (substacks) incl. the main window. Moreover the stack windows are focused

Re: BackKey in browser widget

2019-08-27 Thread hh via use-livecode
(Assuming you don't mean the backKey that leaves your app.) This is eventually not possible from security reasons. There are brute force javascript approaches that probably will break as soon as libbrowser changes and have side effects. Using "on browserNavigateBegin" will lead to an infinite loo

Re: URL for hashtags

2019-08-27 Thread hh via use-livecode
You could try do "location.href = '#tagID'" in widget "browser" ___ 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/listi

Re: Browser widget cookies?

2019-08-28 Thread hh via use-livecode
> Geoff C. wrote: > If I set the url for the browser widget to a url, and the > server sets a cookie, can I read/modify/delete that cookie? Cookie structure (itemdel is ";"). item 1: A "name = value" pair containing the actual data, item 2: An expiry date after which it is no longer valid, i

Maintenance forever?

2019-08-29 Thread hh via use-livecode
To do the same things twice or three times is OK if some people have difficulties to do their job. But that's going too far now. After close to a week the "maintenance" people are still exercising only. Many posts are lost in forums and use-list. No upload to livecodeshare is possible. Nearly no

Native HTML5 field

2019-08-29 Thread hh via use-livecode
One shouldn't go for months without a gift (for some of you). Here is its. * Native HTML5 Field v_101 (for HTML5 standalones )* This works with Chrome, Firefox and Safari on Mac, Windows and linux. (With Firefox are problems when dragging from one field to the other). Test it from (US) http://hh.

Re: Is HTML5 really practical?

2019-08-31 Thread hh via use-livecode
The HTML5 deployment has its own problems. The biggest problem is that people use it for free and are not willing to buy (at least for a short period) the HTML5 license in order to support further LC development in that field (but then moan about missing features). So, also from that reason, HTML5

Re: Native HTML5 field

2019-08-31 Thread hh via use-livecode
Just uploaded the source code to "Sample Stacks": [1] HTML5 Multi Windows (Focus-Move-Resize) v110 [2] HTML5 GoStackURL v100 [3] HTML5 Native Field v106 or use http://livecodeshare.runrev.com/stack/945/ ... for [1] http://livecodeshare.runrev.com/stack/947/ ... for [2] http://livecodeshare.runre

Re: Is HTML5 really practical?

2019-08-31 Thread hh via use-livecode
> Rick H. wrote: > LC HTML5 engine in my opinion isn’t practical for many of the > reasons other’s have stated... > ... What does work for making websites/webpages is: > Apache 2.x, LC Server, databases such as PostgreSQL, > non-LC HTML5, and CSS. I have made with nearly every progress in the sta

Re: Launch vs Set in widget

2019-08-31 Thread hh via use-livecode
> JLG wrote: > What is the difference between "launch URL" and "set the URL" in a > browser widget? You probably mean load url which caches non-blocking, contrary to set url. There is also load url in widget which also sends you a message, contrary to set url. Launch url leaves LC and launches

Re: Is HTML5 really practical?

2019-08-31 Thread hh via use-livecode
> Is there a way to force a reload of the bit you want (need) to reload, > without reloading the engine ? A reload doesn't reload the engine at any rate. To the contrary, it usually just resets the standalone if the engine is (also on server) identical. So reloading a standalone or loading anothe

Re: Launch vs Set in widget

2019-08-31 Thread hh via use-livecode
Originally such things could be used to "redirect" urls. But in the current browser widget this is not used and in fact there is no difference between the two: [ The LCB code is public handler OnLaunchUrl(in pUrl as String) setUrl(pUrl) end handler ] But I have meanwhile found a solution you co

Re: Is HTML5 really practical?

2019-09-01 Thread hh via use-livecode
> Alex T. wrote: > Is there a way to force a reload of the bit you want (need) to reload, > without reloading the engine ? (Continuing my answer) For a reload from cache you can do "location.reload()" as "javascript" If you mean to load another standalone or reset the current standalone without

Save/Open stack to/from variable?

2019-09-01 Thread hh via use-livecode
In a situation where you can't 'directly' access the filesystem in order to save or read a stack but can write any variable to a local file and read from any local file to a variable, the questions arise: • Can we save (the current state of) a stack to a variable in a format as the usual stackfile

How to disable Navigation/BackNavigation in the browser widget

2019-09-01 Thread hh via use-livecode
As this was several times a question in the forum and also in the use-list here a method that works in the browser widget (without redirecting) on all platforms that support the widget. Browser widget usage example #27: NoNavigation/NoBackNavigation http://forums.livecode.com/viewtopic.php?p=1828

OSTimeInfo_105

2019-09-10 Thread hh via use-livecode
OSTimeInfo_105 is #111 of the Raspi stacks collection. What it does: Shows the uptime (since last reboot) and shows last reboot, last shutdown and last uptime. Works with LC 6/7/8/9 on Mac, Win 7/10, linux (Ubuntu 1904 flavours) and with LC 6.5.1/7.0.4 on Raspi 3/4 running Raspbian or Lubuntu. R

BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Some specialists may be interested in the following, please report if you have any problem with the stack. BasicGeoLib is a collection of very basic functions for using geoPoints. The points have to be in the format: longitude,latitude in that order, as decimal numbers, as in GeoJSON, NOT in Goo

Re: BasicGeoLib_v100

2019-09-12 Thread hh via use-livecode
Forgot the link. BasicGeoLib is available on "SampleStacks" or here: http://livecodeshare.runrev.com/stack/949/basicGeoLib ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscr

Re: Browser selections

2019-09-12 Thread hh via use-livecode
> JLG wrote: > Is there a way select text by script in a browser widget? I thought I'd > done that before but I don't see a command for it now. You certainly didn't that without javascript. Here is a demostack that shows how to do that, only a few lines are needed for using a javascriptHandler:

Re: Browser selections

2019-09-12 Thread hh via use-livecode
Perhaps you wish to select the text (not getting the selected text what is more difficult) of a textarea with id='j1" then you can do: on mouseUp put 10 into selStart; put 20 into selEnd do "document.getElementById('j1')." & \ "setSelectionRange("& selStart,selEnd &");" in widget "browser

Re: Test post: Its awfully quiet around here...

2019-09-16 Thread hh via use-livecode
@Mark This is the silence(*) that is the same as is with LC (without LCFM) since one year. What about *some* progress at least with • an up-to-date libbrowser/browser widget that *works* on latest OS of Mac/Win/linux(ubuntu)? • full keyboard and mouse events support in HTML standalones? • simp

Re: BasicGeoLib_v100

2019-09-19 Thread hh via use-livecode
GeoLib_v105 is now a library (as substack of the sample stack). The new version has several additions. These are now the supported functions (rightClick the hh-Logo in the sample stack to see the library stack script): * getHaversineDistance(point1,point2) * getDistance(point1,point2) * intermedi

Re: SFTP and Community version

2019-09-20 Thread hh via use-livecode
No. See line 568 to 574 of revliburl.livecodescript (put "sftp protocol not supported in this version") ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

HTML5: MultiWindows and GoStackURL v155

2019-09-22 Thread hh via use-livecode
This is my last HTML5-contribution for a while (I'm waiting for LC input to HTML5). This is now more javascript than intended. But the LC mouse coordinates computation has a bug (was reported by Bernd). You can now grab and resize all windows and reorder the layers of them (incl. the main window)

Re: LC Garbage Collection?

2019-09-24 Thread hh via use-livecode
LC 9.0.5 closed at about 42 memory leaks ... ___ 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

Re: ...and Livecode... where are we now?

2019-10-02 Thread hh via use-livecode
> Trevor D. wrote: > If that is the case and they can build that revenue source > then it should ultimately be a good thing for those of us > who don't use LiveCode FM. It is unfortunate that LC has > to sit mostly idle for so long though. All true. But will the idle state of LC ever change again?

Re: HTML5

2019-10-03 Thread hh via use-livecode
Possibly the server of your webpage is very slow. I need here at most 9-10 seconds to load a standalone the first time from http://hyperhh.de/html5 . You could load one of the latest (9.5.0 created) there and compare. Or you have conflict with SOP (same origin policy). Is your standalone trying t

Re: Subject: Re: ...and Livecode... where are we now

2019-10-03 Thread hh via use-livecode
> Sean C. wrote; > Now let me get back to fixing HTML5 for you!! Wow ... Where is the piece I missed? @Heather Every (software) kingdom needs a court jester. They have special rights and nobody should be insulted by them. (And sometimes they say, just as young children, the truth.) ___

Catalina

2019-10-08 Thread hh via use-livecode
"Catalina is a girl's name of Spanish origin meaning 'pure'". What a beautiful sounding name! But MacOS Catalina is a pure killer. Killed my beloved LC 6/7 (I need for development of Raspi stacks) and sometimes need for speed. I learned LiveCode using LC 6 in 2013. TMHO, LC 6.7.11 was the most co

Re: Catalina

2019-10-09 Thread hh via use-livecode
> Bob S. wrote: > Can I just point out, to no one in particular on this list, that > you don't HAVE TO UPGRADE TO CATALINA??? Apple did not cause your > version of LC to become obsolete. YOU DID! > > Matthias R. wrote: > Thanks Bot, i thought the same, but did not dare to write it. It is just th

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread hh via use-livecode
You could build on https://www.masswerk.at/elizabot/ They build there in javascript on it for a "terminal" or speech i/o. You could similarly make a LC GUI based on elizabot.js in a browser widget. Or moreover translate elizabot.js to LiveCode. The js is already object oriented and has 1.7K in

Re: Give a bug a hug

2019-10-11 Thread hh via use-livecode
This is a wonderful project. Should be limited to bugs that are NOT regressions. And instead extended by feature requests. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscr

Re: Is it possible to implement Weizenbaum's original Eliza as a chatbot with LIVECODE?

2019-10-11 Thread hh via use-livecode
> I wrote: > You could build on https://www.masswerk.at/elizabot/ > ... > You could similarly make a LC GUI based on elizabot.js in > a browser widget. > ... Here is a basic LiveCode GUI: Browser Widget usage example #28: ELIZA_bot http://forums.livecode.com/viewtopic.php?p=184198#p184198 The jsl

Re: Set font dynamically to fit text

2019-10-12 Thread hh via use-livecode
In the repeat loop set the attributes of the empty field and use measureText (or measureUnicodeText) to compute the textSize. As a last step fill the field. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, u

Re: Re: Catalina and stuff other than 32bit—USB broken

2019-10-16 Thread hh via use-livecode
@Dar. Did you already try to use QUEMU? https://www.qemu.org ___ 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

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-16 Thread hh via use-livecode
> Bill V. wrote: > I know how to do the math to figure it out but I’m wondering if there > is a built in function to do this. Convert wants to deal with actual time > so I would get something like “0:1:15 PM”. That needs the same energy as the simple math method but as you ask: 1. set the twelve

Re: Is there a command to display number of seconds as hrs:min:seconds?

2019-10-17 Thread hh via use-livecode
Save a lot of lines by using "format": on countdown t put format("%02d:%02d:%02d",t div 3600,(t mod 3600) div 60,t mod 60) into fld 1 subtract 1 from t if t < 0 then exit countDown send "countdown t" to me in (1000-the millisecs mod 1000) millisecs end countdown > > Terry J. wrote: > > N

Re: Merge PDF

2019-10-17 Thread hh via use-livecode
> Hugh Senior wrote: > Has anyone got an LC-based method to merge pdf files? Just asking... I'll publish this weekend on SampleStacks a pdfLib (split and merge) based on a JS library (via a browser widget). Already 95% are done. ___ use-livecode mailing

Re: Merge PDF

2019-10-21 Thread hh via use-livecode
It is dependant on using JS from LC, by that it is dependant on a browser widget. I had it ready yesterday for Mac and tried a full day to work around the deficiencies of the browser widget on linux and win but had no success, sorry. The stack will be published as "PDF-Tools" (Merge/Mix/Split) in

PDF-Tools

2019-10-21 Thread hh via use-livecode
PDF-Tools_v109 (MERGE/MIX/SPLIT) Due to deficiencies of the browser widget on win and linux we have the first time that a JS-library runs in a browser widget on Mac only. I tried to work around for win and linux without success, sorry. Download PDF-Tools from SampleStacks or http://livecodeshare.

Re: Merge PDF

2019-10-21 Thread hh via use-livecode
> Richard H. wrote: > Silly question now that I think of it . . . does t avoid > the pixelization that the pdf widget performs? > And for that matter, does it work with cropped sections, > or just full pages? The PDf-lib doesn't use image snapshots. It is true PDF: Copied are pages and all it need

Re: Push Card

2019-10-22 Thread hh via use-livecode
> JB wrote: > The list of pushed cards is cleared when you quit the application. > Is there a way to clear the list without quitting the application? You could try on mouseUp put "home.livecodescript""e into tA repeat pop card into tB if tB ends with tA then exit repeat end repeat e

Re: PDF-Tools

2019-10-23 Thread hh via use-livecode
PDF-Tools_v109, updated to v110 (Mac only) [Tested to run with LC 8.1.10/9.0.5/9.5.0 on MacOS 10.12.6/10.13.6/ 10.14.6/10.15.] Download PDF-Tools v110 from SampleStacks or http://livecodeshare.runrev.com/stack/951/ Added option to use a SVG Icon on the output pages. You can set width (resizes p

Re: Weird macOS error dialog

2019-10-25 Thread hh via use-livecode
> What fresh hell is this? Is this something all of our > users will be seeing? Yes. But this is only the camp fire before the hell. The new security hystery will surprise you every few minutes when you really work on that OS. ___ use-livecode mailin

Re: Livecodeshare/SampleStacks

2019-10-26 Thread hh via use-livecode
Livecodeshare/SampleStacks works again: 1. With ALL editions (Business/Indy/Community). 2. The recently appearing size limit has been removed. Thank you very much whoever did this. Especially SampleStacks from the LC toolbar is very fast and robust. Just try! ___

Steganograph_v110

2019-10-26 Thread hh via use-livecode
The stack does (kind of) Steganography with an image, see https://en.wikipedia.org/wiki/Steganography. The stack runs (offline) using LC 8.1.10/9.0.5/9.5 on MacOS > 10.12 and, using LC 8.1.10/9.0.5, on win 7/10 and linux (ubuntu1604). The goal was here to have a method that uses in a standard way

Re: PDF-Tools

2019-10-26 Thread hh via use-livecode
PDF-Tools_v110 (Merge/Mix/Split, add header/footer/pageNum/svgIcon) Using LC 9.0.5 it runs on Mac/Win/linux(ubuntu1604). More exactly: • Using LC 8.1.10/9.0.5/9.5.0 it runs on MacOS >=10.12.6. • Using LC 8.1.10/9.0.5 it runs on Win7. • Using LC 9.0.5 it runs on Win10 and linux(ubuntu1604). [Thi

Re: Livecodeshare/SampleStacks

2019-10-26 Thread hh via use-livecode
> Richard G. wrote: > I'll try to remember to never try others' scripts using "import > snapshot", like I'm already in the habit of never thinking about having > a browser widget, or the ability to play a movie or audio file, or have > windows layer in an expected fashion... The problem is that

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
The sample stack "DePerspective/Undistort Images 1.0.1" http://livecodeshare.runrev.com/stack/824/DePerspective-Undistort-Images-1-0-1 uses for a given image tesseract if installed on the system (mac/win/linux). ___ use-livecode mailing list use-livecode

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
There are also emscripten ports to javascript you could use via a browser widget (and a CDN if online). https://tesseract.projectnaptha.com https://antimatter15.com/ocrad.js/demo.html ___ use-livecode mailing list use-livecode@lists.runrev.com Please vi

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
After a second read I think it will be hard to find a service to do that for you. And this is not doable using tesseract or similar from LiveCode: AFAIK, no "ordinary" OCR software is able to detect and read horizontal *and* vertical text and distinguish clearly between the board's "Score text" an

Re: callbacks in Mac video player?

2019-10-28 Thread hh via use-livecode
> Richard G. wrote: > The Dictionary says callbacks still work on macOS, but it > also says they're supported on Linux, where I don't recall > callbacks ever being supported, and for several years video > playback doesn't work at all. > I can't make callbacks work on macOS Catalina using v9.5. > Sh

Re: drag'n'drop in text fields

2019-10-28 Thread hh via use-livecode
on dragDrop if "files" is among the keys of the dragData then put line 1 of the dragData["files"] -- or whatever end if end dragDrop on dragEnter set the dragAction to "copy" end dragenter ___ use-livecode mailing list use-livecode@lists.runre

Re: drag'n'drop in text fields

2019-10-28 Thread hh via use-livecode
Hi Klaus. >> I wrote: >> on dragDrop >> if "files" is among the keys of the dragData then >> put line 1 of the dragData["files"] -- or whatever >> end if >> end dragDrop >> >> on dragEnter >> set the dragAction to "copy" >> end dragenter > You wrote: > .. also tried that, but then the p

Re: callbacks in Mac video player?

2019-10-28 Thread hh via use-livecode
> Richard G. wrote: > Thanks. Unfortunately the reason I'm looking into this is to replace an > old component dependent on 32-bit macOS, now that many are "upgrading" > to Catalina. Richard, 9.0.5 WORKS, also its standalones (check 64 bit), on Catalina... Even 8.1.10 can build (experimental) 64b

Re: identifying text chars in an image

2019-10-28 Thread hh via use-livecode
> Phil D. wrote: > So maybe I should first be asking about detecting the grid > established by the scrabble letters. You need some criteria to find the topleft of the grid and the size of one letter: color/transparency/a marker(fixed image part)... You could also use pattern recognition for that.

OCR-Lite_v100

2019-10-28 Thread hh via use-livecode
The stack OCR-Lite is a GUI to the JS library by Kevin Kwok https://github.com/antimatter15/ocrad.js which is in turn an emscripten port to GNU Ocrad by Antonio Diaz Diaz https://www.gnu.org/software/ocrad/ocrad.html The library is included in the stack, so you can use it offline. The License is GN

Re: drag'n'drop in text fields

2019-10-29 Thread hh via use-livecode
> Klaus M. wrote: > Yep, I meant without any "dragxxx" script. Why do you fear "dragxxx"? ;-) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http:/

Re: drag'n'drop in text fields

2019-10-29 Thread hh via use-livecode
>> I wrote: Why do you fear "dragxxx"? ;-) > You wrote: I really don't! I really know. Was a 'language' joke, sorry. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscripti

Re: callbacks in Mac video player?

2019-10-29 Thread hh via use-livecode
> Richard G. wrote: > I stand corrected: callbacks apparently work in v9.5 under Catalina as well. True, works here also, sorry all for the wrong info. [Looked at my earlier tests. The problem there was the msgbox (kept hidden).] > What do you need from LCB that's missing? an up-to-date browser

Re: Need trig & LCB help

2019-10-29 Thread hh via use-livecode
Replace the last part of your handler with the following. variable tBNum as Number variable tBCenters as List put tBigRad - tLilRad into tInnerRad put the number of elements in mData into tBNum put regularPoints([tBNum,tInnerRad,tBigX,tBigY]) into tBCenters repeat with tButtonNumber from 1 up to

Re: encoding woes!?

2019-10-29 Thread hh via use-livecode
Did you check the encoding of test.html with BBEdit (should be Unicode (UTF-8))? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.

Re: encoding woes!?

2019-10-29 Thread hh via use-livecode
Just saw it now, overlooked that first: You script put textencode(tTExt,"UTF8") into url ("file": ...) This should read put textDecode(tTExt,"UTF8") into url ("file": ...) = But why using files? If you don't want to type directly in the browser widget you can make it "mirroring" a text fiel

Re: The Roadmap

2019-10-29 Thread hh via use-livecode
I also think all of them are still valuable targets. Of course one could say "I know features/repairs that should be made before that" and advertise for them. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe

Re: encoding woes!?

2019-10-29 Thread hh via use-livecode
Hi Klaus, this is dangerous because the code could have "mixed" encodings if you (or your partner) edits the code in texteditors with different encoding settings. I looked again carefully into your first post. You use the htmltext of the widget, so your original code is correct. It works here as

Re: scroll browser widget via script?

2019-10-29 Thread hh via use-livecode
> Klaus M. wrote: > can we (v)scroll a browser widget via script? Of course by setting anchors and jumping via URL to there. But you don't mean that, so: No. But we have a forum. From post "Scroll my widget (='.'=)" http://forums.livecode.com/viewtopic.php?p=156701#p156701 -- scrolls "to" horiz

Re: encoding woes!?

2019-10-29 Thread hh via use-livecode
>> Also LiveCode uses a BOM. If there is no UTF-8 BOM it uses >> Mac OS Roman. That is what you see when you type into msg >> put textEncode(the htmltext of widget "Browser", "UTF-8"). > > Which shows exactly the same (with umlauts and stuff) as simply: > put the htmltext of widget "Browser"

Re: Need trig & LCB help

2019-10-30 Thread hh via use-livecode
Greg, I've been away from LCB for a while. When reading the last post again I remembered an improvement that you could try to use: The current version computes the pathes with every redraw (onPaint). This is far too often. We could compute the pathes once (in onCreate) and then update ONLY when ne

Re: cr, lf, and reading in terminals/vim

2019-10-30 Thread hh via use-livecode
In case your python file becomes a bit more complicated, you shouldn't use workarounds as using backspace to come to a binary format, because you then need exact indents (could be tabs). Better use (without replacing anything in mrgCmds) Matthias' answer to use binary write. Or the usual variant

Re: Learning from scratch - any recommendations? [with OT additions]

2019-11-03 Thread hh via use-livecode
The problem of learning human languages is not very different from the problem of learning programming languages. TMHO, not knowing JavaScript is comparable to not knowing Spanish (the dominant language in the USA). We all are more or less idiots. ___

Re: Managing maximized windows on MacOS

2019-11-04 Thread hh via use-livecode
Did you already see the new https://support.apple.com/en-ie/guide/mac-help/mchlp2469/mac Such "features" override LC settings (on MacOS 10.14/10.15). ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubsc

Re: numberformat woes?

2019-11-07 Thread hh via use-livecode
Klaus, a better property name would be Donaudampfschifffahrtsgesellschaftkapitänskajütenschlüsselloch ;-) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferenc

Re: Y coordinate for a line of text

2019-11-14 Thread hh via use-livecode
> I’m needing to know the coordinate (Y is the tricky one) for a line of text... the selectedLoc if you need the rectangle use additionally measureText or measureUnicodeText ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this ur

WebP-Tool v103

2019-11-18 Thread hh via use-livecode
WebP is a new image format for the web, see https://developers.google.com/speed/webp The stack is a helper for using the BSD-licensed converter software, so you can use webp images in your stacks. The stack contains the binaries for 64bit Mac/Win/linux. You can copy them to your own stack. For 32

Re: WebP-Tool v103

2019-11-18 Thread hh via use-livecode
Sorry, the download links had a wrong path. Here are correct ones. [Download] Currently I cannot upload to "SampleStacks/livecodeshare". So please use from the message box (EU) go stack url ("http://hyperhh.de/xstacks/webP-Tool_v103.livecode";) (US) go stack url ("http://hh.on-rev.com/xstacks/webP

Re: WebP-Tool v103

2019-11-18 Thread hh via use-livecode
> Jjs wrote; Nice, thank you. I noticed it. But they are not used very > much yet. Also for jpeg are some extra formats. TMHO it doesn't really matter what's used in the web. The purpose of webP is, if you have a lot of images/large images, that these load much faster from a server or use less si

<    3   4   5   6   7   8   9   >