Questions tagged [livecode]

The LiveCode programming language (formerly the "Revolution" programming language) is a cross-platform rapid application development language.

LiveCode allows developers to create applications that run in any of the supported environments, using a compile-free workflow. The scripting language is based on the Hypertalk language originally developed by Apple for Hypercard. Since version 6 an open source version (GPL) is available.

644 questions
1
vote
1 answer

How to record audio in Livecode?

I am using Livecode Community 7.0.4 and I'm trying to create an audio. I am in windows 10. I created three buttons record, stop and play. And on each button I have these code: //record on mouseUp record sound test.wav end mouseUp //stop on…
JunM
  • 7,040
  • 7
  • 37
  • 58
1
vote
3 answers

How to append into field

How can I append a text into a text field. I tried something like: on mouseUp append "Once again" into "field display" end mouseUp Where "display" is a Scrolling field. Thanks.
PatriceG
  • 3,851
  • 5
  • 28
  • 43
1
vote
1 answer

How to create clickable POI's with mergMK in LiveCode?

I'm trying to make an iOS app with LiveCode and the MergEXT-mapkit extension. As a starting point I am modifying the demo app that comes with the extension. I now have an iOS app with a map which centres on my location. I've also added a POI by…
John Allijn
  • 1,945
  • 3
  • 12
  • 9
1
vote
1 answer

How do I process datagram data from mergSocket within LiveCode

I'm writing a simple discovery client/server app using Java (for the server) and a LiveCode app on iOS for the client. The server responds to a broadcast request just fine and I am able to get a response into LiveCode. However the data is somehow…
DanTheMan
  • 41
  • 7
1
vote
0 answers

Using Facebook login with Livecode

I am building a LiveCode application and am using a Facebook Library to provide a login method. Can anyone enlighten what platform I am meant to register on my Facebook developer website in order for my app to allow logins? Currently I am getting a…
1
vote
1 answer

How to do line continuation with quotes in Livecode?

In a Livecode script I have put "CREATE TABLE containers ( `id` INTEGER NOT NULL, `name` TEXT NOT NULL, `description` TEXT, `location` TEXT, `kind` TEXT NOT NULL, `capacity` INTEGER NOT NULL, PRIMARY KEY(id) )" into tSQL It…
tgunr
  • 1,540
  • 17
  • 31
1
vote
3 answers

How to save UTF-8 data in MySQL database in Livecode app

I'm trying to save some data gathered from fields in MySQL db. Text contains some Polish characters, but Livecode sends all Polish chars as '?'. Here's part of my code: Declare variable put the unicodeText of field "Title" into tTitle put…
1
vote
3 answers

How does one modify groups?

I have a hopefully easy to solve problem with my program. My program works 99% (haven't tried to break it yet haha) and I'm on to formatting for scaling to multiple platforms etc. There is one small part of my program that is particularly hard to…
notHalfBad
  • 213
  • 2
  • 9
1
vote
2 answers

How can I separate all the characters of a word into separate fields?

I have a random word generation script that works perfectly. I also have a few single character-width fields, exactly the same amount of them as the longest possible word that can be generated. Below each field I have a line that would resemble an…
notHalfBad
  • 213
  • 2
  • 9
1
vote
1 answer

How to manipulate the position of character(s) in a string in LiveCode

So, I have a very specific problem. I have a random word which I have already generated. I also have a separate string that uses the length of that character, 'n' to repeat "_ " n times to field wordDisplay. These elements of the program work. So,…
notHalfBad
  • 213
  • 2
  • 9
1
vote
2 answers

How to find the file path of a file in livecode

So, I'm incredibly new to LiveCode and I have an external file in the same directory as the .livecode file called 'words.txt', with english words, each on a new line. I plan to read this file into a variable and then pick a random word from that…
notHalfBad
  • 213
  • 2
  • 9
1
vote
1 answer

How to limit data entry to only lowercase letters in LiveCode?

I am making a two-player hangman game, and I have set a limit of 10 characters which is working fine: on keyDown if the length of me = 10 then beep else pass keyDown end if end keyDown However, when I try to limit the character input to only…
CoopDaddio
  • 577
  • 1
  • 5
  • 20
1
vote
2 answers

How to change the imageSource of image in?

I have an image in LiveCode that I would like to change to another image when a specific button is pressed. So far, I have tried this - set the imageSource of image "The_Hangman" to "/HangMan/1.png" However, I am getting an error code of: execution…
CoopDaddio
  • 577
  • 1
  • 5
  • 20
1
vote
1 answer

How to create an array/list?

I would like to put multiple food items into a metaphoric "basket" in LiveCode. I know in Python this is done like this: basket = ["orange", "apple", "tomato", "grapes"] How would this be done in LiveCode? Additionally, I would also like LiveCode to…
CoopDaddio
  • 577
  • 1
  • 5
  • 20
1
vote
1 answer

Migrate Android Studio project to Livecode?

Is there any way to migrate an existing Android Studio project into LiveCode? Haven't seen anything on LiveCode's resources or on Google...
Afflatus
  • 2,302
  • 5
  • 25
  • 40