Search found 77 matches

by FredBeck
Wed Jan 16, 2019 12:45 am
Forum: Talking LiveCode
Topic: Follow up on the Visitor Patern blog article
Replies: 1
Views: 481

Follow up on the Visitor Patern blog article

Hi livecoders, long time no see! A few days ago I came up this recent blog article about the visitor design pattern ( https://livecode.com/visitors-in-livecode/ ) I think there are a couple of mistakes. Luckily, both are very easy to fix. So I launched Livecode for the first time in six month and go...
by FredBeck
Wed Apr 06, 2016 4:41 pm
Forum: Raspberry Pi
Topic: LiveCode not running on Raspbian Jessie?
Replies: 1
Views: 1698

Re: LiveCode not running on Raspbian Jessie?

No luck here either. The installer actually starts but cant display anything but the background.
by FredBeck
Mon Apr 04, 2016 6:51 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't Turn Off LC Backdrop
Replies: 19
Views: 2919

Re: Can't Turn Off LC Backdrop

Richard, it's LC8 dp 16. I didn't install LC7 yet.
and why lubuntu? I don't know... I'm a little more familiar with lxde and they say it's superlight.
I must say I quite like it so far. Even have windows on a virtual machine now!
by FredBeck
Sun Apr 03, 2016 2:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can't Turn Off LC Backdrop
Replies: 19
Views: 2919

Re: Can't Turn Off LC Backdrop

It's never too late to try Ubuntu. :)
Funny! As a matter of fact I'm trying lubuntu since yesterday, and the backdrop appears in front of everything. If I didn't have a second screen I would've had to kill lc in the console...
by FredBeck
Tue Mar 08, 2016 10:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change the position of answer Dialog
Replies: 9
Views: 1613

Re: How to change the position of answer Dialog

Fun! Two handlers and a local (or whatever) Try this with the backdrop off. local sLoc on mouseUp lock screen put the loc of this stack into sLoc set the loc of this stack to 380,380 send "ResetLoc" to me in .1 tick answer "Is this the correct place?" with "yes" or "no" end mouseUp command ResetLoc ...
by FredBeck
Fri Feb 19, 2016 12:22 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Card of different sizes
Replies: 13
Views: 1071

Re: Card of different sizes

Oh the answer is so much simpler :mrgreen:
Look up for revChangeWindowSize in the dictionary!
Cheers,
Fred
by FredBeck
Sun Feb 14, 2016 2:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: figuring out this language
Replies: 26
Views: 3277

Re: figuring out this language

Small modifications after testing, mainly typos, and the exit parts. After a while you'll see livecode as plain english :D local sNumberToGuess, sMaxNumberOfTries, sTryCounter -- changed sTryCounter (prev. sCuuentTryNumber, too long and with a typo) on mouseUp startGame end mouseUp command startGame...
by FredBeck
Sun Feb 14, 2016 12:21 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: figuring out this language
Replies: 26
Views: 3277

Re: figuring out this language

Hi, welcome to the forum! You syntax is horrible! I suggest you make use of the user guide and the dictionary... Also I think there is a hangman example in the sample stacks... A few points 1) How would you do it in your favourite language? Here you're generating three different random numbers, the ...
by FredBeck
Thu Feb 11, 2016 1:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: comparing dates
Replies: 8
Views: 1128

Re: comparing dates

Time and operators is a tricky thing.
A scary video about time & timezones : https://www.youtube.com/watch?v=-5wpm-gesOY
by FredBeck
Mon Feb 01, 2016 3:36 pm
Forum: Talking LiveCode
Topic: Optimizing plywood usage
Replies: 13
Views: 1784

Re: Optimizing plywood usage

Hi!
In case anyone is interested, here's a link to a github repo that could be useful :)
https://github.com/Jack000/SVGnest/
F.
by FredBeck
Sat Jan 30, 2016 12:36 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: charset encoding decoding with textEncode / textDecode
Replies: 2
Views: 920

Re: charset encoding decoding with textEncode / textDecode

Native encodings are only available on the respective platforms, as written in the release notes here (page 15)
http://downloads.livecode.com/livecode/ ... -7_0_0.pdf
Its true that the dictionary is slightly incomplete here...
Fred.
by FredBeck
Wed Jan 27, 2016 11:49 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute function after some time
Replies: 10
Views: 1334

Re: Execute function after some time

Better syntax I think :

Code: Select all

on mouseUp
   put "hello" into tWord
   put  "value(myFunction(" & quote & tWord & quote & "))"  into tFunc
   send tFunc to me in 2 seconds
end mouseUp
       
function myFunction theText
   answer theText
end myFunction
F.
by FredBeck
Sat Jan 23, 2016 12:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute function after some time
Replies: 10
Views: 1334

Re: Execute function after some time

Simon, I don't think your code is hacky at all, the more I think about it. The quotes positions are really awkward : get "myFunction(Hello)" normally puts "myFunction(Hello)" into the variable it I would expect get myFunction("Hello") to be the thing to send... ps, I just checked, It works in Variab...
by FredBeck
Sat Jan 23, 2016 11:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute function after some time
Replies: 10
Views: 1334

Re: Execute function after some time

Does it make sense to even do that, since you can pass parameters to a handler? I mean, a function usually takes a parameter in and spits a result out, and a handler is usually for doing stuff involving other objects (such as the answer dialog window). Plus the fact that sending a function needs so ...
by FredBeck
Sat Jan 23, 2016 2:21 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Execute function after some time
Replies: 10
Views: 1334

Re: Execute function after some time

This works here on mouseUp put "get " & quote & "myFunction(" & "Hello" &")" & quote into tFunc send tFunc to me in 2 seconds end mouseUp function myFunction theText answer theText end myFunction on mouseUp put "myHandler" && quote & "Hello" & quote into tCom send tCom to me in 2 seconds end mouseUp...

Go to advanced search