Search found 63 matches

by jmk_phd
Wed Oct 23, 2019 9:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Naming array keys for WordReport!!
Replies: 19
Views: 763

Re: Naming array keys for WordReport!!

Richard -- You may very well be right that -- as speculated also by several contributors to this thread -- there are anomalies in how different versions of LC handle case in array keys. I can't test this myself with recent versions of LC, inasmuch as LC 9.x won't run under my macOS 10.6.8 Snow Leopa...
by jmk_phd
Wed Oct 23, 2019 8:46 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Naming array keys for WordReport!!
Replies: 19
Views: 763

Re: Naming array keys for WordReport!!

Sorry to weigh in so late, but my experience with WordReport a couple of years ago was very similar. Like the author of the original post, I had to resort to WordReport templates rather than PDF because the client insisted that the reports (which included a couple hundred items) be editable. What I ...
by jmk_phd
Tue Oct 22, 2019 6:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

Jean-Marc -- I truly appreciate your wise programming advice as regards simplifying the code and will indeed follow best practices when designing an application from scratch. The problems in this case were many: What began as the simple administration of a series of test questions (illustrated in th...
by jmk_phd
Tue Oct 22, 2019 1:53 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

Thanks so much to everyone who has contributed to addressing this problem for me. As it turns out, Bernd's solution to insert flushEvents() just prior to a "go to next cd" -- which actually (in my own ignorance) both he and forum member -hh had suggested earlier in this thread -- seems to work just ...
by jmk_phd
Mon Oct 21, 2019 7:13 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

To all -- I've stripped out from the app all but the custom props and code that relate directly to the duplicate input issue -- eliminating the routines that handle other test item formats, timing, scoring, and the option to redisplay and edit a previous item. This new mainstack includes only the fi...
by jmk_phd
Sun Oct 20, 2019 12:10 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

Craig and Bogs and all -- Sorry to cause so much anxiety. (In my day job as a psychologist, my role is to help reduce anxiety.) Apologies especially to contributor richmond62 for losing a few hours of sleep. As an initial experiment, I changed all mouseDown and keyDown handlers/commands for the firs...
by jmk_phd
Sat Oct 19, 2019 4:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

Berndt (and -hh) --

Thanks for suggesting flushEvents(), with which I was not familiar. I will explore this alternative.

jeff k
by jmk_phd
Sat Oct 19, 2019 4:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

-- hh Thanks much for your reply. I've indeed debated using keyUp or mouseUp vs. keyDown and mouseDown, but found not sufficient guidance in the online LC Dictionary to decide how best to handle this problem. As mentioned previously -- although I agree with you and originally had a "Next" button -- ...
by jmk_phd
Sat Oct 19, 2019 4:17 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

Craig and Jean-Marc -- Thanks for your replies. Only because the app already must record the response time for each item -- i.e., the time between presentation of a new card and the response -- I'm reluctant to introduce possible confusion (at my end) by introducing an additional variable that track...
by jmk_phd
Fri Oct 18, 2019 11:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Re: Preventing duplicate input

richmond62 -- Thanks so much for your replies, which helped to illustrate in the simplest manner the problem encountered. I've modified the .livecode file you provided with two additional cards in order to simulate my situation. Using your model, a single button-click or single keyboard-press does w...
by jmk_phd
Fri Oct 18, 2019 5:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Preventing duplicate input
Replies: 27
Views: 814

Preventing duplicate input

I'm sure that I'm missing something totally obvious. Here's the situation: I have a 359-item questionnaire -- one card per item. Each card item requires unique code, depending upon several variables (English vs. Spanish, Adolescent vs. Adult, and -- for the Spanish-language variant -- whether gender...
by jmk_phd
Fri Oct 04, 2019 12:37 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Terminating an audioclip
Replies: 16
Views: 508

Re: Terminating an audioclip

Klaus -- Thanks for your reply. A few of the abbreviations you'd mentioned (e.g., "btn" and "fld") do in fact appear in the text of LC Dictionary entries and/or LC User Guides and are indeed quite handy shortcuts when typing a script. Although I first learned the rudiments of programming via HyperCa...
by jmk_phd
Thu Oct 03, 2019 12:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Terminating an audioclip
Replies: 16
Views: 508

Re: Terminating an audioclip

Klaus -- Just out of curiosity, where are the abbreviations "ac" and "vc" (for "audioclip" and "videoclip" respectively) documented? Never saw these in the LC 8.10 Dictionary, although I may well be wrong. (BTW, I'm still using Indy LC 8.10 on an everyday basis because support for macOS 10.6.8 was d...
by jmk_phd
Wed Oct 02, 2019 5:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Terminating an audioclip
Replies: 16
Views: 508

Re: Terminating an audioclip

Craig and Klaus -- The example from the Dictionary entry for "stop" that I'd followed, namely, stop playing audioClip "track1" (of course, substituting the actual file path) resulted in an "object not found" error (even though the referenced path to the audiofile -- the same as used first to trigger...
by jmk_phd
Wed Oct 02, 2019 2:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Terminating an audioclip
Replies: 16
Views: 508

Terminating an audioclip

I'm sure that I'm missing something really simple: When my psychological test opens to a new card/item, it plays an audiofile that "speaks" the text displayed on screen. Originally, I'd required the audiofile to play until done before the user registered a response, via either button or keyboard pre...

Go to advanced search