Search found 152 matches
- Sun Aug 24, 2025 5:41 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Wait until commandKey is down only works once
- Replies: 5
- Views: 1230
Re: Wait until commandKey is down only works once
Thank you, Craig, I want to use this method in an application that basically plays a song, and while listening I press a key to mark specific moments, which are stored in a list. Later, those moments will be used to trigger processes synchronized with the same song.
- Fri Aug 22, 2025 10:08 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Wait until commandKey is down only works once
- Replies: 5
- Views: 1230
Re: Wait until commandKey is down only works once
Great, thank you so much, SWEdeAndy. And since this is about synchronizing musical moments where a second is sometimes too long, I assume ticks might work. I've tried wait 10 with messages and it seems to be working.




- Fri Aug 22, 2025 8:21 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Wait until commandKey is down only works once
- Replies: 5
- Views: 1230
Wait until commandKey is down only works once
Hi, I’m facing a problem I thought I had already solved, but now I’m stuck again and can’t make it work. I’m trying to run three actions, each triggered by a separate press of the Command key: on mouseUp wait until the commandKey is down put "AAAAA" wait until the commandKey is down put "BBBBB" wait...
- Sat Nov 09, 2024 9:45 pm
- Forum: Talking LiveCode
- Topic: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
- Replies: 8
- Views: 14507
Re: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
Thank you very much for all your help. It is very reassuring to be able to count on this forum.
- Sun Nov 03, 2024 12:07 pm
- Forum: Talking LiveCode
- Topic: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
- Replies: 8
- Views: 14507
Re: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
Hello Bernd, Thank you for your suggestion on handling UTF-8 encoding in LiveCode. Although I haven’t tested it exhaustively yet, it seems that the compatibility issue with special characters in JSON files is resolved, which simplifies their use in my text animation application in Python. Much appre...
- Sat Nov 02, 2024 1:21 pm
- Forum: Talking LiveCode
- Topic: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
- Replies: 8
- Views: 14507
Re: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
Thank you, Stam, for your recommendation. I appreciate the suggestion of FerrusLogic's PhotonJSON library, especially since it respects UTF-8. While I am still exploring and investigating alternative methods to ensure compatibility with UTF-8, your advice is valuable and certainly something I will c...
- Sat Nov 02, 2024 1:58 am
- Forum: Talking LiveCode
- Topic: Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
- Replies: 8
- Views: 14507
Issues with Encoding UTF-8 JSON Files in LiveCode for Python Compatibility
Hello everyone, I’m working on a project where I need to export configuration data from LiveCode to a JSON file. The ultimate goal is for this JSON file to be compatible with a Python program that reads and processes it. The challenge is that the data includes special characters (such as accented le...
- Fri Sep 20, 2024 5:36 pm
- Forum: Talking LiveCode
- Topic: How to Change All Occurrences of a Substring to Uppercase in a Field
- Replies: 7
- Views: 10688
Re: How to Change All Occurrences of a Substring to Uppercase in a Field
Thank you very much, Richmond, but I'm not sure if it would work when the target is at the beginning of a line or after a period or a comma... Also, the algorithm would need to work both for a single word (e.g., "here") and for a small phrase (e.g., "in front").
- Fri Sep 20, 2024 9:13 am
- Forum: Talking LiveCode
- Topic: How to Change All Occurrences of a Substring to Uppercase in a Field
- Replies: 7
- Views: 10688
Re: How to Change All Occurrences of a Substring to Uppercase in a Field
I was overcomplicating things. I believe I’ve found the most straightforward way to do it. on mouseUp put "in front" into obje put upper(obje) into obje2 replace obje with obje2 in field almacenb preserving styles end mouseUp mmm... Although I hadn’t considered the problem of finding a substring wit...
- Fri Sep 20, 2024 8:01 am
- Forum: Talking LiveCode
- Topic: How to Change All Occurrences of a Substring to Uppercase in a Field
- Replies: 7
- Views: 10688
How to Change All Occurrences of a Substring to Uppercase in a Field
Hi, I need help converting all occurrences of a specific substring to uppercase within a field. I’m already using the upper function to convert to uppercase, but my main issue is finding all occurrences of the substring and putting them back in the same position. Is it possible to do this using the ...
- Sat Aug 26, 2023 7:33 pm
- Forum: Talking LiveCode
- Topic: counting occurrences
- Replies: 17
- Views: 22505
Re: counting occurrences
Code: Select all
function CountOccurrences haystack, needle
set the itemdelimiter to needle
return the number of items in haystack - 1
end CountOccurrences
- Sat Apr 29, 2023 4:02 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Using expressions with "<" and ">"
- Replies: 17
- Views: 17340
Re: Using expressions with "<" and ">"
Thank you for your answers. I understand the problem now and will try to find another way to fix it. As a curiosity: I presented the problem to ChatGPT and it's clear that it doesn't have any complexes. It may not have any idea what it's saying, but at least it says it with a lot of confidence. :D A...
- Sat Apr 29, 2023 8:53 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Using expressions with "<" and ">"
- Replies: 17
- Views: 17340
Using expressions with "<" and ">"
Does anyone know how to force LiveCode to return a string instead of calculating the result when using "<" and ">" and "</" ? With the PUT command there is no problem, but I need it with ANSWER or RETURN to deliver a result within a routine. For example: answer "<" & aaa & ">" & 555 & "</" & aaa & "...
- Fri Apr 14, 2023 7:37 pm
- Forum: Talking LiveCode
- Topic: revRotatePoly
- Replies: 9
- Views: 5964
Re: revRotatePoly
Thank you, Richmond... and Thank you very much, Bernd!!! Understood, applied, and problem solved. 

- Fri Apr 14, 2023 6:50 pm
- Forum: Talking LiveCode
- Topic: revRotatePoly
- Replies: 9
- Views: 5964
Re: revRotatePoly
"Power to the squares!!! 
... Anyway, nothing to do about it. Let's see if I can figure out the solution.

... Anyway, nothing to do about it. Let's see if I can figure out the solution.
