Search found 95 matches

by Ledigimate
Wed Feb 05, 2014 10:32 pm
Forum: Talking LiveCode
Topic: Card transition slow for no apparent reason [solved]
Replies: 2
Views: 1972

Card transition slow for no apparent reason [solved]

Hi gurus, I've come across an inexplicable phenomenon: The transition between cards in my stack used to be fast, but all of sudden it's slowed down by 3 or more seconds for no apparent reason! When I create a new main stack and copy the cards and scripts from the old stack to the new stack, the new ...
by Ledigimate
Wed Feb 05, 2014 9:21 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 10673

Re: Generating Random Numbers???

Yes,
random(10 - 5 + 1) + 5 - 1
is a bit more readable.
My apologies :oops:

Gerrie
by Ledigimate
Wed Feb 05, 2014 7:17 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 10673

Re: Generating Random Numbers???

Carel, Klaus is right about the -1. "Word 1 to -1" basically means the first word to the last word. Say, for instance, pText contains the string " The lazy dog couldn't care less about a jumping fox. ", and you wanted to return a range of words starting at the fifth word and ending with the second-t...
by Ledigimate
Wed Feb 05, 2014 3:01 pm
Forum: Talking LiveCode
Topic: Generating Random Numbers???
Replies: 13
Views: 10673

Re: Generating Random Numbers???

Hi Carel LiveCode's random function always returns a random number in the range of 1 to n , where n is the upper limit you pass to it. But let's say for example that you want to return a number in the range of 5 to 10, then you can't simply return random(10), because it's lower limit would be 1 inst...
by Ledigimate
Sat Jan 25, 2014 7:20 pm
Forum: Windows
Topic: Hotkey when other application is in focus?
Replies: 4
Views: 5004

Re: Hotkey when other application is in focus?

Hello Frankel, You'll need to create your own LiveCode external that can install a low-level keyboard hook. For more information, head over to the "Developers" section of the livecode website, and choose "Desktop Externals" on the left-hand side. You may need to do some C++ or C# coding. You'll need...

Go to advanced search