Search found 476 matches

by lohill
Thu Jun 03, 2021 9:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Offset and charsToSkip
Replies: 7
Views: 3302

Re: Offset and charsToSkip

I did finally find the errors in my original script thanks to you restoring my confidence in offset using charsToSkip. It now looks like this but I won't use it after seeing yours and Richards versions. My scripts are usually pretty ugly but fortunately LiveCode is so efficient that they seem to run...
by lohill
Thu Jun 03, 2021 6:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Offset and charsToSkip
Replies: 7
Views: 3302

Re: Offset and charsToSkip

Craig, The fooling around is necessary as you say but your latest rendition is picking up one more character than it should. You don't see it when the last char being colorized is a space. Your "Set" line should look like this: set the foreColor of char (it + charsToSkip) to (it + charsToSkip + stri...
by lohill
Thu Jun 03, 2021 4:14 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Offset and charsToSkip
Replies: 7
Views: 3302

Re: Offset and charsToSkip

Thanks Craig and Richard, Both these suggestions give me new approaches to my problem and they are both certainly better. Craigs use of "Word" does not give me the flexibility of working with text which are not simply LC words. I'll spend some time to see if "offset" rather than "wordOffset" can be ...
by lohill
Tue Jun 01, 2021 6:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Offset and charsToSkip
Replies: 7
Views: 3302

Offset and charsToSkip

I have a text field that I would like to search for a particular string of characters. For each occurrence of that string which is found I would like to change the color of those characters to red. If I use "Find" on the field I can put little boxes around all the occurrences but can see no way to g...
by lohill
Fri Mar 19, 2021 2:08 am
Forum: Internet
Topic: Execute JavaScript from Livecode
Replies: 23
Views: 17432

Re: Execute JavaScript from Livecode

You da man PaulDaMacMan'

do tCommands in widget "Browser" worked.

Sure glad I don't have to worry about bash and curl

Thanks,
Larry
by lohill
Thu Mar 18, 2021 7:22 pm
Forum: Internet
Topic: Execute JavaScript from Livecode
Replies: 23
Views: 17432

Re: Execute JavaScript from Livecode

on mouseUp pMouseButton put field "Handler" into tCommands -- this field contains the api replace "5555555555" with "6192013186" in tCommands replace "Hello World" with "Spot Available" in tCommands set the javascriptHandlers of widget "Browser" to tCommands do liveCode.fetch in widget "Browser" pu...
by lohill
Thu Mar 18, 2021 2:57 pm
Forum: Internet
Topic: Execute JavaScript from Livecode
Replies: 23
Views: 17432

Re: Execute JavaScript from Livecode

Paul Thanks for trying but it is still way more than a "bit confusing" for me. When you say "set the javascripthandlers of widget "Browser" to "fetch" did you chose the word "fetch" because that is the first word of the code in the api that textbelt gave me. I think of that as the "container" that I...
by lohill
Wed Mar 17, 2021 10:58 pm
Forum: Internet
Topic: Execute JavaScript from Livecode
Replies: 23
Views: 17432

Execute JavaScript from Livecode

I have an API from textbelt.com that allows you to send a text message from your computer to a mobile phone. Here is the Javascript: (they also have other languages but not LiveCode) fetch('https://textbelt.com/text', { method: 'post', headers: { 'Content-Type': 'application/json' }, body: JSON.stri...
by lohill
Sat Mar 13, 2021 3:29 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Send a Text Message inside a LiveCode Application
Replies: 1
Views: 1539

Send a Text Message inside a LiveCode Application

I have an application that periodically checks a website for a piece of information. If that information is not found, the program waits for a while before checking again. When my application finds what it is looking for it currently beeps a few times to notify me of success. Is it possible to make ...
by lohill
Sat Feb 20, 2021 7:19 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Browser Widget Timing
Replies: 5
Views: 2675

Re: Browser Widget Timing

Thanks Richard, I had no idea there was a get url command. I thought I had to render it first and then get the hymltext for the information I wanted. Will I get the htmltext basically instantly or will I have to do some waiting? There are times when I want to see the page but not for this case. Larry
by lohill
Fri Feb 19, 2021 7:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Browser Widget Timing
Replies: 5
Views: 2675

Browser Widget Timing

I want to use the Browser Widget to retrieve data from a collection of similar but different web pages. I want to get the data quickly and reliably. The URLs are contained in the field "URLS". The following code (abbreviated) seems to work. on mouseUp pMouseButton repeat for each line tUrl in field ...
by lohill
Tue Jan 19, 2021 7:10 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: bzip2 Compression
Replies: 2
Views: 1828

Re: bzip2 Compression

Thanks Klaus, I'll explore that to see it it will do what I want.

Larry
by lohill
Tue Jan 19, 2021 7:02 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: bzip2 Compression
Replies: 2
Views: 1828

bzip2 Compression

Is there a LiveCode function or command that will compress a string using bzip2 compression that can be used to compress a URL.
Thanks for any help you can offer.

Regards, Larry
by lohill
Mon Dec 28, 2020 3:06 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Browser Widget and htmltext
Replies: 0
Views: 7850

Browser Widget and htmltext

I have a URL which when launched in a browser widget produces a form for conducting a backtest of a specific stock screen. To do the backtest you just click the button called "Run Backtest". If you have a password for screening, you may type it into the passwords field on the form and then click the...
by lohill
Sat Jul 04, 2020 6:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Datagrid not showing it's data
Replies: 8
Views: 4433

Re: Datagrid not showing it's data

Craig et al, Found it and as usual it was operator error. I went to the code for the button "My Default Column Behavior" (the one that was red in the Project Browser). On the surface everything looked as I thought it should (no red dots). I added a blank line to one of my sections of code and then p...

Go to advanced search