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
0
votes
1 answer

I can't set width and height of video player - livecode

I want to set width and height of my video player. Here my code. put the text of fld "txt_width" into w_value put the text of fld "txt_height" into h_value set the width of player ID idplayer of stack stackname to w_value …
KemChat
  • 151
  • 3
  • 11
0
votes
1 answer

How to adding and append code on runtime ? - livecode

I want to add code and append it on runtime. Example: This code is before adding code on runtime on opencard emptyvariable end opencard command selectvdofile answer file "Select Video file" put it into fld "txt_namefile" put it into…
KemChat
  • 151
  • 3
  • 11
0
votes
2 answers

How to display meaningful error messages

Is there a command in livecode to display an error message like this? I basically want to output the line number where the error occured. if the cDev is "dev" then -- check for development system answer error "Error"&& lineNumber && "on cardscript"…
Tate83
  • 274
  • 1
  • 7
  • 21
0
votes
1 answer

How to get list card of stack ? - livecode

I want to get list card and list objects of stack by name. Before.I ask question "How to find stack of Project Browser ? - livecode".I can do it. Now.I want to get list card and list objects of stack by name. Can anyone show example code for me…
KemChat
  • 151
  • 3
  • 11
0
votes
1 answer

How to callbacks to another stack ? - Livecode

I create Looping video. I want to use function callbacks to another stack. Here my code : start using stack "Widget Project" put the duration of player "Player" into tDuration put tDuration & ",restartPlayer" into tCall set the callbacks…
KemChat
  • 151
  • 3
  • 11
0
votes
1 answer

How to add CKEditor for input field ? - Livecode

I don't know for this question is possible. I want to add CKEditor when input text in textfield same this :
KemChat
  • 151
  • 3
  • 11
0
votes
2 answers

How to adding code to object at runtime ? - Livecode

everyone.I have any idea to adding code to object at runtime.But I have some problem. If that object have script and I want to adding code to object by keep old script of object. How do I do ? Here my code : put "on preOpencard" & return & "playani"…
KemChat
  • 151
  • 3
  • 11
0
votes
2 answers

How can I add a checkbox to a datagrid column

Unfortunately I cannot use the DataGridHelper plugin to add a checkbox in the datagrid column since I am using the community version.
Tate83
  • 274
  • 1
  • 7
  • 21
0
votes
2 answers

answer file dialog not recognizing cancel

Why does this cancel check not work? answer file "Bitte Bild auswählen" with type "Images|jpg|jpeg|png" if the result is not "cancel" then put it into tMyImagePath ... end if It always starts to run code. I also tried "Cancel" and "Abbrechen". I…
Tate83
  • 274
  • 1
  • 7
  • 21
0
votes
3 answers

How to filter list file with type image ? - Livecode

I want to filter list file with type image.But my code isn't working. Here my code : local tFolder answer folder "Please choose the folder" put it into tFolder set the defaultFolder to tFolder if there is a folder tFolder then …
KemChat
  • 151
  • 3
  • 11
0
votes
1 answer

How to create player and set autoplay with code at runtime?

I want to create a video player from another stack and set autoplay. I have created the object "player" in stack 1. To create a player in stack 2, I click on a button. This is the code in the button: set the filename of player "Player" of card…
KemChat
  • 151
  • 3
  • 11
0
votes
2 answers

How to add custom options menu when Right Click on edit tool - Livecode

I want to create object and I want to add custom options menu when Right Click on edit tool. This image : I want to add custom menu on top "Edit Script" How do I do ?
KemChat
  • 151
  • 3
  • 11
0
votes
1 answer

How to have several user accounts in one database with LiveCode

I have a database with several tables. There are several user accounts that should be able to CRUD their stuff but should never see other users information. I was planning to store the UsersID in every record he has access to and then make sure that…
Tate83
  • 274
  • 1
  • 7
  • 21
0
votes
1 answer

Livecode Script to check if online connection is up

I need to develop a few lines to check if a running program has internet access in general, or at least if it can access a specific domain or ip. How do you implement this? It should be platform-independent so using bash or cmd is not the optimal…
Tate83
  • 274
  • 1
  • 7
  • 21
0
votes
2 answers

specialFolderPath("Users/myname") is not working - Livecode

I'm download file from url and I want to put file to Home directory(Users/myname/livecode). This my code : set the itemDel to slash put last item of pURL into tFilename put specialFolderPath("Users/myname") & slash before…
KemChat
  • 151
  • 3
  • 11