Search found 89 matches

by Xero
Fri Feb 26, 2021 12:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating a QR code to display an image
Replies: 8
Views: 323

Re: Creating a QR code to display an image

Do you wish to encode the imagedata of an image into a QR code? That would be a lot of data unless the image is quite small. QR codes are generally used for small amounts of data. The module (177x177) will encode 7089 numbers, 4296 alphanumeric. It almost sounds like you want to have a QR code that ...
by Xero
Fri Feb 26, 2021 11:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using Accelerometer outputs to change a field colour
Replies: 6
Views: 159

Re: Using Accelerometer outputs to change a field colour

Did you set an interval with your mobileEnableAccelerometer command? mobileEnableAccelerometer 100 for example? The dictionary seems to state: "The mobileEnableAccelerometer command will cause accelerationChanged events to be delivered to the current card of the defaultStack at the specified interva...
by Xero
Mon Feb 22, 2021 4:11 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to check the status of a checkbox in code
Replies: 3
Views: 164

Re: How to check the status of a checkbox in code

from user gpb01:

Code: Select all

  on mouseUp
       if the hilite of button "buttonName" then   ---is if it is true/ checked
          -- do something
       else
          -- do something else
       end if
    end mouseUp
i.e. use "hilite" is true or false...
XdM
by Xero
Wed Feb 17, 2021 2:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Color Choser
Replies: 23
Views: 893

Re: Color Choser

Excuse my naivety, I can't even seem to find the path to get to the palette for the colour chooser... Is it a plugin by chance? If so, if you go to Development - Plugins - Plugin Settings, and go to the plugin (if your colourchooser is there), you may be able to change the settings for it... Or alte...
by Xero
Sun Feb 14, 2021 3:04 am
Forum: Talking LiveCode
Topic: Advice & tips for array
Replies: 10
Views: 642

Re: Advice & tips for array

Is there a way that you can do that without going through an array? Essentially, you know where the pertinent data is in your line structure, and if all you want is the data from ONE day (not a range, that's a different beast), you should just be able to do a "search" for want of a better term... pu...
by Xero
Sun Feb 07, 2021 5:51 am
Forum: Talking LiveCode
Topic: Auto resize
Replies: 9
Views: 888

Re: Auto resize

Here's the code to the open that may need to be adapted: on OpenStack --if you replace the references to image with the working screenrect (particularly item 3= width, and item 4= height), then scale to 95% (*0.95) you should be able to patch together your sizes-- put the width of img "Image" of sta...
by Xero
Sat Feb 06, 2021 7:46 am
Forum: Talking LiveCode
Topic: Auto resize
Replies: 9
Views: 888

Re: Auto resize

I ended up patching together a ratio-dependant stack resizer script for a project that I am still working on. It's a fair bit of maths... If you have a stack that is a certain ratio, and you want to keep it that ratio regardless of the screen ratio (i.e. you always want your stack to be 1:1 on 3:4 o...
by Xero
Mon Feb 01, 2021 1:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Rename a file to the contents of a field on a card
Replies: 11
Views: 745

Re: Rename a file to the contents of a field on a card

If you want to put the newly created file name somewhere on the page when it's printed (like the old fashioned TXT files on windows used to do), you could try something like this: on mousedown --or mouseup, whatever you prefer-- ask file "Choose a file for the PDF:" if it is not empty then put IT & ...
by Xero
Thu Jan 28, 2021 11:09 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Numbers in text fields
Replies: 33
Views: 2328

Re: Numbers in text fields

I haven't tried this, but this might simplify the code by a line... Existing code: put return before line 1 of field "Index" of card "Navigation" put tName before field "Index" of card "Navigation" I gather this is to place a blank line at the start of the field then replace it with 'tName', having ...
by Xero
Sat Dec 26, 2020 5:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Random movement of some little objects?
Replies: 32
Views: 4594

Re: Random movement of some little objects?

I am sure if you're using objects running across smooth curves, you can randomise the points of the curve using the random() function, and that way the curve itself will create random shapes for the objects to run across. I'd need to play with it to see how easy and fast that is to do. Select random...
by Xero
Sat Dec 19, 2020 11:33 am
Forum: Games
Topic: Livecode Ideas For IRL Puzzle app
Replies: 4
Views: 753

Re: Livecode Ideas For IRL Puzzle app

Here's the post:
viewtopic.php?f=10&t=34843
Sadly, I couldn't post the stack, so I posted the code, and it would need to be reconstructed!
Xero
by Xero
Sat Dec 19, 2020 11:00 am
Forum: Games
Topic: Livecode Ideas For IRL Puzzle app
Replies: 4
Views: 753

Livecode Ideas For IRL Puzzle app

Hi brainstrust, I am embarking on a project to create a multi-facet puzzle game that is based on 'in real life' situations. It's hard to explain as we're trying to break some new ground and cross-over a few boundaries. The basis of the game is a treasure hunt based on puzzles. There is text- and ima...
by Xero
Sat Nov 14, 2020 4:36 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to search between two dates in livecode.
Replies: 7
Views: 1119

Re: How to search between two dates in livecode.

If you're still setting up your SQL database, then there are a few more steps in setting up the database, accessing it, etc. There are some really good tutorials for that stuff on the Livecode page/ forum. The search between dates function, not so much. I muddled around for a while, and now have a v...
by Xero
Fri Nov 13, 2020 2:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to search between two dates in livecode.
Replies: 7
Views: 1119

Re: How to search between two dates in livecode.

If you are using an SQL database... here's the code I use: local sDatabaseID local sClientDatabaseID local tSQL command setDatabaseID pDatabaseID put pDatabaseID into sDatabaseID end setDatabaseID function getDatabaseID return sDatabaseID end getDatabaseID on preOpenCard local tDatabasePath, tDataba...
by Xero
Fri Nov 06, 2020 12:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: HTML linking to referenced images
Replies: 7
Views: 1334

Re: HTML linking to referenced images

How are you "referencing" your images? If you are using relative paths, when you shift your app/HTML5, then the relative links won't go with it. If you're using absolute paths, then it should find it, as long as it has access to the link (i.e. if your path is linking to you hard-drive, and you're ac...

Go to advanced search