Search found 586 matches

by AndyP
Thu Feb 29, 2024 10:22 am
Forum: Off-Topic
Topic: Another reason to stick with LiveCode?
Replies: 15
Views: 781

Re: Another reason to stick with LiveCode?

Interesting thread. So as I read it, the act of writing a program in the Livecode language is considered memory safe as the programmer has no control on how the program written in the Livecode language allocates the memory the program uses. However, the Livecode engine is written largely in c, c++ w...
by AndyP
Wed Feb 14, 2024 10:57 am
Forum: Talking LiveCode
Topic: Code folding for Livecode 9.6.9 and up
Replies: 29
Views: 1790

Re: Code folding for Livecode 9.6.9 and up

Hi Bernd,

This is absolutely brilliant!

I've tested on a 2000 line card script and it does what it says on the tin.

Thank you for the time and effort you've put into this.

Note to LiveCode HQ. Please talk to Bernd about this, it should be a top of list new feature!
by AndyP
Thu Feb 01, 2024 2:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Windows Standalone "Externals" Folder
Replies: 3
Views: 374

Re: Windows Standalone "Externals" Folder

Hi Jon,

No the externals are separate to the exe on Windows.
And if you use some of the lcb components, i.e. the Chart in V10.xx you will get an extension folder as well.
by AndyP
Wed Jan 24, 2024 10:34 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to get the active window title
Replies: 3
Views: 12849

Re: How to get the active window title

As a bonus this will also work with a generated exe file. Which has the advantage that your user does not have to have python installed and no need for the user to have to be helped with installing the packages which they are sure not to have! Amended code on mouseUp pMouseButton getWindows end mous...
by AndyP
Tue Jan 23, 2024 1:17 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: systemMetrics
Replies: 7
Views: 964

Re: systemMetrics

I've been using chatgpt with Livecode in a different way with improving results. I'm feeding in working python code and asking for a Livecode equivalent. When I first started, about a month ago the results were to say the least not encouraging, with chatgpt basing results on functions that do not ex...
by AndyP
Mon Jan 15, 2024 1:27 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to get the active window title
Replies: 3
Views: 12849

How to get the active window title

Ok, so I needed to be able to determine the active (non Livecode) window in Windows, Livecode has no way of doing this directly...hmmm. But, you can do this with python using this little script import win32gui #part of the pywin library, pip install pywin def get_active_window_title(): window = win3...
by AndyP
Thu Jan 11, 2024 4:31 pm
Forum: Talking LiveCode
Topic: Problem with a REST API Call
Replies: 6
Views: 54351

Re: Problem with a REST API Call

Does it help forming the headers like below?

Code: Select all

put "X-Parse-Application-Id: QQQQQ" & cr into tHeaders
put "X-Parse-Master-Key: ZZZZZ" & cr after tHeaders
by AndyP
Mon Jan 01, 2024 9:32 am
Forum: Software Engineering
Topic: Timer algorithm
Replies: 6
Views: 82369

Re: Timer algorithm

Yep correct send in time is non- blocking, must put my glasses on next time.🥳Happy new year to all.
by AndyP
Sun Dec 31, 2023 5:39 pm
Forum: Software Engineering
Topic: Timer algorithm
Replies: 6
Views: 82369

Re: Timer algorithm

No sure about the undo problem but, you should amend this line first

Code: Select all

send "RunMatchTimer" to me in 1 seconds
to

Code: Select all

send "RunMatchTimer" to me in 1 seconds with messages
otherwise your timing loop becomes blocking
by AndyP
Tue Dec 26, 2023 4:17 pm
Forum: Off-Topic
Topic: ChatGPT and LiveCode
Replies: 17
Views: 155853

Re: ChatGPT and LiveCode

Hi Richmond,

Maybe so, time will tell 🤔
by AndyP
Tue Dec 26, 2023 10:47 am
Forum: Off-Topic
Topic: ChatGPT and LiveCode
Replies: 17
Views: 155853

Re: ChatGPT and LiveCode

The latest version of chat gpt-4 does have internet access, so more up to date than previous versions.
by AndyP
Sat Dec 23, 2023 5:16 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: LC 10.0 dp-7 Android Deployment
Replies: 5
Views: 35967

Re: LC 10.0 dp-7 Android Deployment

Hi, I just resolved the same problem on a windows 10 machine. LC 10.0 dp-6 My Preferences settings are: LiveCode_2023-12-23_17-04-17.jpg In the build-tools folder of the sdk I have 28.0.3 33.0.0-rc4 33.0.1 In the platforms folder android-23 and all versions up to and including android-33 One thing I...
by AndyP
Wed Dec 20, 2023 7:15 am
Forum: Talking LiveCode
Topic: Script not running closing card and returning
Replies: 17
Views: 45943

Re: Script not running closing card and returning

Also the global gTimers only needs to be initiated once. Just put global gTimers at the top of the card script outside of any handlers and it will be available for use for all handlers in the card script. To use gTimers any where else, eg. a button, another card, stack again just add to the top of t...
by AndyP
Thu Dec 07, 2023 10:20 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Unsure how to do this
Replies: 10
Views: 20349

Re: Unsure how to do this

Have a look at this code snippet -- this checks to see if the text being typed is already stored as a word in another field (myaccounts) on textChanged -- catches the characters as they are being typed if the text of me is among the words of fld "myaccounts" then answer "Account name used!" delete c...
by AndyP
Tue Nov 21, 2023 6:06 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Formatting Post json
Replies: 1
Views: 8485

Formatting Post json

I'm playing around with the GitHub api and I am problems formatting the correct json string to send via tsnetPost. I have this section of code from a working python script # Create a dictionary to store the data for your new repository data = { "name": "my-new-repository", "description": "This is my...

Go to advanced search