Search found 756 matches

by Thierry
Wed Jun 24, 2020 5:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

Thierry, thank you so much for the solutions in regex. I tried both your solutions and they both worked. Mark, You're welcome. what is the difference? "(?x) (\[ [^\] ]+ ] )" "(\[[^\]]+])" Actually, there is none, except the 1st is easier to read - for the eyes. (?x) set on the free-space mode In fr...
by Thierry
Mon Jun 22, 2020 8:11 am
Forum: Converting to LiveCode
Topic: Getting an LC error when trying to talk to Javascript
Replies: 4
Views: 1323

Re: Getting an LC error when trying to talk to Javascript

Opaquer wrote:
Mon Jun 22, 2020 2:44 am
Hi Thierry
Thanks for the input and the advice
I changed the code for the button to what you said and gave it a shot,
and unfortunately I still got the same error :(
Hi Opaquer,

Sorry, don't have other ideas, but feel free to send me your testing stack,
I might look at it...

Regards,

Thierry
by Thierry
Sun Jun 21, 2020 5:22 pm
Forum: Converting to LiveCode
Topic: Getting an LC error when trying to talk to Javascript
Replies: 4
Views: 1323

Re: Getting an LC error when trying to talk to Javascript

Hi Opaquer, on mouseup put "" into field "Output" set the HTMLText of widget "Browser" to field "HTMLText" do "solve(5);" in widget "Browser" end mouseup Out of my head, I would give some times for the widget to be set. on mouseup put "" into field "Output" set the HTMLText of widget "Browser" to fi...
by Thierry
Sun Jun 21, 2020 9:39 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Field data to shell script
Replies: 6
Views: 412

Re: Field data to shell script

i cannot figure out how to get it to read the field data.. current script: get shell("ffmpeg -f lavfi -i color=c=blue:[[field "size"]] -t 5 -r 5 -pix_fmt yuv420p -tune stillimage test mp4") Hi Spready, I'm surprised that your shell line works; it should flag an error in the script Editor ??? You ca...
by Thierry
Wed Jun 17, 2020 6:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

Nowadays, BBEdit Free version is replacing textWrangler. That's good to know I can't say enough good things about BBEdit, it even has a LiveCode plugin to colorize and work with LC scripts. Sure, excellent tool with so much features... It's my main development tool today, and their support is excel...
by Thierry
Wed Jun 17, 2020 5:22 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

jacque wrote: There's a free version called Textwrangler.
Nowadays, BBEdit Free version is replacing textWrangler.

barebones BBEdit Free.png


https://www.barebones.com/products/textwrangler/


Regards,

Thierry
by Thierry
Wed Jun 17, 2020 8:49 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

Hi, and finally, using the same regex as the one in my 1st post, that's how I would do it for a long text: get sunnYextract( T, "(?x) (\[ [^\] ]+ ] )", "\1\n", resultText) put resultText with T being: 123[xcfdfdf]456[kjfklgdfgfkjg]789 123[4234234234]456[t45t4e453]789[34f343ff]0 the resultText will b...
by Thierry
Wed Jun 17, 2020 7:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

richmond62 wrote: I have a feeling the OP wanted what was inside the [] .
Then, you already have it in my 1st post.

Code: Select all

if matchText(T, "(?x) (\[ [^\] ]+ ] )", gotIt) then put gotIt
Best,

Thierry
by Thierry
Tue Jun 16, 2020 6:07 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

richmond62 wrote:
Tue Jun 16, 2020 4:20 pm
Hmm . . . REGEX does look a whole lot faster
Ok, I did test it now :wink:

input text:
123[xcfdfdf]456[kjfklgdfgfkjg]789
123[4234234234]456[t45t4e453]789[34f343ff]0
result with replaceText:
123456789
1234567890
:roll:
by Thierry
Tue Jun 16, 2020 3:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

Does anyone know how to convert the following to regex? select all text between "[" and "]" including the brackets e.g. select "[abcdef123]" or "[bbb]" from a line of text Hi Mark, as a start, not tested: if matchText(T, "(?x) (\[ [^\] ]+ ] )", gotIt) then put gotIt or if matchText(T, "(\[[^\]]+])"...
by Thierry
Sun Jun 14, 2020 9:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Difficult find and replace problem (for me)
Replies: 36
Views: 2066

Re: Difficult find and replace problem (for me)

Thank you. I will spend some time on it... Hello Linda, +42 for everything Sparkout and Kelly said. Here are few comments out of my head: - You can get BBEdit 13 free version (less features that the shipped one) - If your interest is to learn regex, I kindly suggest that you start with some tutoria...
by Thierry
Sat May 30, 2020 8:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Imagedata convert to text
Replies: 5
Views: 327

Re: Imagedata convert to text

EddieLee wrote:
Sat May 30, 2020 6:51 pm
The images that works with sunnymage is in the imagedata format?
Well, if you say so :roll:

sunnYmage is a Livecode IDE plugin plus
a Lua external which does raw transformation on images...

The external accepts only raw datas, thus imageData.

Be well,

Thierry
by Thierry
Sat May 30, 2020 5:02 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Imagedata convert to text
Replies: 5
Views: 327

Re: Imagedata convert to text

I understand, however the images displayed by imagedata are quite blurry as its pixelised,
is there any way to solve this issue ?
Sorry, can't help you much here,
except showing you a LC plugin which works only with imageData:

https://vimeo.com/thierrydouez

Good luck,

Thierry
by Thierry
Sat May 30, 2020 4:39 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Imagedata convert to text
Replies: 5
Views: 327

Re: Imagedata convert to text

Hi All, Currently im using the imagedata of an image to store and display the image, however i realised that the image is pixelised and it causes some blurriness. If i use the text of the image, it takes a long processing time to display and upload to my DB. Is there anyway i can upload to my DB a ...
by Thierry
Thu May 28, 2020 10:07 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Modifying what MouseText returns
Replies: 9
Views: 600

Re: Modifying what MouseText returns

I have written a fairly decent Bible study application... Currently, the user can click on the reference to go to John chapter 3 but it would be nicer to get to the verse and also display the verse in a small modeless stack window. Thanks for any help. Hi Matt, Another way to do it would be to buil...

Go to advanced search