Search found 1765 matches

by [-hh]
Mon Oct 22, 2018 6:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Amazing prime! >^oo^<
Replies: 9
Views: 298

Re: Amazing prime! >^oo^<

Mariasole, la regina del forum belcanto :
Your posts are like an aria by Bellini. :wink:
by [-hh]
Sat Oct 20, 2018 1:30 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Amazing prime! >^oo^<
Replies: 9
Views: 298

Re: Amazing prime! >^oo^<

Hi girls and boys. Whether a number is prime is, TMHO, of only secondary interest. At least a lookup in a list is really not a real problem for LiveCoders. More interesting is which are the prime factors of all the numbers we can reach with LiveCode. (The primes have themselves as single factor, so ...
by [-hh]
Thu Oct 18, 2018 4:44 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Resize/move line graph?
Replies: 10
Views: 385

Re: Resize/move line graph?

Sorry, I saw this late. You could use, for example, the escapeKey.
Add to your card's script:

Code: Select all

on escapeKey
  do "show " & the label of btn "controlsMenu" --> = the widget
  send "mouseUp" to btn "controlsMenu" --> the handles appear
end escapeKey
by [-hh]
Thu Oct 18, 2018 7:56 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: do in widget (execute javascript in browser widget) - possible to get result?
Replies: 2
Views: 142

Re: do in widget (execute javascript in browser widget) - possible to get result?

Hi. Welcome to the forum.

You don't have to "beautify" the javaScript. This would be enough:

Code: Select all

on test
   do "liveCode.jscallback('location',location.href)" in widget "ob3"
end test
by [-hh]
Wed Oct 17, 2018 4:43 pm
Forum: LiveCode Builder
Topic: Community widgets
Replies: 38
Views: 14814

Re: Community widgets

[#58] Community LCB widget "ImageWidget" v1.1.0 Someday, everything is gonna be diff'rent when I paint my masterpiece. (Bob Dylan) ImageWidget demonstrates the enormous possibilities that LiveCode Builder already provides. I tried to do everything in pure LCB. There is only script access where I wa...
by [-hh]
Mon Oct 15, 2018 9:31 pm
Forum: Raspberry Pi
Topic: Standalone 7.04 on Rpi (Raspbian) not executing
Replies: 11
Views: 270

Re: Standalone 7.04 on Rpi (Raspbian) not executing

Hi sphere, I really doubt that the software clock of a Raspi can time 1 millisecond. There is a python example that also goes in ramps: https://www.rototron.info/raspberry-pi-stepper-motor-tutorial/ They use 208 milliseconds cycles. This will certainly depend on the driver. But with 1 milliseconds i...
by [-hh]
Mon Oct 15, 2018 7:43 pm
Forum: Raspberry Pi
Topic: Standalone 7.04 on Rpi (Raspbian) not executing
Replies: 11
Views: 270

Re: Standalone 7.04 on Rpi (Raspbian) not executing

@Sphere. But had to save to legacy 5.5 in LC704, else it won't open on lc651 i noticed. Yes, but you don't need Unicode for your motor! That's what made the first versions of LC 7 slow. I also noticed that moving the mouse does influence the motor. This shouldn't occur. Don't you use "send in <time>...
by [-hh]
Mon Oct 15, 2018 6:43 pm
Forum: Raspberry Pi
Topic: Standalone 7.04 on Rpi (Raspbian) not executing
Replies: 11
Views: 270

Re: Standalone 7.04 on Rpi (Raspbian) not executing

Don't update. Or the LC IDEs don't run any more 'clean'.
Or use
http://forums.livecode.com/viewtopic.ph ... 53#p140253
by [-hh]
Mon Oct 15, 2018 12:53 pm
Forum: Raspberry Pi
Topic: Standalone 7.04 on Rpi (Raspbian) not executing
Replies: 11
Views: 270

Re: Standalone 7.04 on Rpi (Raspbian) not executing

Hi Sphere, did you compile the standalone on the Raspi? If so, try to compile on a Win/Mac/linux desktop. I had success with all my trials to create standalones when compiling on Mac. But I usually run everything with 6.5.1 from the IDE on the Raspis because the 7.0.4 version (which is the only one ...
by [-hh]
Sun Oct 14, 2018 9:39 pm
Forum: Teaching with LiveCode
Topic: Learn number bases
Replies: 0
Views: 159

Learn number bases

Try this new display of encoded decimals of the time items (hours, minutes, seconds) with kids around 10 years old and older: http://forums.livecode.com/viewtopic.php?p=172308#p172308 You will be surprised: They have, after 10 minutes of exercise no problem with reading and writing to base 15 or 16....
by [-hh]
Sun Oct 14, 2018 9:30 pm
Forum: LiveCode Builder
Topic: Community widgets
Replies: 38
Views: 14814

Re: Community widgets

[#57] Community LCB widget "baseClock" v1.0.5 BaseClock is a widget that displays by special "digits" the time encoded to a number base in range 2-60. Encoded is each of the time items (hours, minutes, seconds). For base 2 this is known as "Binary encoded decimals". The display is unique (I invente...
by [-hh]
Fri Oct 12, 2018 9:34 pm
Forum: Talking LiveCode
Topic: KeysDown misses certain keys?
Replies: 6
Views: 142

Re: KeysDown misses certain keys?

Craig.
This may also depend on keyboard settings (repeat rate and delay) and, was here the reason some time ago, on the hardware: A newer keyboard had better results, especially with a, c, v, x, z and the optionKey.
by [-hh]
Fri Oct 12, 2018 8:21 pm
Forum: Talking LiveCode
Topic: Detecting keyPresses outside of LC
Replies: 6
Views: 146

Re: Detecting keyPresses outside of LC

Craig.

Moreover interesting with the keysDown is the fact that you have the keys recorded even if you catch all other (keyDown, keyUp, rawkeyDown, rawkeyUp, arrowKey, <special keys>) and don't pass them.
by [-hh]
Fri Oct 12, 2018 6:23 pm
Forum: Talking LiveCode
Topic: Detecting keyPresses outside of LC
Replies: 6
Views: 146

Re: Detecting keyPresses outside of LC

Craig. That's not the whole story. The keysDown detects multiple (simultaneous) pressed keys, I think up to 5 plus modifiers. So if you need to detect any keypress of x = charToNum(120) you could write if 120 is among the items of the keysDown then ... That's why I spoke of multiple triggers in the ...
by [-hh]
Fri Oct 12, 2018 3:50 am
Forum: Talking LiveCode
Topic: Detect Key events in background
Replies: 8
Views: 273

Re: Detect Key events in background

send "loopKey" to me in 1 second.
Craig.
Hold (at least on MacOS) the menu of any app open for a short time and your digit clock will be out of seconds-sync with the system time.

Go to advanced search