Wow, I'm really dumb. I had a line putting numbers & "%" into ypercent. I removed it and now everything works. Thanks so much for the suggestion!jacque wrote:Does ypercent have a numerical value?
Search found 16 matches
- Sun Sep 13, 2015 7:00 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Writing data stream to text file
- Replies: 11
- Views: 7713
Re: Writing data stream to text file
- Fri Sep 11, 2015 4:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Writing data stream to text file
- Replies: 11
- Views: 7713
Re: Writing data stream to text file
"...at end" isn't needed with the write command. Guess I was being too careful with that addition. Can't afford to lose any data for this study, noted! Thanks for all your help everyone! This community is AWESOME! I'm still stuck on this line. I copy-pasted from Klaus to be sure I'm not doing anyth...
- Wed Sep 09, 2015 5:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Writing data stream to text file
- Replies: 11
- Views: 7713
Re: Writing data stream to text file
but for extremely frequent tasks like file I/O on every keystroke the speed will eventually make a noticeable difference as the size of the data in the file grows. This is exactly what I'm doing and noticing so back to "write ... at end" it is. Awesome breakdown and demo, thanks so much! While we'r...
- Tue Sep 01, 2015 4:49 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Writing data stream to text file
- Replies: 11
- Views: 7713
Re: Writing data stream to text file
I see, the put + URL combo really cleans things up (and is easier to read for revision). Thanks for the suggestions, zaxos and Klaus! The data stream is working flawlessly!
- Mon Aug 31, 2015 6:13 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Writing data stream to text file
- Replies: 11
- Views: 7713
Writing data stream to text file
Hey LiveCode! I'm trying to figure out how I can record the long time to a text file each time a user presses the space bar. Here is what I currently have: on keyDown spacebar if the enableAddScore of this card = "true" then add 1 to gscore put gscore into field "Score" ##testing save stuff write th...
- Thu Aug 20, 2015 3:24 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Create unique filename and write to it
- Replies: 4
- Views: 3524
Re: Create unique filename and write to it
LiveCode's concatenation operator, "&" Exactly the function I was looking for but couldn't name; thanks FourthWorld! put "blabala" into url("file:" & tNameFile) Hi Jean-Marc. SUPER helpful suggestion regarding defining the path! I got a little lost on this line, though? Could you help me understand...
- Mon Aug 17, 2015 6:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Create unique filename and write to it
- Replies: 4
- Views: 3524
Create unique filename and write to it
Hi all! I'm trying to figure out file naming while creating and writing to said file. I have a field where users can input their names. I want to create a new file with their name in it, then write to this file (put their scores into it). I'm following BYU's "Working with External Files" tutorial an...
- Fri Jun 12, 2015 6:16 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Pulldown menu --> splash screen ---> different cards
- Replies: 14
- Views: 8465
Re: Pulldown menu --> splash screen ---> different cards
1. your last line needs to be INSIDE of a handler! And you need to supply a recipient, see below :D on openCard put "0" into field "Score" send "go cd gcondition" TO ME in 10 seconds end openCard ... Hi Klaus! I've been following BYU's tutorial on Timing (it explains the send vs wait functions) and...
- Thu Jun 11, 2015 7:03 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Pulldown menu --> splash screen ---> different cards
- Replies: 14
- Views: 8465
Re: Pulldown menu --> splash screen ---> different cards
I'm stuck again :? I'm on the card where participants hit the space bar to earn points. I want them to only be on this page for 10 seconds. "gcondition" was declared and saved from an earlier menu to determine what card to go to after this current one. gcondition works, but it isn't doing anything w...
- Mon Jun 08, 2015 8:28 pm
- Forum: Mac OS
- Topic: Keydown Help..!
- Replies: 7
- Views: 9644
Re: Keydown Help..!
Why do we not need to identify any key at all in the "rawKeyUp" handler? It looks like pressing the spacebar disables the condition and any key going up (e.g., releasing the spacebar) reactivates it, but the only key that triggers this keyup condition is the button that initiated it - the spacebar....
- Sun Jun 07, 2015 7:56 pm
- Forum: Mac OS
- Topic: Keydown Help..!
- Replies: 7
- Views: 9644
Re: Keydown Help..!
Is there a way to get the keyDown function to only detect one press before resetting? Right now I have: on keyDown spacebar add 1 to the field "Score" end keyDown The idea is for the user to earn 1 point every time they press the space bar, but this code allows them to simply hold the space bar and ...
- Sun Jun 07, 2015 7:26 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Pulldown menu --> splash screen ---> different cards
- Replies: 14
- Views: 8465
Re: Pulldown menu --> splash screen ---> different cards
Hi tobx, did you declare gConditon in the abvove mentioned "opencard" script? See below. Are these cards "Tie" etc. really part of the stack with the "opencard" script? Know what I mean? Or maybe that is the "splash" screen"? Besdies the fact that it doesn't work currently, you can also have this s...
- Sun Jun 07, 2015 6:40 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Pulldown menu --> splash screen ---> different cards
- Replies: 14
- Views: 8465
Re: Pulldown menu --> splash screen ---> different cards
INTO Gah, such a tiny thing made all the difference! I really appreciate all of you helping me get started on this project. You're contributing to science! I think this is the last major roadblock I'm hitting for this topic: how to go from the splash screen to the card that corresponds to the menu ...
- Fri Jun 05, 2015 7:07 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Pulldown menu --> splash screen ---> different cards
- Replies: 14
- Views: 8465
Re: Pulldown menu --> splash screen ---> different cards
Huh? Nice catch - I thought I copied that directly from a tutorial but I guess not. Thanks again, Craig! Hi tobx, 1. welcome to the forum! :D 2. I recommend to check these stacks to get the basics of Livecode: [can't post links] 3. No SWITCH neccessary at all if you do not actually "check/switch" t...
- Thu Jun 04, 2015 7:53 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Pulldown menu --> splash screen ---> different cards
- Replies: 14
- Views: 8465
Re: Pulldown menu --> splash screen ---> different cards
Ohhhhhh, it's better to disable in the script then enable goes after the switch end! Much appreciation, Craig - nailed it! This next part is tricking me up, too. I want to select a condition in the main menu, go to a splash screen, then go to the card that corresponds to the choice made in the main ...