Search found 2124 matches

by [-hh]
Mon Oct 21, 2019 7:27 pm
Forum: LiveCode Builder
Topic: Browser Widget usage examples
Replies: 47
Views: 18744

Re: Browser Widget usage examples

Widget usage example #29: PDF-Tools (MacOS only) Due to deficiencies of the browser widget on win and linux we have the first time that a JS-library runs in a browser widget on Mac only (LC 8.1.10/9.0.5/9.5.0 on MacOS >=10.12.6). I tried a full day to "work around" for win and linux, without succes...
by [-hh]
Sat Oct 19, 2019 12:30 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 25
Views: 642

Re: Preventing duplicate input

You could use flushEvents(). Also it would be more safe to use mouseUp and keyUp instead of mouseDown and keyDown (the system keyboard repeat is triggered by keydown). TMHO it may be much clearer to move by a button or key (e.g. 6 or Enter) to next card, then the input can be corrected before that. ...
by [-hh]
Tue Oct 15, 2019 10:56 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to stop Answer Dialog from displaying "answer dialog" ?
Replies: 21
Views: 569

Re: How to stop Answer Dialog from displaying "answer dialog" ?

FourthWorld wrote:I see "answer dialog" very briefly on Windows, but nowhere near 1/2 second, maybe a tick or two.
.

Wow. A tick is close to the minimum time ever measured for human beings to perceive image changes ...
by [-hh]
Tue Oct 15, 2019 10:27 pm
Forum: Talking LiveCode
Topic: Using external script only stack as behaviour
Replies: 27
Views: 793

Re: Using external script only stack as behaviour

Just as an additional remark.
If I remember right there was last year a post by Mark Waddingham who said it was never intended to use "set the behaviour" to anything else than to a button. And that this may be restricted to buttons in future versions.
by [-hh]
Sun Oct 13, 2019 8:00 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to stop Answer Dialog from displaying "answer dialog" ?
Replies: 21
Views: 569

Re: How to stop Answer Dialog from displaying "answer dialog" ?

The same here. Shortly (around 0.5 seconds) visible in titlebar. Win10-64bit, LC 9.5.0.
Please report as bug.
by [-hh]
Fri Oct 11, 2019 11:28 pm
Forum: LiveCode Builder
Topic: Browser Widget usage examples
Replies: 47
Views: 18744

Re: Browser Widget usage examples

Widget usage example #28: ELIZA_bot This stack is a GUI to the javascipt library elizabot.js by Norbert Landsteiner. The library and the vocabulary of the bot are already part of the stack (so you can use it offline). Find this default vocabulary also attached so that you can make changes/additions...
by [-hh]
Thu Oct 10, 2019 9:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sequential variable names
Replies: 12
Views: 396

Re: Sequential variable names

Let me collect the methods because this is often asked in the forum. We check the results of each of the following approaches with "the variableNames". You can see there which variables exist after creation attempts. This method produces repeatedly ONE variable tmpName, NOT what you want: on mouseUp...
by [-hh]
Thu Oct 10, 2019 7:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

And I don't use language like "as you fear arrays" like -hh did. And as for his supposed help, about half of it was irrelevant to what I was actually asking about, and most of the rest was just wrong. The wonderful thing here is that everybody can take a piece of code and test for himself what's wr...
by [-hh]
Thu Oct 10, 2019 11:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

Go ahead with the parts of my code that you use. Good luck. :-)
by [-hh]
Thu Oct 10, 2019 9:50 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

Michael, what is your problem?
I wasn't harder than your replies.
by [-hh]
Thu Oct 10, 2019 4:00 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

1. You wrote: "It's neither easy nor works for its intended purpose. You've hard-coded the values in. The whole point of the Perl one-liner is to split up some string (which will not always have the same value!) and assign it to different unique variables on the fly. How are you not understanding th...
by [-hh]
Wed Oct 09, 2019 10:50 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

In sum, as we now know what you really want. 1. I gave you examples for several scenarios. The third example was the one you wanted. put "variable1,variable2,variable3" into theList -- the string of items put "variable1","variable2","variable3" into theList -- items of strings put (variable1,variabl...
by [-hh]
Wed Oct 09, 2019 10:32 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

What's going on here? put (var1|var2|var3|var4|var5) into theList is wrong syntax. You can't use anything else but a comma for an enumeration of variables! [Edit: Removed a note about using space as parameter separator in the definition of functions or handlers. I was wrong: This is allowed (but of ...
by [-hh]
Wed Oct 09, 2019 7:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Possible to easily assign lists to variables & vice-versa?
Replies: 52
Views: 1337

Re: Possible to easily assign lists to variables & vice-versa?

Code: Select all

put (var1, var2, var3, var4, var5) into theList
replace comma&space with tab in theList
Note. In your list each item begins with a space!
by [-hh]
Wed Oct 09, 2019 6:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Here's how to add an item to the end of a list
Replies: 4
Views: 189

Re: Here's how to add an item to the end of a list

You write "newItem & comma". Write "comma & newItem".

A bit more compact:

Code: Select all

put "",newItem after theList -- use value of variable newItem
put ",abcd" after theList -- use value

Go to advanced search