From dave.cragg at lacscentre.co.uk Wed Jun 1 04:00:35 2011 From: dave.cragg at lacscentre.co.uk (Dave Cragg) Date: Wed, 1 Jun 2011 09:00:35 +0100 Subject: Unicode and revDatabase Library, SQLite In-Reply-To: <002b01cc1fef$85c58160$91508420$@com> References: <002b01cc1fef$85c58160$91508420$@com> Message-ID: On 1 Jun 2011, at 01:04, Slava Paperno wrote: > put uniDecode(locTarget, "UTF16") into locSQLParams --now locSQLParams is > UTF-8 To get UTF-8, I think that should be: put uniDecode(locTarget, "UTF8") into locSQLParams Dave From th.douez at gmail.com Wed Jun 1 04:15:28 2011 From: th.douez at gmail.com (Thierry Douez) Date: Wed, 1 Jun 2011 10:15:28 +0200 Subject: [ANN] sunnYmidi: Script your sounds Message-ID: Hi all, I am pleased to announce SunnYmidi. SunnYmidi is a simple and powerful tool to help LiveCode Users add sounds to their stack. All SunnYmidi commands are asynchronous (return immediately), and each note can be played instantly. Visit http://sunny-tdz.com where you can read the complete documentation and download a free demo-tutorial version. Benefit from the special introductory offer available until 30 June 2011. I would like to thank Mark and Bjoernke for organizing the Live LiveCode Event, and Keith, Mark, Bernd and Jacqueline for their helpful comments. My special thanks go to Rene Micout for having closely followed the development of SunnYmidi and for his unvaluable support in testing. Best regards, Thierry Douez http://sunny-tdz.com From m.schonewille at economy-x-talk.com Wed Jun 1 06:40:03 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Jun 2011 12:40:03 +0200 Subject: ANN: 25% off Installer Maker Plugin license Message-ID: Hi LiveCoders, Usually, I offer a 25% discount on Installer Maker Plugin licenses during the Live LiveCode Code Event. I will soon release a new version and I've decided to keep the offer valid until the new version is released. You can now buy a license for ?29 instead of ?39, not from the official site but at http://livetalk.us/im/ You can download a trial version of the plugin at http://qery.us/ce . For those who already have a license and want to upgrade now or when the new release is available, you can still buy an upgrade license with the usual 50% discount at http://qery.us/ce . -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce From roger.e.eller at sealedair.com Wed Jun 1 07:23:00 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 1 Jun 2011 07:23:00 -0400 Subject: Immediate sound feedback on Android Message-ID: I can't get sounds to play at all on Android. I have tried importing a .wav file into the stack, and also referencing the file via its path. In both cases, there is a delay the first time the sound is played in the LiveCode IDE. How can I insure the playback will be "immediate" when a button is touched? Is there a best practice regarding embedding sounds -vs- referencing them for mobile? ?Roger From rene.micout at numericable.com Wed Jun 1 07:39:06 2011 From: rene.micout at numericable.com (=?iso-8859-1?Q?Ren=E9_Micout?=) Date: Wed, 1 Jun 2011 13:39:06 +0200 Subject: [ANN] sunnYmidi: Script your sounds In-Reply-To: References: Message-ID: <81BDEF3B-AA4F-48EF-A3C8-ED44AC8DBCC1@numericable.com> Hello Thierry, You are welcome (comme disent les anglophones) ! ;-) Bon souvenir de Paris Ren? Le 1 juin 2011 ? 10:15, Thierry Douez a ?crit : > Hi all, > > I am pleased to announce SunnYmidi. > > SunnYmidi is a simple and powerful tool > to help LiveCode Users add sounds to their stack. > > All SunnYmidi commands are asynchronous (return immediately), > and each note can be played instantly. > > Visit http://sunny-tdz.com where you can read the complete documentation > and download a free demo-tutorial version. > > Benefit from the special introductory offer available until 30 June 2011. > > > > I would like to thank Mark and Bjoernke for organizing the Live LiveCode > Event, > and Keith, Mark, Bernd and Jacqueline for their helpful comments. > > My special thanks go to Rene Micout > for having closely followed the development of SunnYmidi > and for his unvaluable support in testing. > > > Best regards, > > Thierry Douez > http://sunny-tdz.com > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From keith.clarke at clarkeandclarke.co.uk Wed Jun 1 07:53:20 2011 From: keith.clarke at clarkeandclarke.co.uk (Keith Clarke) Date: Wed, 1 Jun 2011 12:53:20 +0100 Subject: [ANN] sunnYmidi: Script your sounds In-Reply-To: References: Message-ID: <78AA8CEC-D545-4A66-BC99-0B276F2FC211@clarkeandclarke.co.uk> Hi Thierry, Well done for getting SunnYmidi over the finish-line. Best, Keith.. On 1 Jun 2011, at 09:15, Thierry Douez wrote: > Hi all, > > I am pleased to announce SunnYmidi. > > SunnYmidi is a simple and powerful tool > to help LiveCode Users add sounds to their stack. > > All SunnYmidi commands are asynchronous (return immediately), > and each note can be played instantly. > > Visit http://sunny-tdz.com where you can read the complete documentation > and download a free demo-tutorial version. > > Benefit from the special introductory offer available until 30 June 2011. > > > > I would like to thank Mark and Bjoernke for organizing the Live LiveCode > Event, > and Keith, Mark, Bernd and Jacqueline for their helpful comments. > > My special thanks go to Rene Micout > for having closely followed the development of SunnYmidi > and for his unvaluable support in testing. > > > Best regards, > > Thierry Douez > http://sunny-tdz.com From iowahengst at mac.com Wed Jun 1 08:38:17 2011 From: iowahengst at mac.com (Randy Hengst) Date: Wed, 01 Jun 2011 07:38:17 -0500 Subject: Immediate sound feedback on Android In-Reply-To: References: Message-ID: <0FAD2059-BEB9-427A-8DAD-60D9CB77A340@mac.com> Hello Roger, I've noticed the delay of sounds iOS with the first sound played in a stack?. it doesn't seem to matter which sound is played first, it's always delayed. But, from that point forward all sounds play immediately. So, I've included a sound file that is a half second of silence and call it with the open stack or open card handler. Perhaps this will help with Android, too. I've not built for Android, so this is just a guess. be well, randy ----- On Jun 1, 2011, at 6:23 AM, Roger Eller wrote: > I can't get sounds to play at all on Android. I have tried importing a .wav > file into the stack, and also referencing the file via its path. In both > cases, there is a delay the first time the sound is played in the LiveCode > IDE. How can I insure the playback will be "immediate" when a button is > touched? Is there a best practice regarding embedding sounds -vs- > referencing them for mobile? > > ?Roger > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From revolution at derbrill.de Wed Jun 1 09:23:02 2011 From: revolution at derbrill.de (Malte Brill) Date: Wed, 1 Jun 2011 15:23:02 +0200 Subject: Cyrillic input In-Reply-To: References: Message-ID: <1F8BB9AA-9093-4BF7-95C8-1906876A373E@derbrill.de> Thanks mark and Slava! well, this is getting me a bit further. Now if only I knew if I could reliably check if the text in my field regular ASCII or UTF encoded, that would really make my day. Cheers, malte From roger.e.eller at sealedair.com Wed Jun 1 09:50:11 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 1 Jun 2011 09:50:11 -0400 Subject: Immediate sound feedback on Android In-Reply-To: <0FAD2059-BEB9-427A-8DAD-60D9CB77A340@mac.com> References: <0FAD2059-BEB9-427A-8DAD-60D9CB77A340@mac.com> Message-ID: On Wed, Jun 1, 2011 at 8:38 AM, Randy Hengst wrote: > > Hello Roger, > > I've noticed the delay of sounds iOS with the first sound played in a > stack?. it doesn't seem to matter which sound is played first, it's always > delayed. But, from that point forward all sounds play immediately. > > So, I've included a sound file that is a half second of silence and call it > with the open stack or open card handler. Perhaps this will help with > Android, too. I've not built for Android, so this is just a guess. > > be well, > randy > ----- > On Jun 1, 2011, at 6:23 AM, Roger Eller wrote: > > > I can't get sounds to play at all on Android. ?I have tried importing a .wav > > file into the stack, and also referencing the file via its path. ?In both > > cases, there is a delay the first time the sound is played in the LiveCode > > IDE. ?How can I insure the playback will be "immediate" when a button is > > touched? ?Is there a best practice regarding embedding sounds -vs- > > referencing them for mobile? > > > > ?Roger > > That's a great tip Randy! I'll give it a try and report back the results >if< I can get it to play on Android at all. ~Roger From slava at lexiconbridge.com Wed Jun 1 09:56:07 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Wed, 1 Jun 2011 09:56:07 -0400 Subject: Cyrillic input Message-ID: <00e301cc2063$ab067500$01135f00$@lexiconbridge.com> Malte, As I said, I'm discovering these things as I go--I hadn't even heard of LC until last month. I'm finding that work with Unicode in LC involves a lot of jumping through hoops, but so far I have been able to do everything I needed. So don't give up :) I am not sure why your stack doesn't "know" whether the text in your field is UTF-16 or plain ANSI, but here is what I do: When I read some text from a file into a variable, I assume that it is UTF-8. There is no harm in that. Even if it turns out to be plain English, it can still be treated that way. When I assign that text to a field, I always use set the unicodeText of field MyField to uniEncode(myVar, "UTF8") Now the text in the field is UTF-16. I check to see if the first two bytes are decimal 255 followed by decimal 254 (or the reverse, 254 followed by 255), and if they are, I delete them, because that's BOM. I can read and edit the field using the system's multilanguage input, like the Russian keyboard in Windows. Russian and English can be typed in any combination, but it is still all UTF-16. Each letter and each punctuation mark is a two-byte sequence. If you call length(the unicodeText of field MyField) it will report twice the number of characters that you see in the field. So if I have to access character N in the field, I do this: set useUnicode to true put char N to char N+1 of field MyField into myChar answer charToNum(myChar) That will show you a decimal number, like 1072 if myChar is a lower case Cyrillic a or an ASCII number if it is an English letter. Even plain English letters must be accessed like that, as two bytes. For English, the first byte is a null, and the second is the ASCII of the letter, but you don't need to think of that. Just treat every letter as a two-char sequence. If the user types in that field, what he types is in UTF-16. If I need to do anything with the text in the field, like store it to a file, I read it into a variable: put the unicodeText of field MyField into myVar2 and immediately convert it to UTF-8: put uniDecode(myVar2, "UTF16") into myVar2 Now myVar2 is UTF-8 and can be stored in a file or processed by scripts. There are apparently limitations to what you can do with Cyrillic in LC, but the things that I have listed all work for me. Slava > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] On Behalf Of Malte Brill > Sent: Wednesday, June 01, 2011 9:23 AM > To: use-livecode at lists.runrev.com > Subject: Re: Re: Cyrillic input > > Thanks mark and Slava! > > well, this is getting me a bit further. Now if only I knew if I could reliably check if > the text in my field regular ASCII or UTF encoded, that would really make my > day. > > Cheers, > > malte > From runrevron at gmail.com Wed Jun 1 10:11:03 2011 From: runrevron at gmail.com (ron barber) Date: Wed, 1 Jun 2011 23:11:03 +0900 Subject: Cyrillic input In-Reply-To: <00e301cc2063$ab067500$01135f00$@lexiconbridge.com> References: <00e301cc2063$ab067500$01135f00$@lexiconbridge.com> Message-ID: Hi malte, This is a modified function that Ken, Richard (and maybe Jacque) had a hand in some time ago. It does essentially the same thing that Slava suggested but I offer it as it has helped me. Thanks Ron function RawDataToUTF16 pData -- Examine the data to determine encoding: -- UTF8 has 0xEF 0xBB 0xBF -- UTF16BE has 0xFE 0xFF -- UTF16LE has 0xFF 0xFE switch case charToNum(byte 1 of pData) = 0 put "UTF16BE" into tTextEncoding break case charToNum(byte 1 of pData) = 0xFE and charToNum(char 2 of pData) = 0xFF delete byte 1 to 2 of pData put "UTF16BE" into tTextEncoding break case charToNum(byte 1 of pData) = 0xFF and charToNum(char 2 of pData) = 0xFE delete byte 1 to 2 of pData put "UTF16LE" into tTextEncoding break case char 1 to 3 of pData is "???" put "utf8" into ttextencoding break default put "UTF8" into tTextEncoding break end switch -- if tTextEncoding begins with "UTF16" then -- Check byte order, swapping if needed: if the processor is "x86" then put "LE" into tHostByteOrder else put "BE" into tHostByteOrder end if if byte -2 to -1 of tTextEncoding <> tHostByteOrder then put swapbytes(pData) into pData end if -- Already utf16, so nothing more needs to be done: #put uniEncode(uniDecode(pData, utf16),16) into tFieldData put pData into tFieldData else put uniEncode(pData, "utf8") into tFieldData end if -- Convert from utf8 to Rev's native utf16: replace uniencode("?v","Japanese") with "**" in tFieldData replace CRLF with cr in tFieldData replace numtochar(13) with cr in tfieldData --affects japanese ? replace "**" with uniencode("?v","Japanese") in tFieldData return tFieldData end RawDataToUTF16 On Wed, Jun 1, 2011 at 10:56 PM, Slava Paperno wrote: > Malte, > > As I said, I'm discovering these things as I go--I hadn't even heard of LC > until last month. I'm finding that work with Unicode in LC involves a lot of > jumping through hoops, but so far I have been able to do everything I > needed. So don't give up :) > > I am not sure why your stack doesn't "know" whether the text in your field > is UTF-16 or plain ANSI, but here is what I do: > > When I read some text from a file into a variable, I assume that it is > UTF-8. There is no harm in that. Even if it turns out to be plain English, > it can still be treated that way. > > When I assign that text to a field, I always use > > set the unicodeText of field MyField to uniEncode(myVar, "UTF8") > > Now the text in the field is UTF-16. I check to see if the first two bytes > are decimal 255 followed by decimal 254 (or the reverse, 254 followed by > 255), and if they are, I delete them, because that's BOM. > > I can read and edit the field using the system's multilanguage input, like > the Russian keyboard in Windows. Russian and English can be typed in any > combination, but it is still all UTF-16. Each letter and each punctuation > mark is a two-byte sequence. If you call length(the unicodeText of field > MyField) it will report twice the number of characters that you see in the > field. > > So if I have to access character N in the field, I do this: > > set useUnicode to true > put char N to char N+1 of field MyField into myChar > answer charToNum(myChar) > That will show you a decimal number, like 1072 if myChar is a lower case > Cyrillic a or an ASCII number if it is an English letter. > > Even plain English letters must be accessed like that, as two bytes. For > English, the first byte is a null, and the second is the ASCII of the > letter, but you don't need to think of that. Just treat every letter as a > two-char sequence. > > If the user types in that field, what he types is in UTF-16. > > If I need to do anything with the text in the field, like store it to a > file, I read it into a variable: > > put the unicodeText of field MyField into myVar2 > > and immediately convert it to UTF-8: > > put uniDecode(myVar2, "UTF16") into myVar2 > > Now myVar2 is UTF-8 and can be stored in a file or processed by scripts. > > There are apparently limitations to what you can do with Cyrillic in LC, but > the things that I have listed all work for me. > > Slava > >> -----Original Message----- >> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >> bounces at lists.runrev.com] On Behalf Of Malte Brill >> Sent: Wednesday, June 01, 2011 9:23 AM >> To: use-livecode at lists.runrev.com >> Subject: Re: Re: Cyrillic input >> >> Thanks mark and Slava! >> >> well, this is getting me a bit further. Now if only I knew if I could > reliably check if >> the text in my field regular ASCII or UTF encoded, that would really make > my >> day. >> >> Cheers, >> >> malte >> > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Wed Jun 1 10:25:08 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Wed, 1 Jun 2011 16:25:08 +0200 Subject: Cyrillic input In-Reply-To: <1F8BB9AA-9093-4BF7-95C8-1906876A373E@derbrill.de> References: <1F8BB9AA-9093-4BF7-95C8-1906876A373E@derbrill.de> Message-ID: <638993D0-442B-4483-8FD7-AFA099342DCC@economy-x-talk.com> Hi Malte, You're making this way too complicated. Just *always* use the unicodeText. It will always be encoded as UTF16 and you can always decode it to UTF8. Easy. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 1 jun 2011, at 15:23, Malte Brill wrote: > Thanks mark and Slava! > > well, this is getting me a bit further. Now if only I knew if I could reliably check if the text in my field regular ASCII or UTF encoded, that would really make my day. > > Cheers, > > malte > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From slava at lexiconbridge.com Wed Jun 1 10:30:57 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Wed, 1 Jun 2011 10:30:57 -0400 Subject: Unicode and revDatabase Library, SQLite: SOLVED Message-ID: <00f501cc2068$88933c60$99b9b520$@lexiconbridge.com> You're absolutely right, Dave, and that was my whole problem. You made my day. Now the Cyrillic text is findable, and I know that Russian--and probably other double-byte languages--can be used with LC and SQLite. Thank you! Slava > From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] On Behalf Of Dave Cragg > Sent: Wednesday, June 01, 2011 4:01 AM > To: How to use LiveCode > Subject: Unicode and revDatabase Library, SQLite > > On 1 Jun 2011, at 01:04, Slava wrote: > > > put uniDecode(locTarget, "UTF16") into locSQLParams --now locSQLParams is UTF-8 But Dave said: > To get UTF-8, I think that should be: > > put uniDecode(locTarget, "UTF8") into locSQLParams > > Dave And he was right. From slava at lexiconbridge.com Wed Jun 1 10:42:51 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Wed, 1 Jun 2011 10:42:51 -0400 Subject: Cyrillic input In-Reply-To: References: <00e301cc2063$ab067500$01135f00$@lexiconbridge.com> Message-ID: <00f701cc206a$325e6110$971b2330$@lexiconbridge.com> Brilliant! Thanks, Ron. Very educational for me. By the way, Malt--there was a bug in my post from half an hour ago. To convert from the UTF16 in the field back to UTF-8 for storing or manipulating, use this: uniDecode(myVar, "UTF8") I had "UTF16" there, and Dave C. pointed it out in a separate (related) thread--which saved my day. Slava > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] On Behalf Of ron barber > Sent: Wednesday, June 01, 2011 10:11 AM > To: How to use LiveCode > Subject: Re: Cyrillic input > > Hi malte, > This is a modified function that Ken, Richard (and maybe Jacque) had a hand in > some time ago. > It does essentially the same thing that Slava suggested but I offer it as it has > helped me. > > Thanks > Ron > > function RawDataToUTF16 pData > -- Examine the data to determine encoding: > -- UTF8 has 0xEF 0xBB 0xBF > -- UTF16BE has 0xFE 0xFF > -- UTF16LE has 0xFF 0xFE > > switch > case charToNum(byte 1 of pData) = 0 > put "UTF16BE" into tTextEncoding > break > case charToNum(byte 1 of pData) = 0xFE and charToNum(char 2 of > pData) = 0xFF > delete byte 1 to 2 of pData > put "UTF16BE" into tTextEncoding > break > case charToNum(byte 1 of pData) = 0xFF and charToNum(char 2 of > pData) = 0xFE > delete byte 1 to 2 of pData > put "UTF16LE" into tTextEncoding > break > case char 1 to 3 of pData is "???" > put "utf8" into ttextencoding > break > > default > put "UTF8" into tTextEncoding > break > end switch > -- > if tTextEncoding begins with "UTF16" then > -- Check byte order, swapping if needed: > if the processor is "x86" then > put "LE" into tHostByteOrder > else > put "BE" into tHostByteOrder > end if > if byte -2 to -1 of tTextEncoding <> tHostByteOrder then > put swapbytes(pData) into pData > end if > -- Already utf16, so nothing more needs to be done: > #put uniEncode(uniDecode(pData, utf16),16) into tFieldData > put pData into tFieldData > else > put uniEncode(pData, "utf8") into tFieldData > end if > -- Convert from utf8 to Rev's native utf16: > replace uniencode("?v","Japanese") with "**" in tFieldData > replace CRLF with cr in tFieldData > replace numtochar(13) with cr in tfieldData --affects japanese ? > replace "**" with uniencode("?v","Japanese") in tFieldData > return tFieldData > end RawDataToUTF16 > > > On Wed, Jun 1, 2011 at 10:56 PM, Slava wrote: > > Malte, > > > > As I said, I'm discovering these things as I go--I hadn't even heard > > of LC until last month. I'm finding that work with Unicode in LC > > involves a lot of jumping through hoops, but so far I have been able > > to do everything I needed. So don't give up :) > > > > I am not sure why your stack doesn't "know" whether the text in your > > field is UTF-16 or plain ANSI, but here is what I do: > > > > When I read some text from a file into a variable, I assume that it is > > UTF-8. There is no harm in that. Even if it turns out to be plain > > English, it can still be treated that way. > > > > When I assign that text to a field, I always use > > > > set the unicodeText of field MyField to uniEncode(myVar, "UTF8") > > > > Now the text in the field is UTF-16. I check to see if the first two > > bytes are decimal 255 followed by decimal 254 (or the reverse, 254 > > followed by 255), and if they are, I delete them, because that's BOM. > > > > I can read and edit the field using the system's multilanguage input, > > like the Russian keyboard in Windows. Russian and English can be typed > > in any combination, but it is still all UTF-16. Each letter and each > > punctuation mark is a two-byte sequence. If you call length(the > > unicodeText of field > > MyField) it will report twice the number of characters that you see in > > the field. > > > > So if I have to access character N in the field, I do this: > > > > set useUnicode to true > > put char N to char N+1 of field MyField into myChar answer > > charToNum(myChar) That will show you a decimal number, like 1072 if > > myChar is a lower case Cyrillic a or an ASCII number if it is an > > English letter. > > > > Even plain English letters must be accessed like that, as two bytes. > > For English, the first byte is a null, and the second is the ASCII of > > the letter, but you don't need to think of that. Just treat every > > letter as a two-char sequence. > > > > If the user types in that field, what he types is in UTF-16. > > > > If I need to do anything with the text in the field, like store it to > > a file, I read it into a variable: > > > > put the unicodeText of field MyField into myVar2 > > > > and immediately convert it to UTF-8: > > > > put uniDecode(myVar2, "UTF16") into myVar2==> CORECTION: should be uniDecode(myVar2, "UTF8") > > > > Now myVar2 is UTF-8 and can be stored in a file or processed by scripts. > > > > There are apparently limitations to what you can do with Cyrillic in > > LC, but the things that I have listed all work for me. > > > > Slava > > > >> -----Original Message----- > >> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > >> bounces at lists.runrev.com] On Behalf Of Malte Brill > >> Sent: Wednesday, June 01, 2011 9:23 AM > >> To: use-livecode at lists.runrev.com > >> Subject: Re: Re: Cyrillic input > >> > >> Thanks mark and Slava! > >> > >> well, this is getting me a bit further. Now if only I knew if I could > > reliably check if > >> the text in my field regular ASCII or UTF encoded, that would really > >> make > > my > >> day. > >> > >> Cheers, > >> > >> malte > >> > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bvg at mac.com Wed Jun 1 11:27:47 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Wed, 01 Jun 2011 17:27:47 +0200 Subject: Live LiveCode code event #25 wrap up In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <89782C22-C6E3-4245-95D1-A48F69423753@mac.com> <061D9182-B34B-4ABB-A7D6-9C2D09DA8755@mac.com> <73F84954-890B-4627-859A-702C8054F13B@mac.com> <093DEF5E-6C0F-4924-A262-F6DBE748ED45@mac.com> <3FB852C9-5675-4A19-9506-543733BB2547@mac.com> <914DF999-596E-4023-A213-9469C6A69FA0@mac.com> <2B105965-FB27-41D0-B95F-1F4C84ADD53B@mac.com> Message-ID: Hi The event had Keith Clarkes views on the message path, and there's also great content about why RunRev has such a hard time attracting new users, and what to do about it: http://www.ustream.tv/recorded/15018850 Scotts introduced more info about his tmControl suite (to be released whenever): http://www.ustream.tv/recorded/15019837 examples: http://blog.livecode.tv/wp-content/uploads/2011/06/tmcontrol.png buy it here: http://www.tactilemedia.com/demo/tmcontrol/access.html I'm also very glad that Andreas now has announced his often covered iOS native toolkit on the forum: http://forums.runrev.com/viewtopic.php?f=49&t=7866&start=0 cheers BvG On 28 May 2011, at 19:05, Bj?rnke von Gierke wrote: > Personalised greeting. Join within the hour. Or miss the show. What do I care. Your loss. > > http://bjoernke.com/chatrev/ > http://livecode.tv/ > > > On 27 May 2011, at 18:51, Bj?rnke von Gierke wrote: > >> Hi all >> >> The event continues to churn on, this time with GUI-Superstar Scott Rossi. He will show us more information about his tmControl suite of custom controls, that is currently being developed for desktop and mobile. Note that once finished, this commercial add-on will allow you to have any style of non-native object set, perfectly matched and beautiful enough for the heavens. >> http://livecode.tv/scott/ >> >> Keith Clarke wil be presenting, using his expertise in MVC architecture patterns, to decide what to code where in LiveCode, for web services. He'll cover misusing the message path and a very nice PDF :) >> http://livecode.tv/keith/ >> >> >> Connect to ChatRev ( http://bjoernke.com/chatrev/ ), and watch the events at these times: >> Tehran Sat 22:30 >> Oslo Sat 20:00 >> Washington DC Sat 14:00 >> Seattle Sat 11:00 >> Tokyo Sun 03:00 >> >> >> Remember that there's tons of materials available on http//livecode.tv/ already. >> >> Cheers >> Bj?rnke > > > > > -- > > official ChatRev page: > http://bjoernke.com/chatrev > > > Chat with other RunRev developers: > go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niggemann at uni-wh.de Wed Jun 1 11:32:43 2011 From: niggemann at uni-wh.de (BNig) Date: Wed, 1 Jun 2011 08:32:43 -0700 (PDT) Subject: [ANN] sunnYmidi: Script your sounds In-Reply-To: References: Message-ID: <1306942363018-3566143.post@n4.nabble.com> Hi Thierry, thank you for developing the Midi external for MacOSX. Everybody on MacOSX should check the Demo out even if not interested in Midi or music. It is a lot of fun and you can make all kinds of noises. Look at the keyboard example, a lot of birds and stuff when typing. The sound effects one can produce are a welcome addition to any game. let dogs bark, horses run, doors close, starships fly, telefone ring etc. Again bien fait, merci et bravo Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-sunnYmidi-Script-your-sounds-tp3565220p3566143.html Sent from the Revolution - User mailing list archive at Nabble.com. From Andreas.Rozek at HyMeSys.com Wed Jun 1 11:41:42 2011 From: Andreas.Rozek at HyMeSys.com (Andreas Rozek) Date: Wed, 1 Jun 2011 17:41:42 +0200 Subject: [ANN] iPhone Control Kit 0.1.0 Message-ID: Hello! I would like to introduce my current project: The "iPhone Control Kit for LiveCode" contains numerous LiveCode objects which emulate the Look-and-Feel of native iPhone controls and, thus, simplifies the development of native iPhone apps which follow Apple's "Human Interface Guidelines". Besides the basic Look-and-Feel emulation, every control also offers additional functionality which speeds up the design and customization process within the LiveCode IDE. Finally, a simple but effective geometry handling mechanism allows for automatic layout of controls when the device's orientation or the content of a control has changed. A similar kit for the iPad is currently under development and should become available soon. The "iPhone Control Kit for LiveCode" may be downloaded and used freely in (commercial as well as non-commercial) projects - the software is published under the "MIT License" with the additional restriction that any modifications to the author's original version must be clearly marked in a way that the original author will never be considered as the author of these modifications! The software should currently be considered as being in an early alpha stage - not all controls have already been implemented and/or unified and some (convenience) functions still have to be written. Nevertheless, you may already try it and play around with its contents. Any kind of feedback is highly welcome - please send it directly to me (not to flood this list with a discussion about third-party software), unless you think it would be of general interest. I'm currently writing the documentation (see http://87.106.227.245/LiveCode/iPhoneControlKit/index_en.html), the current state may be fetched at http://87.106.227.245/LiveCode/iPhoneControlKit/iPhoneControlKit.livecode.zip Kind regards, Andreas Rozek Phone: ++49 (7031) 436 5784 Brunnenstra?e 30/2 Mobile: ++49 (151) 172 879 18 D-71032 B?blingen EMail: Andreas.Rozek at HyMeSys.com Germany URL: http://www.HyMeSys.com From revolution at derbrill.de Wed Jun 1 13:05:46 2011 From: revolution at derbrill.de (Malte Brill) Date: Wed, 1 Jun 2011 19:05:46 +0200 Subject: Cyrillic input In-Reply-To: References: Message-ID: Thanks for the feedback all! Still struggeling with a few things though. Scenario is as follows: I talk to a server that always sends UTF8. The data sent is XML. While we were using Western European languages only this all worked just fine. Now that the app needs to support Russian, there is quite a bit of trouble and refactoring of code needed to be done. Basically quite often I need to work with data returned from the server in a variable (I read the node contents and process data as necessary. Quite often this involves working with chunks of said data. (line 2 to -1 of / char 1 to 7 of... which completely throws me at the moment. I need to see if the script Ron posted saves me somehow, but per design the application was build with quite a few set the text of fld "blah" to chunkOfDataRetrievedFromXML or even worse put chunkRetrievedFromXML into fld "blah". This makes switching everything to unicode not too easy. Also with a russian keyboard layout suddenly rawKeyDown and keyDown do not fire anymore. So my numbersOnly and password fields do not work anymore. This is rather painful and I need to find a solution there too. Seems that chunks only work reliable when you work in ANSI mode, as I do not appear to be able to say set the UnicodeText of fld "test" to line 2 to -1 of UTF16String. Not too much of a happy camper at the moment. All the best, Malte From jacque at hyperactivesw.com Wed Jun 1 13:18:20 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Jun 2011 12:18:20 -0500 Subject: Immediate sound feedback on Android In-Reply-To: <0FAD2059-BEB9-427A-8DAD-60D9CB77A340@mac.com> References: <0FAD2059-BEB9-427A-8DAD-60D9CB77A340@mac.com> Message-ID: <4DE6745C.4060306@hyperactivesw.com> On 6/1/11 7:38 AM, Randy Hengst wrote: > Hello Roger, > > I've noticed the delay of sounds iOS with the first sound played in a > stack?. it doesn't seem to matter which sound is played first, it's > always delayed. But, from that point forward all sounds play > immediately. > > So, I've included a sound file that is a half second of silence and > call it with the open stack or open card handler. Perhaps this will > help with Android, too. I've not built for Android, so this is just a > guess. > The latest LiveCode release includes a command to pre-cache a sound on iOS which effectively eliminates the initial delay. See the release notes (under the Help menu.) The same capability isn't yet included for Android, where sound playback is still pretty basic. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Wed Jun 1 13:29:13 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Jun 2011 12:29:13 -0500 Subject: Immediate sound feedback on Android In-Reply-To: References: Message-ID: <4DE676E9.8060305@hyperactivesw.com> On 6/1/11 6:23 AM, Roger Eller wrote: > I can't get sounds to play at all on Android. I have tried importing a .wav > file into the stack, and also referencing the file via its path. In both > cases, there is a delay the first time the sound is played in the LiveCode > IDE. How can I insure the playback will be "immediate" when a button is > touched? Is there a best practice regarding embedding sounds -vs- > referencing them for mobile? Embedded sounds don't work well, use sound files on disk instead. Include them in the Copy Files pane of the standalone builder, with or without an enclosing subfolder. When playing the sound, use the whole file path, starting with specialFolderPath("engine"). Since you are getting a delay, it sounds like the sounds are being found okay, but you are experiencing the initial loading of Android's sound playback system. To get around that, I'd try preloading it early in the launch sequence, maybe on openstack. I haven't actually tried this yet, but I think it will work. Get the current playLoudness and save it in a variable, set the playLoudness to zero, play one of your sounds (which you won't hear) and then reset the playLoudness to its initial value. If it works let us know, I've been meaning to try it but I haven't had time to work on my test stack lately. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From roger.e.eller at sealedair.com Wed Jun 1 14:13:08 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Wed, 1 Jun 2011 14:13:08 -0400 Subject: Immediate sound feedback on Android In-Reply-To: <4DE676E9.8060305@hyperactivesw.com> References: <4DE676E9.8060305@hyperactivesw.com> Message-ID: On Wed, Jun 1, 2011 at 1:29 PM, J. Landman Gay wrote: > > On 6/1/11 6:23 AM, Roger Eller wrote: >> >> I can't get sounds to play at all on Android. ?I have tried importing a .wav >> file into the stack, and also referencing the file via its path. ?In both >> cases, there is a delay the first time the sound is played in the LiveCode >> IDE. ?How can I insure the playback will be "immediate" when a button is >> touched? ?Is there a best practice regarding embedding sounds -vs- >> referencing them for mobile? > > Embedded sounds don't work well, use sound files on disk instead. Include > them in the Copy Files pane of the standalone builder, with or without an > enclosing subfolder. When playing the sound, use the whole file path, > starting with specialFolderPath("engine"). > > Since you are getting a delay, it sounds like the sounds are being found > okay, but you are experiencing the initial loading of Android's sound playback > system. To get around that, I'd try preloading it early in the launch sequence, > maybe on openstack. I haven't actually tried this yet, but I think it will work. > Get the current playLoudness and save it in a variable, set the playLoudness > to zero, play one of your sounds (which you won't hear) and then reset the > playLoudness to its initial value. > > If it works let us know, I've been meaning to try it but I haven't had time to work > on my test stack lately. > > -- > Jacqueline Landman Gay ? ? ? ? | ? ? jacque at hyperactivesw.com > HyperActive Software ? ? ? ? ? | ? ? http://www.hyperactivesw.com > Jacq, When I check the playLoudness, it is 100. It doesn't matter if I have the volume turned all the way down, it still returns 100. So, I set the playLoudness to 0, play my sound, then set the playLoudness to 100 again in openStack. On my device, I can still hear the sound play on openStack, but is is at least cached, so further use of the sound is immediate. I think the playLoudness always at 100 is a bug. I believe your approach should have worked otherwise. ~Roger From slava at lexiconbridge.com Wed Jun 1 15:01:31 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Wed, 1 Jun 2011 15:01:31 -0400 Subject: Cyrillic input: working with chunks of Russian In-Reply-To: References: Message-ID: <000401cc208e$54f8fb30$feeaf190$@com> Malte, You said, > I do not appear to be able to say set the UnicodeText of fld "test" to line 2 to -1 of UTF16String. This does work for me. I don't know what the etiquette is on this list regarding attachments, so I uploaded my screen shot to http://russian.cornell.edu/CyrillicChunks.png. It helps understand the script because the button labels are used in the script. In the screen shot, I have asked it to "show word 3 of line 2." Here is the script that does this: put the unicodeText of field "InputField" of this card into locOutput --the top field in the screen shot put uniDecode(locOutput, "UTF8") into locOutput put the label of button "LinePos" into locLinePos --this is the "In Line" dropdown menu put the label of button "WordPos" of this card into locWordPos --this is the "Show Word" dropdown menu put word locWordPos of line locLinePos of locOutput into locOutput set the unicodeText of field "ResultsField1" of this card to uniEncode(locOutput, "UTF8") --this is the bottom field in the screen shot I haven't yet worked with intercepting keystrokes, but I will attack that tonight or tmorrow. It is one of the requirements for my application. Slava From jacque at hyperactivesw.com Wed Jun 1 15:23:23 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Jun 2011 14:23:23 -0500 Subject: Immediate sound feedback on Android In-Reply-To: References: <4DE676E9.8060305@hyperactivesw.com> Message-ID: <4DE691AB.7000902@hyperactivesw.com> On 6/1/11 1:13 PM, Roger Eller wrote: > When I check the playLoudness, it is 100. It doesn't matter if I have > the volume turned all the way down, it still returns 100. So, I set > the playLoudness to 0, play my sound, then set the playLoudness to 100 > again in openStack. > > On my device, I can still hear the sound play on openStack, but is is > at least cached, so further use of the sound is immediate. I think > the playLoudness always at 100 is a bug. I believe your approach > should have worked otherwise. Thanks for checking. I think the first part is correct -- the playLoudness is relative to the hardware setting. If your volume is set to 50% on the hardware, then a playLoudness of 100 will equal 50% volume. The docs sort of refer to that. The second part sounds like a bug though. Setting playLoudness to 0 should turn off sound, even if it's a relative setting. Zero relative to 50% is still zero. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From andre at andregarzia.com Wed Jun 1 15:28:31 2011 From: andre at andregarzia.com (Andre Garzia) Date: Wed, 1 Jun 2011 16:28:31 -0300 Subject: Linux Externals... Message-ID: Folks, does anyone knows if the ExternalEnvironmentV3 modified for Linux available at http://www.runrev.com/developers/lessons-and-tutorials/tutorials/advanced-linux-externals/ is still working? I can't build an empty external or one of my previous externals that used to work. I receive an error like: ./src/curlexternal.c:136:8: error: expected identifier or ?(? before string constant ./src/curlexternal.c: In function ?__dummy_function?: ./src/curlexternal.c:136:8: warning: implicit declaration of function ?getXtable? [-Wimplicit-function-declaration] ./src/curlexternal.c: At top level: ./src/curlexternal.c:145:1: error: ?EXTERNAL_END_DECLARATION? undeclared here (not in a function) ./src/curlexternal.c:145:1: error: expected ?}? at end of input and yes, I am working on a curl external... -- http://www.andregarzia.com All We Do Is Code. From bvlahos at mac.com Wed Jun 1 16:13:07 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 01 Jun 2011 13:13:07 -0700 Subject: Tool tip show graphic Message-ID: Is there a way to put a graphic into a tool tip instead of text? I want to mouse over an icon and show a screen shot that is potentially larger than my stack but I want it to appear and disappear like a tool tip does. Is there a way to do this without making a separate substack and showing/hiding it or without resizing my stack to accommodate the image? Bill Vlahos From stephenREVOLUTION2 at barncard.com Wed Jun 1 16:38:20 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jun 2011 13:38:20 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: I think David Beck made a library for this.. wait a minute On 1 June 2011 13:13, Bill Vlahos wrote: > Is there a way to put a graphic into a tool tip instead of text? > > I want to mouse over an icon and show a screen shot that is potentially > larger than my stack but I want it to appear and disappear like a tool tip > does. Is there a way to do this without making a separate substack and > showing/hiding it or without resizing my stack to accommodate the image? > > Bill Vlahos > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Wed Jun 1 16:45:00 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jun 2011 13:45:00 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: http://www.rotundasoftware.com/livecode/ click on PopupBalloon On 1 June 2011 13:38, stephen barncard wrote: > I think David Beck made a library for this.. wait a minute > > > On 1 June 2011 13:13, Bill Vlahos wrote: > >> Is there a way to put a graphic into a tool tip instead of text? >> >> I want to mouse over an icon and show a screen shot that is potentially >> larger than my stack but I want it to appear and disappear like a tool tip >> does. Is there a way to do this without making a separate substack and >> showing/hiding it or without resizing my stack to accommodate the image? >> >> Bill Vlahos >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > > -- Stephen Barncard San Francisco Ca. USA more about sqb From stephenREVOLUTION2 at barncard.com Wed Jun 1 16:48:24 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jun 2011 13:48:24 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: These are actually grouped objects kept within the rect of the window. Perhaps not what you want. On 1 June 2011 13:45, stephen barncard wrote: > http://www.rotundasoftware.com/livecode/ > > click on PopupBalloon > > > Stephen Barncard San Francisco Ca. USA more about sqb From bvlahos at mac.com Wed Jun 1 16:57:58 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 01 Jun 2011 13:57:58 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: Stephen, Not what I'm looking for but this is very cool. Bill Vlahos On Jun 1, 2011, at 1:48 PM, stephen barncard wrote: > These are actually grouped objects kept within the rect of the window. > Perhaps not what you want. > > > > On 1 June 2011 13:45, stephen barncard wrote: > >> http://www.rotundasoftware.com/livecode/ >> >> click on PopupBalloon >> >> >> > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From stgoldberg at aol.com Wed Jun 1 17:14:22 2011 From: stgoldberg at aol.com (stgoldberg at aol.com) Date: Wed, 01 Jun 2011 17:14:22 -0400 Subject: eBooks and LiveCode In-Reply-To: References: Message-ID: <8CDEEB8030937B0-1C58-70AC8@webmail-d039.sysops.aol.com> Regarding the question of whether LiveCode could be suitable for publishers who want to create interactive eBooks, I agree that such books would not be published in epub or amz format, but how about an eBook created with LiveCode as a pure LiveCode standalone that could be read in the cloud? Then, it would be accessible through Macintosh, Windows, and eReaders such as iPad that communicate with the Internet. The question is one of typesetting and laying out the book so that it looks professional (Scott Rossi quality!?) and also would have a means to discourage pirating. The advantage of considering LiveCode is the vast flexibility that it would have in introducing interactivity within the book. LiveCode's potential for this presently seems to exceed that of current means of creating eBooks (such as using Quark Express for the Blio Reader). There is a growing emphasis on creating eBooks that are not merely electronic versions of print books, but books that have something extra, the inclusion of interactivity in the form of hyperlinks, audio, and movies. Could LiveCode be a significant contributor to this? Steve Goldberg From: Andre Garzia To: How to use LiveCode Subject: Re: eBooks and LiveCode Message-ID: Content-Type: text/plain; charset=ISO-8859-1 eBooks these days basically mean one of the following file formats: * PDF * mobi * nook * ePub From stephenREVOLUTION2 at barncard.com Wed Jun 1 17:20:46 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jun 2011 14:20:46 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: Then stacks are the only other object in Livecode that can live outside the card rect. What is the downside of using stacks? They are just another object in memory once loaded - reposition, hide and show?. (sorry - haven't tried this yet) On 1 June 2011 13:57, Bill Vlahos wrote: > Stephen, > > Not what I'm looking for but this is very cool. > > Bill Vlahos > > On Jun 1, 2011, at 1:48 PM, stephen barncard wrote: > > > These are actually grouped objects kept within the rect of the window. > > Perhaps not what you want. > > > > > > > > On 1 June 2011 13:45, stephen barncard >wrote: > > > >> http://www.rotundasoftware.com/livecode/ > >> > >> click on PopupBalloon > >> > >> > >> > > > > Stephen Barncard > > San Francisco Ca. USA > > > > more about sqb > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From jimaultwins at yahoo.com Wed Jun 1 17:26:30 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 1 Jun 2011 14:26:30 -0700 Subject: eBooks and LiveCode In-Reply-To: <8CDEEB8030937B0-1C58-70AC8@webmail-d039.sysops.aol.com> References: <8CDEEB8030937B0-1C58-70AC8@webmail-d039.sysops.aol.com> Message-ID: <1A730E1E-2A7A-4871-88CD-020AB6603E58@yahoo.com> On Jun 1, 2011, at 2:14 PM, stgoldberg at aol.com wrote: > Regarding the question of whether LiveCode could be suitable for > publishers who want to create interactive eBooks, I agree that such > books would not be published in epub or amz format, but how about an > eBook created with LiveCode as a pure LiveCode standalone that could > be read in the cloud? Then, it would be accessible through > Macintosh, Windows, and eReaders such as iPad that communicate with > the Internet. The question is one of typesetting and laying out the > book so that it looks professional (Scott Rossi quality!?) and also > would have a means to discourage pirating. The advantage of > considering LiveCode is the vast flexibility that it would have in > introducing interactivity within the book. LiveCode's potential for > this presently seems to exceed that of current means of creating > eBooks (such as using Quark Express for the Blio Reader). There is > a growing emphasis on creating eBooks that are not merely electronic > versions of print books, but books that have something extra, the > inclusion of interactivity in the form of hyperlinks, audio, and > movies. Could LiveCode be a significant contributor to this? > You might take a look at InteractBooks.com for the iPad. It is an app that makes books designed for non-programmers. Ezra Weinstein attended RunRevLive when it was still mid-beta, but I think they were finally ready to go to the app store last weekend. They have a lot of videos on YouTube that you might enjoy. You re correct that interactive book publishing is very hot these days. Jim Ault Las Vegas From jimaultwins at yahoo.com Wed Jun 1 17:32:08 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 1 Jun 2011 14:32:08 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: <79311FDA-FFB2-4894-A025-566EF90DB9F0@yahoo.com> Bill, you should look at the following video that I did showing how substacks can be used many ways without much coding and complexity. The very cool Alien Spheres stack ( written by Scott Rossi ) Free, and will always be free to access and ask me questions http://jimthewebmaster.com/livecode/PublicFree/pg/alienSpheresInsp.php Click on the bar that says "Advanced Level" Lots of ideas about how to make it work for you. Jim Ault On Jun 1, 2011, at 2:20 PM, stephen barncard wrote: > Then stacks are the only other object in Livecode that can live > outside the > card rect. > What is the downside of using stacks? They are just another object > in memory > once loaded - reposition, hide and show?. > (sorry - haven't tried this yet) > > On 1 June 2011 13:57, Bill Vlahos wrote: >> Stephen, >> Not what I'm looking for but this is very cool. >> Bill Vlahos >> >> On Jun 1, 2011, at 1:48 PM, stephen barncard wrote: >>> These are actually grouped objects kept within the rect of the >>> window. >>> Perhaps not what you want. >>> >>> On 1 June 2011 13:45, stephen barncard >> wrote: >>> >>>> http://www.rotundasoftware.com/livecode/ >>>> click on PopupBalloon From kee at kagi.com Wed Jun 1 18:48:57 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 1 Jun 2011 15:48:57 -0700 Subject: How to obtain browser version in web app? In-Reply-To: References: Message-ID: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> It is possible to get any information about the browser running a web based livecode stack? If so, how? Didn't see anything in the dictionary. For example, Safari 5.0.5 or IE 7.2 or anything like that? Thanks, Kee Nethery From stephenREVOLUTION2 at barncard.com Wed Jun 1 19:22:51 2011 From: stephenREVOLUTION2 at barncard.com (stephen barncard) Date: Wed, 1 Jun 2011 16:22:51 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: I came up with this test stack. go URL "http://fulton.barncard.com/stax/graphicInToolTip.rev" This comes pretty close. One could write some send in time statements that could handle the initial delay, and a hide delay if the cursor stays on the object after a while. On 1 June 2011 13:57, Bill Vlahos wrote: > Stephen, > > Not what I'm looking for but this is very cool. > > Bill Vlahos > > On Jun 1, 2011, at 1:48 PM, stephen barncard wrote: > > > These are actually grouped objects kept within the rect of the window. > > Perhaps not what you want. > > > > > > > > On 1 June 2011 13:45, stephen barncard >wrote: > > > >> http://www.rotundasoftware.com/livecode/ > >> > >> click on PopupBalloon > >> > >> > >> > > > > Stephen Barncard > > San Francisco Ca. USA > > > > more about sqb > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Stephen Barncard San Francisco Ca. USA more about sqb From dixonja at hotmail.co.uk Wed Jun 1 19:27:16 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 2 Jun 2011 00:27:16 +0100 Subject: Tool tip show graphic In-Reply-To: References: , , , , , Message-ID: I like this... Nice... :-) Dixie > Date: Wed, 1 Jun 2011 16:22:51 -0700 > Subject: Re: Tool tip show graphic > From: stephenREVOLUTION2 at barncard.com > To: use-livecode at lists.runrev.com > > I came up with this test stack. > > go URL "http://fulton.barncard.com/stax/graphicInToolTip.rev" > > > This comes pretty close. One could write some send in time statements that > could handle the initial delay, and a hide delay if the cursor stays on the > object after a while. From bobs at twft.com Wed Jun 1 19:46:41 2011 From: bobs at twft.com (Bob Sneidar) Date: Wed, 1 Jun 2011 16:46:41 -0700 Subject: How to obtain browser version in web app? In-Reply-To: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> Message-ID: I think it's an http thing. Bob On Jun 1, 2011, at 3:48 PM, Kee Nethery wrote: > It is possible to get any information about the browser running a web based livecode stack? If so, how? Didn't see anything in the dictionary. > > For example, Safari 5.0.5 or IE 7.2 or anything like that? > > Thanks, Kee Nethery > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jimaultwins at yahoo.com Wed Jun 1 19:52:27 2011 From: jimaultwins at yahoo.com (Jim Ault) Date: Wed, 1 Jun 2011 16:52:27 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: <65FFA4BD-8018-4815-BDC6-201829659621@yahoo.com> On Jun 1, 2011, at 4:22 PM, stephen barncard wrote: > I came up with this test stack. > > go URL "http://fulton.barncard.com/stax/graphicInToolTip.rev" > > > This comes pretty close. One could write some send in time > statements that > could handle the initial delay, and a hide delay if the cursor stays > on the > object after a while. Stephen had too much fun making this :-) One refinement is the ---- substack script mousedown set the loc of this stack to globalLoc(the mouseLoc) rather than set the loc of this stack to (the mouseLoc) Bonus feature is to set the substack blendLevel to 40 so that is it semi transparent, if that makes it look better. added handler to the substack script on mouseLeave set the visible of stack "tipToolstack" to "false" end mouseLeave -----------------thus this is the script on mouseDown set the loc of this stack to globalLoc(the mouseLoc) set the blendlevel of this stack to 40 pass mousedown end mouseDown on mouseLeave set the visible of stack "tipToolstack" to "false" end mouseLeave ---------- end script Jim Ault Las Vegas From bvlahos at mac.com Wed Jun 1 20:35:27 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Wed, 01 Jun 2011 17:35:27 -0700 Subject: Tool tip show graphic In-Reply-To: References: Message-ID: <28F0AB04-F136-49FE-B28E-F2333F64DB2E@mac.com> Stephen, Thanks. Yes this is good. Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jun 1, 2011, at 4:22 PM, stephen barncard wrote: > I came up with this test stack. > > go URL "http://fulton.barncard.com/stax/graphicInToolTip.rev" > > > This comes pretty close. One could write some send in time statements that > could handle the initial delay, and a hide delay if the cursor stays on the > object after a while. > > > > On 1 June 2011 13:57, Bill Vlahos wrote: > >> Stephen, >> >> Not what I'm looking for but this is very cool. >> >> Bill Vlahos >> >> On Jun 1, 2011, at 1:48 PM, stephen barncard wrote: >> >>> These are actually grouped objects kept within the rect of the window. >>> Perhaps not what you want. >>> >>> >>> >>> On 1 June 2011 13:45, stephen barncard >> wrote: >>> >>>> http://www.rotundasoftware.com/livecode/ >>>> >>>> click on PopupBalloon >>>> >>>> >>>> >>> >>> Stephen Barncard >>> San Francisco Ca. USA >>> >>> more about sqb >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > > > > Stephen Barncard > San Francisco Ca. USA > > more about sqb > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee at kagi.com Wed Jun 1 20:49:00 2011 From: kee at kagi.com (Kee Nethery) Date: Wed, 1 Jun 2011 17:49:00 -0700 Subject: How to obtain browser version in revWeb app? In-Reply-To: References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> Message-ID: <81D93D83-1126-444D-830D-B66DF4A2F1EB@kagi.com> I see HTTP stuff in the dictionary for talking to a server and getting web pages. I don't see a way to query revWeb to ask it what browser it is running in. Kee On Jun 1, 2011, at 4:46 PM, Bob Sneidar wrote: > I think it's an http thing. > > Bob > > > On Jun 1, 2011, at 3:48 PM, Kee Nethery wrote: > >> It is possible to get any information about the browser running a web based livecode stack? If so, how? Didn't see anything in the dictionary. >> >> For example, Safari 5.0.5 or IE 7.2 or anything like that? >> >> Thanks, Kee Nethery >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ------------------------------------------------- I check email roughly 2 to 3 times per day. Kagi main office: +1 (510) 550-1336 From bonnmike at gmail.com Wed Jun 1 21:24:34 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Wed, 1 Jun 2011 19:24:34 -0600 Subject: How to obtain browser version in revWeb app? In-Reply-To: <81D93D83-1126-444D-830D-B66DF4A2F1EB@kagi.com> References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> <81D93D83-1126-444D-830D-B66DF4A2F1EB@kagi.com> Message-ID: You can do this. do "result = navigator.appName" in browser at which point the result will contain "Microsoft Internet Explorer" if thats the browser in use. result = navigator.userAgent returns.. ; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) for the version of IE i'm using. there is also "result = navigator appVersion which for me returns.. 5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) Didn't test with firefox, didn't test with chrome since the plugin doesn't work there for me. I'm sure there are quite a few other useful items that can be queried this way. On Wed, Jun 1, 2011 at 6:49 PM, Kee Nethery wrote: > I see HTTP stuff in the dictionary for talking to a server and getting web > pages. I don't see a way to query revWeb to ask it what browser it is > running in. > > Kee > > > > On Jun 1, 2011, at 4:46 PM, Bob Sneidar wrote: > > > I think it's an http thing. > > > > Bob > > > > > > On Jun 1, 2011, at 3:48 PM, Kee Nethery wrote: > > > >> It is possible to get any information about the browser running a web > based livecode stack? If so, how? Didn't see anything in the dictionary. > >> > >> For example, Safari 5.0.5 or IE 7.2 or anything like that? > >> > >> Thanks, Kee Nethery > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > ------------------------------------------------- > I check email roughly 2 to 3 times per day. > Kagi main office: +1 (510) 550-1336 > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Thu Jun 2 00:34:45 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Wed, 01 Jun 2011 23:34:45 -0500 Subject: [ANN] sunnYmidi: Script your sounds In-Reply-To: References: Message-ID: <4DE712E5.4090004@hyperactivesw.com> On 6/1/11 3:15 AM, Thierry Douez wrote: > Hi all, > > I am pleased to announce SunnYmidi. > > SunnYmidi is a simple and powerful tool > to help LiveCode Users add sounds to their stack. I've seen this and it is awesome. Fast, responsive, and pretty much everything you'll need for on-the-fly sound creation. For those who want HC-style note playback, this is the ticket. (Judy, check it out.) But it does much more than that. Really nice job. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From david_beck at rotundasoftware.com Thu Jun 2 02:48:53 2011 From: david_beck at rotundasoftware.com (David Beck) Date: Wed, 01 Jun 2011 23:48:53 -0700 Subject: Running standalone on 64 bit Linux Message-ID: <4DE73255.4010409@rotundasoftware.com> Hello everyone, I am having some very weird, inconsistent and difficult to track problems running a LiveCode standalone on a 64 bit Linux machine with a 32 bit compatibility layer. As far a I can tell, the wierdness is associated with tricky things like regular expressions and getting "the value of" expressions. These problems do not occur on a 32 bit box, and then I run the same standalone on a 64 bit box and there are these weird problems that I can't reproduce. Two questions: 1. Since what version of LiveCode is running a standalone on a 64 bit Linux box (w/ 32 bit compatibility layer) officially supported? 2. How likely do you think it is that these problems are associated with the 64 bit environment? How "solid" are compatibility layers ? Thanks very much for any help! David Beck From mblivecode at harbourhosting.co.uk Thu Jun 2 04:08:22 2011 From: mblivecode at harbourhosting.co.uk (Martin Baxter) Date: Thu, 02 Jun 2011 09:08:22 +0100 Subject: How to obtain browser version in web app? In-Reply-To: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> Message-ID: <4DE744F6.9040509@harbourhosting.co.uk> Hi Kee, You have to parse out the HTTP_USER_AGENT string yourself I think This old test script might get you started: user agent: " & tua & "

" put "

offset of MSIE: " & tie & "

" put "

offset of Safari: " & tmac & "

" put "

offset of Opera: " & topera & "

" put "

offset of Gecko: " & tgecko & "

" ?> Sample output user agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17 offset of MSIE: 0 offset of Safari: 0 offset of Opera: 0 offset of Gecko: 62 Probably needless to say that user agent strings aren't standardised. Martin Baxter On 01/06/2011 23:48, Kee Nethery wrote: > It is possible to get any information about the browser running a web > based livecode stack? If so, how? Didn't see anything in the > dictionary. > > For example, Safari 5.0.5 or IE 7.2 or anything like that? > > Thanks, Kee Nethery From mblivecode at harbourhosting.co.uk Thu Jun 2 04:17:28 2011 From: mblivecode at harbourhosting.co.uk (Martin Baxter) Date: Thu, 02 Jun 2011 09:17:28 +0100 Subject: How to obtain browser version in web app? In-Reply-To: <4DE744F6.9040509@harbourhosting.co.uk> References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> <4DE744F6.9040509@harbourhosting.co.uk> Message-ID: <4DE74718.5050905@harbourhosting.co.uk> On second thoughts I should have had my coffee before replying as you are talking about a stack not an irev script and my reply is irrelevant. In the revlet case I can't recall if there is a simple way off the top of my head. It is possible, but awkward to get the user agent from javascript and pass it to the revlet in its startup parameters. Not sure if server variables are available inside the revlet itself. Sorry for the preceding noise Martin Baxter On 02/06/2011 09:08, Martin Baxter wrote: > Hi Kee, > > You have to parse out the HTTP_USER_AGENT string yourself I think > > This old test script might get you started: > > put $_SERVER["HTTP_USER_AGENT"] into tua > put offset("MSIE",tua) into tie > put offset("Safari",tua) into tmac > put offset("Opera",tua) into topera > put offset("Gecko/",tua) into tgecko > > put "

user agent: " & tua & "

" > put "

offset of MSIE: " & tie & "

" > put "

offset of Safari: " & tmac & "

" > put "

offset of Opera: " & topera & "

" > put "

offset of Gecko: " & tgecko & "

" > ?> > > Sample output > > user agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) > Gecko/20110420 Firefox/3.6.17 > > offset of MSIE: 0 > > offset of Safari: 0 > > offset of Opera: 0 > > offset of Gecko: 62 > > > Probably needless to say that user agent strings aren't standardised. > > Martin Baxter > > > > On 01/06/2011 23:48, Kee Nethery wrote: >> It is possible to get any information about the browser running a web >> based livecode stack? If so, how? Didn't see anything in the >> dictionary. >> >> For example, Safari 5.0.5 or IE 7.2 or anything like that? >> >> Thanks, Kee Nethery From ludovic.thebault at laposte.net Thu Jun 2 05:16:21 2011 From: ludovic.thebault at laposte.net (=?iso-8859-1?Q?Ludovic_Th=E9bault?=) Date: Thu, 2 Jun 2011 11:16:21 +0200 Subject: [ANN] iPhone Control Kit 0.1.0 In-Reply-To: References: Message-ID: <12B688F2-6B99-49C6-9DB6-CE1BA193F05C@laposte.net> Le 1 juin 2011 ? 17:41, Andreas Rozek a ?crit : > > Hello! > > I would like to introduce my current project: > > The "iPhone Control Kit for LiveCode" contains numerous LiveCode objects which emulate the Look-and-Feel of native iPhone controls and, thus, simplifies the development of native iPhone apps which follow Apple's "Human Interface Guidelines". > > Besides the basic Look-and-Feel emulation, every control also offers additional functionality which speeds up the design and customization process within the LiveCode IDE. Finally, a simple but effective geometry handling mechanism allows for automatic layout of controls when the device's orientation or the content of a control has changed. > > A similar kit for the iPad is currently under development and should become available soon. > > The "iPhone Control Kit for LiveCode" may be downloaded and used freely in (commercial as well as non-commercial) projects - the software is published under the "MIT License" with the additional restriction that any modifications to the author's original version must be clearly marked in a way that the original author will never be considered as the author of these modifications! > > The software should currently be considered as being in an early alpha stage - not all controls have already been implemented and/or unified and some (convenience) functions still have to be written. Nevertheless, you may already try it and play around with its contents. > > Any kind of feedback is highly welcome - please send it directly to me (not to flood this list with a discussion about third-party software), unless you think it would be of general interest. > > I'm currently writing the documentation (see http://87.106.227.245/LiveCode/iPhoneControlKit/index_en.html), the current state may be fetched at http://87.106.227.245/LiveCode/iPhoneControlKit/iPhoneControlKit.livecode.zip > Great job thx From analog_test at runbox.com Thu Jun 2 05:26:18 2011 From: analog_test at runbox.com (Van Brollini) Date: Thu, 02 Jun 2011 02:26:18 -0700 (MST) Subject: Datagrids & arrays Message-ID: I have a datagrid with 1250 rows and 28 columns. The first 13 columns are data to be operated on. The last 15 columns are where the calculations are to be placed. I have gone through the datagrid manual and it is still fuzzy on how to get data OUT of the datagrid to do the calculations and then place the answers back INTO the datagrid. Any examples on how to this available? Thanks From admin at FlexibleLearning.com Thu Jun 2 06:25:28 2011 From: admin at FlexibleLearning.com (FlexibleLearning) Date: Thu, 2 Jun 2011 11:25:28 +0100 Subject: eBooks and LiveCode In-Reply-To: Message-ID: Absolutely agree with you, Steve. I wrote 'HyperManuscript' back in 1986 in conjunction with Roehampton Institute here in the UK. Far too much before its time, though. The problem now is one of critical mass... As you and Andre both point out, there are now a couple of entrenched standards so the choices are [1] support the existing standards, [2] launch an alternative, or [3] support the standards but extended to support LC-specific functionality/features. Whichever schema is used, LC will be up against the existing market supply. I suspect Amazon will be giving away their e-book hardware within the next 12-18 months; money is not in hardware but the software/services that use it. Cloud delivery to multiple platforms avoids this hardware problem but to make any impact at all, an LC app would have to enter the market with a substantial library of titles (several thousands) or it will be seen and reviewed as a niche-minnow if it is seen at all. And then there is HTML5, of course. Hugh Senior FLCo From: "stgoldberg at aol.com" Subject: eBooks and LiveCode Regarding the question of whether LiveCode could be suitable for publishers who want to create interactive eBooks, I agree that such books would not be published in epub or amz format, but how about an eBook created with LiveCode as a pure LiveCode standalone that could be read in the cloud? Then, it would be accessible through Macintosh, Windows, and eReaders such as iPad that communicate with the Internet. The question is one of typesetting and laying out the book so that it looks professional (Scott Rossi quality!?) and also would have a means to discourage pirating. The advantage of considering LiveCode is the vast flexibility that it would have in introducing interactivity within the book. LiveCode's potential for this presently seems to exceed that of current means of creating eBooks (such as using Quark Express for the Blio Reader). There is a growing emphasis on creating eBooks that are not merely electronic versions of print books, but books that have something extra, the inclusion of interactivity in the form of hyperlinks, audio, and movies. Could LiveCode be a significant contributor to this? Steve Goldberg From: Andre Garzia Subject: Re: eBooks and LiveCode eBooks these days basically mean one of the following file formats: * PDF * mobi * nook * ePub From dunbarx at aol.com Thu Jun 2 08:47:48 2011 From: dunbarx at aol.com (dunbarx at aol.com) Date: Thu, 02 Jun 2011 08:47:48 -0400 Subject: Datagrids & arrays In-Reply-To: References: Message-ID: <8CDEF3A693F7805-23BC-23B43@webmail-d163.sysops.aol.com> Use the dgText property. You can operate on this data in a script, and then reset. Craig Newman -----Original Message----- From: Van Brollini To: use-livecode at lists.runrev.com Sent: Thu, Jun 2, 2011 5:26 am Subject: Datagrids & arrays I have a datagrid with 1250 rows and 28 columns. The first 13 columns are data to be operated on. The last 15 columns are where the calculations are to be placed. I have gone through the datagrid manual and it is still fuzzy on how to get data OUT of the datagrid to do the calculations and then place the answers back INTO the datagrid. Any examples on how to this available? Thanks _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From andre at andregarzia.com Thu Jun 2 11:28:36 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 2 Jun 2011 12:28:36 -0300 Subject: How to obtain browser version in web app? In-Reply-To: <4DE74718.5050905@harbourhosting.co.uk> References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> <4DE744F6.9040509@harbourhosting.co.uk> <4DE74718.5050905@harbourhosting.co.uk> Message-ID: you can use javascript and do in browser command to get the browser version. On Thu, Jun 2, 2011 at 5:17 AM, Martin Baxter < mblivecode at harbourhosting.co.uk> wrote: > On second thoughts I should have had my coffee before replying as you > are talking about a stack not an irev script and my reply is irrelevant. > > In the revlet case I can't recall if there is a simple way off the top > of my head. It is possible, but awkward to get the user agent from > javascript and pass it to the revlet in its startup parameters. Not sure > if server variables are available inside the revlet itself. > > Sorry for the preceding noise > > Martin Baxter > > On 02/06/2011 09:08, Martin Baxter wrote: > > Hi Kee, > > > > You have to parse out the HTTP_USER_AGENT string yourself I think > > > > This old test script might get you started: > > > > > put $_SERVER["HTTP_USER_AGENT"] into tua > > put offset("MSIE",tua) into tie > > put offset("Safari",tua) into tmac > > put offset("Opera",tua) into topera > > put offset("Gecko/",tua) into tgecko > > > > put "

user agent: " & tua & "

" > > put "

offset of MSIE: " & tie & "

" > > put "

offset of Safari: " & tmac & "

" > > put "

offset of Opera: " & topera & "

" > > put "

offset of Gecko: " & tgecko & "

" > > ?> > > > > Sample output > > > > user agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) > > Gecko/20110420 Firefox/3.6.17 > > > > offset of MSIE: 0 > > > > offset of Safari: 0 > > > > offset of Opera: 0 > > > > offset of Gecko: 62 > > > > > > Probably needless to say that user agent strings aren't standardised. > > > > Martin Baxter > > > > > > > > On 01/06/2011 23:48, Kee Nethery wrote: > >> It is possible to get any information about the browser running a web > >> based livecode stack? If so, how? Didn't see anything in the > >> dictionary. > >> > >> For example, Safari 5.0.5 or IE 7.2 or anything like that? > >> > >> Thanks, Kee Nethery > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From andre at andregarzia.com Thu Jun 2 12:20:11 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 2 Jun 2011 13:20:11 -0300 Subject: How to obtain browser version in revWeb app? In-Reply-To: References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> <81D93D83-1126-444D-830D-B66DF4A2F1EB@kagi.com> Message-ID: what he said! On Wed, Jun 1, 2011 at 10:24 PM, Mike Bonner wrote: > You can do this. > > do "result = navigator.appName" in browser > > at which point the result will contain "Microsoft Internet Explorer" if > thats the browser in use. > > result = navigator.userAgent returns.. > ; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR > 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) > for the version of IE i'm using. > > there is also "result = navigator appVersion which for me returns.. > 5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET > CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; > .NET4.0C; .NET4.0E) > > Didn't test with firefox, didn't test with chrome since the plugin doesn't > work there for me. I'm sure there are quite a few other useful items that > can be queried this way. > > On Wed, Jun 1, 2011 at 6:49 PM, Kee Nethery wrote: > > > I see HTTP stuff in the dictionary for talking to a server and getting > web > > pages. I don't see a way to query revWeb to ask it what browser it is > > running in. > > > > Kee > > > > > > > > On Jun 1, 2011, at 4:46 PM, Bob Sneidar wrote: > > > > > I think it's an http thing. > > > > > > Bob > > > > > > > > > On Jun 1, 2011, at 3:48 PM, Kee Nethery wrote: > > > > > >> It is possible to get any information about the browser running a web > > based livecode stack? If so, how? Didn't see anything in the dictionary. > > >> > > >> For example, Safari 5.0.5 or IE 7.2 or anything like that? > > >> > > >> Thanks, Kee Nethery > > >> _______________________________________________ > > >> use-livecode mailing list > > >> use-livecode at lists.runrev.com > > >> Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > _______________________________________________ > > > use-livecode mailing list > > > use-livecode at lists.runrev.com > > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > > > > > ------------------------------------------------- > > I check email roughly 2 to 3 times per day. > > Kagi main office: +1 (510) 550-1336 > > > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From bobs at twft.com Thu Jun 2 12:21:45 2011 From: bobs at twft.com (Bob Sneidar) Date: Thu, 2 Jun 2011 09:21:45 -0700 Subject: Datagrids & arrays In-Reply-To: <8CDEF3A693F7805-23BC-23B43@webmail-d163.sysops.aol.com> References: <8CDEF3A693F7805-23BC-23B43@webmail-d163.sysops.aol.com> Message-ID: I agree that dgText is a good way to start, but sometimes parsing the data in a single variable can be more coding than working with arrays. If you have either of the two excellent debuggers (GLX2 and Remo come to mind) try getting the dgData, set a breakpoint, and then examine the structure of the array. You will see that the row key is a numerical one, and the column keys are the column names. Hence, if you had a datagrid called "dgNumbers" with three columns, numberOne, numberTwo and numberThree, you would do: put the dgData of group "dgNumbers" into aNumbers now you could say: put aNumbers[1]["numberOne"] + aNumbers[1]["numberTwo"] into aNumbers[1]["numberThree"] set the dgData of group "dgNumbers" to aNumbers Voila! No text parsing to muck up the code and cloud the issue. Even cleaner than this, you can get a single row from a datagrid: put the dgDataOfIndex[1] of group "dgNumbers" into aRecord put aRecord["numberOne"] + aRecord["numberTwo"] into aRecord["numberThree"] set the dgDataOfIndex[1] of group "dgNumbers" to aRecord Much simpler than scads of text parsing and you can be sure of the results. Be sure to check that the values are actually numbers before adding them unless you are absolutely sure about the state of the data. if aRecord["numberOne"] & aRecord["numberTwo"] is a number then... else... Bob On Jun 2, 2011, at 5:47 AM, dunbarx at aol.com wrote: > Use the dgText property. You can operate on this data in a script, and then reset. > > > Craig Newman > > > > > > -----Original Message----- > From: Van Brollini > To: use-livecode at lists.runrev.com > Sent: Thu, Jun 2, 2011 5:26 am > Subject: Datagrids & arrays > > > I have a datagrid with 1250 rows and 28 columns. > The first 13 columns are data to be operated on. The last 15 columns are where > the calculations are to be placed. > > I have gone through the datagrid manual and it is still fuzzy on how to get data > OUT of the datagrid to do the calculations and then place the answers back INTO > the datagrid. > > Any examples on how to this available? > > Thanks > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From kee at kagi.com Thu Jun 2 12:39:48 2011 From: kee at kagi.com (Kee Nethery) Date: Thu, 2 Jun 2011 09:39:48 -0700 Subject: How to obtain browser version in revWeb app? In-Reply-To: References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> <81D93D83-1126-444D-830D-B66DF4A2F1EB@kagi.com> Message-ID: way cool! Thanks, kee On Jun 1, 2011, at 6:24 PM, Mike Bonner wrote: > You can do this. > > do "result = navigator.appName" in browser > > at which point the result will contain "Microsoft Internet Explorer" if > thats the browser in use. > > result = navigator.userAgent returns.. > ; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR > 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E) > for the version of IE i'm using. > > there is also "result = navigator appVersion which for me returns.. > 5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET > CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; > .NET4.0C; .NET4.0E) > > Didn't test with firefox, didn't test with chrome since the plugin doesn't > work there for me. I'm sure there are quite a few other useful items that > can be queried this way. > > On Wed, Jun 1, 2011 at 6:49 PM, Kee Nethery wrote: > >> I see HTTP stuff in the dictionary for talking to a server and getting web >> pages. I don't see a way to query revWeb to ask it what browser it is >> running in. >> >> Kee >> >> >> >> On Jun 1, 2011, at 4:46 PM, Bob Sneidar wrote: >> >>> I think it's an http thing. >>> >>> Bob >>> >>> >>> On Jun 1, 2011, at 3:48 PM, Kee Nethery wrote: >>> >>>> It is possible to get any information about the browser running a web >> based livecode stack? If so, how? Didn't see anything in the dictionary. >>>> >>>> For example, Safari 5.0.5 or IE 7.2 or anything like that? >>>> >>>> Thanks, Kee Nethery >>>> _______________________________________________ >>>> use-livecode mailing list >>>> use-livecode at lists.runrev.com >>>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> >> >> ------------------------------------------------- >> I check email roughly 2 to 3 times per day. >> Kagi main office: +1 (510) 550-1336 >> >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ------------------------------------------------- I check email roughly 2 to 3 times per day. Kagi main office: +1 (510) 550-1336 From warrenkuhl at gmail.com Thu Jun 2 14:09:13 2011 From: warrenkuhl at gmail.com (Warren Kuhl) Date: Thu, 2 Jun 2011 13:09:13 -0500 Subject: CloseCard Handler Message-ID: When the user closes the application, I have a check in place within the on closecard handler to see if they saved the document. If they didn't save the document, I give the user to option to save, don't save or cancel. On the cancel, I just want the application to stay open. Within the on closecard handler, I have a exit closecard command when the user selects cancel. The application stil closes. Is there a way to bypass the close at this point? If not, how can I get around this if the user closes the application by closing the window? Thanks, Warren From ambassador at fourthworld.com Thu Jun 2 14:32:47 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 02 Jun 2011 11:32:47 -0700 Subject: CloseCard Handler In-Reply-To: References: Message-ID: <4DE7D74F.1090300@fourthworld.com> Warren Kuhl wrote: > When the user closes the application, I have a check in place within > the on closecard handler to see if they saved the document. If they > didn't save the document, I give the user to option to save, don't > save or cancel. On the cancel, I just want the application to stay > open. Within the on closecard handler, I have a exit closecard > command when the user selects cancel. The application stil closes. > > Is there a way to bypass the close at this point? If not, how can I > get around this if the user closes the application by closing the > window? The message you're looking for is closeStackRequest. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From jperryl at ecs.fullerton.edu Thu Jun 2 14:35:34 2011 From: jperryl at ecs.fullerton.edu (Judy Perry) Date: Thu, 2 Jun 2011 11:35:34 -0700 (PDT) Subject: [ANN] sunnYmidi: Script your sounds In-Reply-To: <4DE712E5.4090004@hyperactivesw.com> References: <4DE712E5.4090004@hyperactivesw.com> Message-ID: Thanks for the heads-up, Jacque. Somehow I missed this! Judy On Wed, 1 Jun 2011, J. Landman Gay wrote: > On 6/1/11 3:15 AM, Thierry Douez wrote: >> Hi all, >> >> I am pleased to announce SunnYmidi. >> >> SunnYmidi is a simple and powerful tool >> to help LiveCode Users add sounds to their stack. > > I've seen this and it is awesome. Fast, responsive, and pretty much > everything you'll need for on-the-fly sound creation. For those who want > HC-style note playback, this is the ticket. (Judy, check it out.) But it does > much more than that. Really nice job. From warrenkuhl at gmail.com Thu Jun 2 14:35:23 2011 From: warrenkuhl at gmail.com (Warren Kuhl) Date: Thu, 2 Jun 2011 13:35:23 -0500 Subject: CloseCard Handler In-Reply-To: <4DE7D74F.1090300@fourthworld.com> References: <4DE7D74F.1090300@fourthworld.com> Message-ID: Richard, Thanks...I will check it out. I never saw that one...but it makes sense. Appreciate your help! Warren On Thu, Jun 2, 2011 at 1:32 PM, Richard Gaskin wrote: > Warren Kuhl wrote: > >> When the user closes the application, I have a check in place within >> the on closecard handler to see if they saved the document. ?If they >> didn't save the document, I give the user to option to save, don't >> save or cancel. ?On the cancel, I just want the application to stay >> open. ?Within the on closecard handler, I have a exit closecard >> command when the user selects cancel. ?The application stil closes. >> >> Is there a way to bypass the close at this point? ?If not, how can I >> get around this if the user closes the application by closing the >> window? > > The message you're looking for is closeStackRequest. > > > -- > ?Richard Gaskin > ?Fourth World > ?LiveCode training and consulting: http://www.fourthworld.com > ?Webzine for LiveCode developers: http://www.LiveCodeJournal.com > ?LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From todd at geistinteractive.com Thu Jun 2 14:53:38 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 2 Jun 2011 11:53:38 -0700 Subject: How to to ell if a stack is loaded as a plugin Message-ID: Hello, I am looking for a good way to determine an open stack is a plugin. Right now I am just checking to see if the folder the Stack is in is called plugin. This sort of works, but If a stack happens to be in a folder that is named plugins, but I opened normally (ie not through the plugin menu) then this test would be wrong. In fact I think any test based on the directory wouldn't be so good. There would always be the chance that you opened through the file browser. Is there a function that returns the list of plugins currently opened? Thanks Todd Todd Geist ------------------------------ geist interactive 805-419-9382 From bvlahos at mac.com Thu Jun 2 15:33:42 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Thu, 02 Jun 2011 12:33:42 -0700 Subject: Drag a window without a title bar Message-ID: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> I have a stack that uses the windowshape property so it no longer has the title bar. What is the handler I should use to allow the user to drag the stack around? I have a background image that the user could click and drag for moving the window. Thanks, Bill Vlahos From ambassador at fourthworld.com Thu Jun 2 15:36:33 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 02 Jun 2011 12:36:33 -0700 Subject: How to to ell if a stack is loaded as a plugin In-Reply-To: References: Message-ID: <4DE7E641.3030603@fourthworld.com> Todd Geist wrote: > I am looking for a good way to determine an open stack is a plugin. Right > now I am just checking to see if the folder the Stack is in is called > plugin. This sort of works, but If a stack happens to be in a folder that > is named plugins, but I opened normally (ie not through the plugin menu) > then this test would be wrong. > > In fact I think any test based on the directory wouldn't be so good. There > would always be the chance that you opened through the file browser. > > Is there a function that returns the list of plugins currently opened? A plugin is just a stack that can be conveniently opened by placing it in the Plugins folder. If you take it out of the folder, that distinction is lost. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From martyknapp at comcast.net Thu Jun 2 15:43:26 2011 From: martyknapp at comcast.net (Marty Knapp) Date: Thu, 02 Jun 2011 12:43:26 -0700 Subject: Drag a window without a title bar In-Reply-To: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> References: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> Message-ID: <4DE7E7DE.3070101@comcast.net> Hey Bill, I use the following - probably gleaned from Scott Rossi. Put it in the stack or card script: local allowDrag on mouseEnter put "" into allowDrag end mouseEnter on mouseDown if word 1 of the target = "card" then put mouseLoc() into allowDrag end mouseDown on mouseMove X,Y if allowDrag = "" then exit mouseMove set topLeft of this stack to globalLoc(X - item 1 of allowDrag & "," & Y - item 2 of allowDrag) end mouseMove on mouseUp put "" into allowDrag end mouseUp on mouseRelease put "" into allowDrag end mouseRelease Marty Knapp > I have a stack that uses the windowshape property so it no longer has the title bar. What is the handler I should use to allow the user to drag the stack around? I have a background image that the user could click and drag for moving the window. > > Thanks, > Bill Vlahos > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From dixonja at hotmail.co.uk Thu Jun 2 15:43:30 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Thu, 2 Jun 2011 20:43:30 +0100 Subject: Drag a window without a title bar In-Reply-To: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> References: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> Message-ID: Hi.. Would this help you... on mouseDown -- place the window into the MacOS X dock if the optionKey is "down" then set the iconic of this stack to true exit mouseDown end if -- find the position of the window and the mouse put (item 1 of the loc of this stack) - (item 1 of globalLoc(the mouseLoc)) into Hdiff put (item 2 of the loc of this stack) - (item 2 of globalLoc(the mouseLoc)) into Vdiff -- set the position of the window relative to where the mouse has been dragged repeat until the mouse is "up" set the loc of this stack to (item 1 of globalLoc(the mouseLoc) + Hdiff),(item 2 of globalLoc(the mouseLoc) + Vdiff) end repeat end mouseDown On 2 Jun 2011, at 20:33, Bill Vlahos wrote: > I have a stack that uses the windowshape property so it no longer has the title bar. What is the handler I should use to allow the user to drag the stack around? I have a background image that the user could click and drag for moving the window. > > Thanks, > Bill Vlahos > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From m.schonewille at economy-x-talk.com Thu Jun 2 16:22:59 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 2 Jun 2011 22:22:59 +0200 Subject: Drag a window without a title bar In-Reply-To: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> References: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> Message-ID: <5E0457F7-BA03-4C0A-977E-F7C4A49FDAD0@economy-x-talk.com> Bill, here's mine... on mouseDown if "button" is not in the name of the target then grabWindow else pass mouseDown end mouseDown on grabWindow if the platform is "MacOS" and (the decorations of the \ defaultStack contains "title" or the decorations of the \ defaultStack is "default") then put 22 into myMenuCorrection else put 0 into myMenuCorrection end if put "10,10,310,310" into myRect add myMenuCorrection to item 2 of myRect lock messages put (trunc(the width of this window/2) - the mouseH) into difH put (trunc(the height of this window/2) - the mouseV) into difV repeat until the mouse is up put the loc of this window into loc1 put the screenMouseLoc into loc2 add difH to item 1 of loc2 add (difV + myMenuCorrection) to item 2 of loc2 -- add (difV ) to item 2 of loc2 if loc1 is not loc2 then set the loc of this window to loc2 end repeat unlock messages end grabWindow You may want to adjust the mouseDown handler. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 2 jun 2011, at 21:33, Bill Vlahos wrote: > I have a stack that uses the windowshape property so it no longer has the title bar. What is the handler I should use to allow the user to drag the stack around? I have a background image that the user could click and drag for moving the window. > > Thanks, > Bill Vlahos From m.schonewille at economy-x-talk.com Thu Jun 2 16:24:46 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Thu, 2 Jun 2011 22:24:46 +0200 Subject: Drag a window without a title bar In-Reply-To: <4DE7E7DE.3070101@comcast.net> References: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> <4DE7E7DE.3070101@comcast.net> Message-ID: Hi Marty, The problem with your solution is that there is a lag between the window location and the mouseLoc. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 2 jun 2011, at 21:43, Marty Knapp wrote: > Hey Bill, > > I use the following - probably gleaned from Scott Rossi. Put it in the stack or card script: > > local allowDrag > on mouseEnter > put "" into allowDrag > end mouseEnter > > on mouseDown > if word 1 of the target = "card" then put mouseLoc() into allowDrag > end mouseDown > > on mouseMove X,Y > if allowDrag = "" then exit mouseMove > set topLeft of this stack to globalLoc(X - item 1 of allowDrag & "," & Y - item 2 of allowDrag) > end mouseMove > > on mouseUp > put "" into allowDrag > end mouseUp > > on mouseRelease > put "" into allowDrag > end mouseRelease > > > Marty Knapp From kray at sonsothunder.com Thu Jun 2 16:29:33 2011 From: kray at sonsothunder.com (Ken Ray) Date: Thu, 02 Jun 2011 15:29:33 -0500 Subject: How to to ell if a stack is loaded as a plugin In-Reply-To: <4DE7E641.3030603@fourthworld.com> Message-ID: >> In fact I think any test based on the directory wouldn't be so good. There >> would always be the chance that you opened through the file browser. > > A plugin is just a stack that can be conveniently opened by placing it > in the Plugins folder. > > If you take it out of the folder, that distinction is lost. So that means that your directory-based test is the way to go, something like: put revEnvironmentPluginsPath() into tPlugPath1 put revEnvironmentUserPlugsinPath() into tPlugPath2 put the fileName of the mainstack of into tFileName if (char 1 to length(tPlugPath1) of tFileName = tPlugPath1) or \ (char 1 to length(tPlugPath2) of tFileName = tPlugPath2) then -- it's a plugin else -- it isn't end if Hope this helps, Ken Ray Sons of Thunder Software, Inc. Email: kray at sonsothunder.com Web Site: http://www.sonsothunder.com/ From andre at andregarzia.com Thu Jun 2 16:52:34 2011 From: andre at andregarzia.com (Andre Garzia) Date: Thu, 2 Jun 2011 17:52:34 -0300 Subject: How to to ell if a stack is loaded as a plugin In-Reply-To: References: <4DE7E641.3030603@fourthworld.com> Message-ID: On Thu, Jun 2, 2011 at 5:29 PM, Ken Ray wrote: > > >> In fact I think any test based on the directory wouldn't be so good. > There > >> would always be the chance that you opened through the file browser. > > > > A plugin is just a stack that can be conveniently opened by placing it > > in the Plugins folder. > > > > If you take it out of the folder, that distinction is lost. > > So that means that your directory-based test is the way to go, something > like: > > put revEnvironmentPluginsPath() into tPlugPath1 > put revEnvironmentUserPlugsinPath() into tPlugPath2 > put the fileName of the mainstack of into tFileName > if (char 1 to length(tPlugPath1) of tFileName = tPlugPath1) or \ > (char 1 to length(tPlugPath2) of tFileName = tPlugPath2) then > -- it's a plugin > else > -- it isn't > end if > > I use something like that here and works great! The only way for this to fail is if a plugin loads another stack from elsewhere as a palette and this stack is outside both folders, such as a remote stack, but except for that it works great > Hope this helps, > > Ken Ray > Sons of Thunder Software, Inc. > Email: kray at sonsothunder.com > Web Site: http://www.sonsothunder.com/ > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From bvlahos at mac.com Thu Jun 2 17:36:40 2011 From: bvlahos at mac.com (Bill Vlahos) Date: Thu, 02 Jun 2011 14:36:40 -0700 Subject: Drag a window without a title bar In-Reply-To: <5E0457F7-BA03-4C0A-977E-F7C4A49FDAD0@economy-x-talk.com> References: <96CF8FBB-FFB4-4C29-B8EE-DC4E5C81F149@mac.com> <5E0457F7-BA03-4C0A-977E-F7C4A49FDAD0@economy-x-talk.com> Message-ID: <94C7DF05-5312-471E-9AFB-F0105D249433@mac.com> Mark, As Richard Gaskin would say, "It works a treat." Thank you, Bill Vlahos _________________ InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure. On Jun 2, 2011, at 1:22 PM, Mark Schonewille wrote: > Bill, > > here's mine... > > on mouseDown > if "button" is not in the name of the target then grabWindow > else pass mouseDown > end mouseDown > > on grabWindow > if the platform is "MacOS" and (the decorations of the \ > defaultStack contains "title" or the decorations of the \ > defaultStack is "default") then > put 22 into myMenuCorrection > else > put 0 into myMenuCorrection > end if > put "10,10,310,310" into myRect > add myMenuCorrection to item 2 of myRect > lock messages > put (trunc(the width of this window/2) - the mouseH) into difH > put (trunc(the height of this window/2) - the mouseV) into difV > repeat until the mouse is up > put the loc of this window into loc1 > put the screenMouseLoc into loc2 > add difH to item 1 of loc2 > add (difV + myMenuCorrection) to item 2 of loc2 > -- add (difV ) to item 2 of loc2 > if loc1 is not loc2 then set the loc of this window to loc2 > end repeat > unlock messages > end grabWindow > > You may want to adjust the mouseDown handler. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce > > On 2 jun 2011, at 21:33, Bill Vlahos wrote: > >> I have a stack that uses the windowshape property so it no longer has the title bar. What is the handler I should use to allow the user to drag the stack around? I have a background image that the user could click and drag for moving the window. >> >> Thanks, >> Bill Vlahos > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From todd at geistinteractive.com Thu Jun 2 18:02:55 2011 From: todd at geistinteractive.com (Todd Geist) Date: Thu, 2 Jun 2011 15:02:55 -0700 Subject: How to to ell if a stack is loaded as a plugin In-Reply-To: References: <4DE7E641.3030603@fourthworld.com> Message-ID: thanks guys! On Thu, Jun 2, 2011 at 1:52 PM, Andre Garzia wrote: > On Thu, Jun 2, 2011 at 5:29 PM, Ken Ray wrote: > > > > > >> In fact I think any test based on the directory wouldn't be so good. > > There > > >> would always be the chance that you opened through the file browser. > > > > > > A plugin is just a stack that can be conveniently opened by placing it > > > in the Plugins folder. > > > > > > If you take it out of the folder, that distinction is lost. > > > > So that means that your directory-based test is the way to go, something > > like: > > > > put revEnvironmentPluginsPath() into tPlugPath1 > > put revEnvironmentUserPlugsinPath() into tPlugPath2 > > put the fileName of the mainstack of into tFileName > > if (char 1 to length(tPlugPath1) of tFileName = tPlugPath1) or \ > > (char 1 to length(tPlugPath2) of tFileName = tPlugPath2) then > > -- it's a plugin > > else > > -- it isn't > > end if > > > > > I use something like that here and works great! The only way for this to > fail is if a plugin loads another stack from elsewhere as a palette and > this > stack is outside both folders, such as a remote stack, but except for that > it works great > > > > > Hope this helps, > > > > Ken Ray > > Sons of Thunder Software, Inc. > > Email: kray at sonsothunder.com > > Web Site: http://www.sonsothunder.com/ > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > http://www.andregarzia.com All We Do Is Code. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > Todd Geist ------------------------------ geist interactive 805-419-9382 From mwieder at ahsoftware.net Thu Jun 2 21:22:39 2011 From: mwieder at ahsoftware.net (Mark Wieder) Date: Thu, 2 Jun 2011 18:22:39 -0700 Subject: Linux Externals... In-Reply-To: References: Message-ID: <10578207890.20110602182239@ahsoftware.net> Andre- Wednesday, June 1, 2011, 12:28:31 PM, you wrote: > does anyone knows if the ExternalEnvironmentV3 modified for Linux available > at > http://www.runrev.com/developers/lessons-and-tutorials/tutorials/advanced-linux-externals/ > is > still working? I can't build an empty external or one of my previous > externals that used to work. Well, there are a few omissions and typos there. You'd be better off looking at the newsletter article. Other than that, yes, it's working for me in Fedora Core 13. http://runrev.com/newsletter/october/issue34/newsletter1.php -- -Mark Wieder mwieder at ahsoftware.net From slava.paperno at cornell.edu Fri Jun 3 00:55:58 2011 From: slava.paperno at cornell.edu (Slava Paperno) Date: Fri, 3 Jun 2011 00:55:58 -0400 Subject: resumeStack and revBrowser Message-ID: <001301cc21aa$8bd28b90$a377a2b0$@paperno@cornell.edu> As far as I can tell, when you have a revBrowser window on the screen, and you click in the revBrowser window, then click anywhere outside revBrowser, the stack receives the resumeStack message. Can someone confirm? I was using an "on resumeStack" handler to initialize things as I switch from Browse to Run, and receiving it as unexpected moments cost me some debugging time. What do you folks use for this purpose, i.e. when you click the Run button and want certain values to be reset to defaults? Thanks, Slava From slava at lexiconbridge.com Fri Jun 3 01:11:24 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Fri, 3 Jun 2011 01:11:24 -0400 Subject: revBrowser's htmltext property for Unicode text Message-ID: <001d01cc21ac$b25fb510$171f1f30$@com> When my revBrowser instance displays a UTF-8 Web page, and I look at the value returned by revBrowserGet(instanceID "htmltext"), I think all double-byte characters are replaced with question marks. I think the same is true of the revBrowser "selected" property. Could someone please confirm? I don't know enough to be certain, and this would make a difference in how I'll proceed with the project. Thanks, Slava From m.schonewille at economy-x-talk.com Fri Jun 3 03:45:30 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 3 Jun 2011 09:45:30 +0200 Subject: revBrowser's htmltext property for Unicode text In-Reply-To: <001d01cc21ac$b25fb510$171f1f30$@com> References: <001d01cc21ac$b25fb510$171f1f30$@com> Message-ID: <34C149CF-0A97-43E4-9909-1260D95A4D5C@economy-x-talk.com> Hi Slava, This can happen when a website uses (binary) unicode text instead of html encoded text. Externals can't pass binary data to the LiveCode engine. As a result, LC gets incorrectly encoded text and text that cannot be decoded is replaced with question marks. Sockets, however, can pass binary data. You could retrieve the data directly using the put URL command. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 3 jun 2011, at 07:11, Slava Paperno wrote: > When my revBrowser instance displays a UTF-8 Web page, and I look at the > value returned by revBrowserGet(instanceID "htmltext"), I think all > double-byte characters are replaced with question marks. I think the same is > true of the revBrowser "selected" property. > > Could someone please confirm? I don't know enough to be certain, and this > would make a difference in how I'll proceed with the project. > > Thanks, > > Slava > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From m.schonewille at economy-x-talk.com Fri Jun 3 03:48:55 2011 From: m.schonewille at economy-x-talk.com (Mark Schonewille) Date: Fri, 3 Jun 2011 09:48:55 +0200 Subject: resumeStack and revBrowser In-Reply-To: <001301cc21aa$8bd28b90$a377a2b0$@paperno@cornell.edu> References: <001301cc21aa$8bd28b90$a377a2b0$@paperno@cornell.edu> Message-ID: Hi Slava, You could pass the message if the stack is already in front: on resumeStack if the short name of me is line 1 of the openStacks then pass resumeStack else -- do what you want end if end resumeStack -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 3 jun 2011, at 06:55, Slava Paperno wrote: > As far as I can tell, when you have a revBrowser window on the screen, and > you click in the revBrowser window, then click anywhere outside revBrowser, > the stack receives the resumeStack message. Can someone confirm? > > I was using an "on resumeStack" handler to initialize things as I switch > from Browse to Run, and receiving it as unexpected moments cost me some > debugging time. What do you folks use for this purpose, i.e. when you click > the Run button and want certain values to be reset to defaults? > > Thanks, > > Slava From roger.e.eller at sealedair.com Fri Jun 3 07:45:55 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 3 Jun 2011 07:45:55 -0400 Subject: [mobile:Android] mobileSetAllowedOrientations gives error Message-ID: What is wrong with my syntax? I have this in my openStack handler. put mobileSetAllowedOrientations("landscape right") or put mobileSetAllowedOrientations("portrait, portrait upside down, landscape left, landscape right") I get this: stack "MyFirstAndroidApp": execution error at line 26 (Function: error in function handler) near "mobileSetAllowedOrientations", char 8 ?Roger From bonnmike at gmail.com Fri Jun 3 08:36:13 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 3 Jun 2011 06:36:13 -0600 Subject: revBrowser's htmltext property for Unicode text In-Reply-To: <34C149CF-0A97-43E4-9909-1260D95A4D5C@economy-x-talk.com> References: <001d01cc21ac$b25fb510$171f1f30$@com> <34C149CF-0A97-43E4-9909-1260D95A4D5C@economy-x-talk.com> Message-ID: Another option you could try is something like the following *-- uses javascript to place the body of the current page into the tText variable. * *put revBrowserExecuteScript(sBrowserId,"result=document.body.innerHTML") into tText* and see if javascript sets the result correctly so you can use the text. On Fri, Jun 3, 2011 at 1:45 AM, Mark Schonewille < m.schonewille at economy-x-talk.com> wrote: > Hi Slava, > > This can happen when a website uses (binary) unicode text instead of html > encoded text. Externals can't pass binary data to the LiveCode engine. As a > result, LC gets incorrectly encoded text and text that cannot be decoded is > replaced with question marks. > > Sockets, however, can pass binary data. You could retrieve the data > directly using the put URL command. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > New: Download the Installer Maker Plugin 1.6 for LiveCode here > http://qery.us/ce > > On 3 jun 2011, at 07:11, Slava Paperno wrote: > > > When my revBrowser instance displays a UTF-8 Web page, and I look at the > > value returned by revBrowserGet(instanceID "htmltext"), I think all > > double-byte characters are replaced with question marks. I think the same > is > > true of the revBrowser "selected" property. > > > > Could someone please confirm? I don't know enough to be certain, and this > > would make a difference in how I'll proceed with the project. > > > > Thanks, > > > > Slava > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bonnmike at gmail.com Fri Jun 3 08:48:11 2011 From: bonnmike at gmail.com (Mike Bonner) Date: Fri, 3 Jun 2011 06:48:11 -0600 Subject: revBrowser's htmltext property for Unicode text In-Reply-To: References: <001d01cc21ac$b25fb510$171f1f30$@com> <34C149CF-0A97-43E4-9909-1260D95A4D5C@economy-x-talk.com> Message-ID: Nevermind, just tried it, doesn't work correctly. innerText doesn't work either. On Fri, Jun 3, 2011 at 6:36 AM, Mike Bonner wrote: > Another option you could try is something like the following > > *-- uses javascript to place the body of the current page into the tText > variable. * > *put revBrowserExecuteScript(sBrowserId,"result=document.body.innerHTML") > into tText* > > and see if javascript sets the result correctly so you can use the text. > > On Fri, Jun 3, 2011 at 1:45 AM, Mark Schonewille < > m.schonewille at economy-x-talk.com> wrote: > >> Hi Slava, >> >> This can happen when a website uses (binary) unicode text instead of html >> encoded text. Externals can't pass binary data to the LiveCode engine. As a >> result, LC gets incorrectly encoded text and text that cannot be decoded is >> replaced with question marks. >> >> Sockets, however, can pass binary data. You could retrieve the data >> directly using the put URL command. >> >> -- >> Best regards, >> >> Mark Schonewille >> >> Economy-x-Talk Consulting and Software Engineering >> Homepage: http://economy-x-talk.com >> Twitter: http://twitter.com/xtalkprogrammer >> KvK: 50277553 >> >> New: Download the Installer Maker Plugin 1.6 for LiveCode here >> http://qery.us/ce >> >> On 3 jun 2011, at 07:11, Slava Paperno wrote: >> >> > When my revBrowser instance displays a UTF-8 Web page, and I look at the >> > value returned by revBrowserGet(instanceID "htmltext"), I think all >> > double-byte characters are replaced with question marks. I think the >> same is >> > true of the revBrowser "selected" property. >> > >> > Could someone please confirm? I don't know enough to be certain, and >> this >> > would make a difference in how I'll proceed with the project. >> > >> > Thanks, >> > >> > Slava >> > >> > >> > >> > _______________________________________________ >> > use-livecode mailing list >> > use-livecode at lists.runrev.com >> > Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> > http://lists.runrev.com/mailman/listinfo/use-livecode >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > From coiin at verizon.net Fri Jun 3 09:06:56 2011 From: coiin at verizon.net (Colin Holgate) Date: Fri, 03 Jun 2011 09:06:56 -0400 Subject: [mobile:Android] mobileSetAllowedOrientations gives error In-Reply-To: References: Message-ID: It looks different to the syntax Jacque gave you. She wrote: I had the same issue until I remembered to set the allowed orientations in preOpenStack: mobileSetAllowedOrientations "portrait,portrait upside down,landscape left,landscape right" On Jun 3, 2011, at 7:45 AM, Roger Eller wrote: > What is wrong with my syntax? I have this in my openStack handler. > > put mobileSetAllowedOrientations("landscape right") > or > put mobileSetAllowedOrientations("portrait, portrait upside down, landscape > left, landscape right") From roger.e.eller at sealedair.com Fri Jun 3 09:19:06 2011 From: roger.e.eller at sealedair.com (Roger Eller) Date: Fri, 3 Jun 2011 09:19:06 -0400 Subject: [mobile:Android] mobileSetAllowedOrientations gives error In-Reply-To: References: Message-ID: On Fri, Jun 3, 2011 at 9:06 AM, Colin Holgate wrote: > It looks different to the syntax Jacque gave you. She wrote: > > I had the same issue until I remembered to set the allowed orientations in preOpenStack: > mobileSetAllowedOrientations "portrait,portrait upside down,landscape left,landscape right" > > > > On Jun 3, 2011, at 7:45 AM, Roger Eller wrote: > >> What is wrong with my syntax? ?I have this in my openStack handler. >> >> put mobileSetAllowedOrientations("landscape right") >> or >> put mobileSetAllowedOrientations("portrait, portrait upside down, landscape >> left, landscape right") > It errors either way for me, with or without (). I even moved it into preOpenStack instead of openStack. Strangely, it still seems to enable the rotation of the screen while complaining in the IDE. ~Roger From form at nonsanity.com Fri Jun 3 11:10:05 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 3 Jun 2011 11:10:05 -0400 Subject: [mobile:Android] mobileSetAllowedOrientations gives error In-Reply-To: References: Message-ID: Am I wrong in thinking this command doesn't exist unless the stack is running in a mobile environment? In other words... on preOpenStack if the environment is "mobile" then mobileSetAllowedOrientations "portrait" end if end preOpenStack ...Will prevent errors when running in the IDE on Windows or Mac, but will limit the orientations to portrait-only when running on iOS or Android..? Personally, I'd prefer the language to skip over such commands gracefully instead of crashing the script when the environment is wrong. Otherwise the programmer has to encase every such command in an environment check. Ugly... ~ Chris Innanen ~ Nonsanity On Fri, Jun 3, 2011 at 9:19 AM, Roger Eller wrote: > On Fri, Jun 3, 2011 at 9:06 AM, Colin Holgate wrote: > > It looks different to the syntax Jacque gave you. She wrote: > > > > I had the same issue until I remembered to set the allowed orientations > in preOpenStack: > > mobileSetAllowedOrientations "portrait,portrait upside down,landscape > left,landscape right" > > > > > > > > On Jun 3, 2011, at 7:45 AM, Roger Eller wrote: > > > >> What is wrong with my syntax? I have this in my openStack handler. > >> > >> put mobileSetAllowedOrientations("landscape right") > >> or > >> put mobileSetAllowedOrientations("portrait, portrait upside down, > landscape > >> left, landscape right") > > > > It errors either way for me, with or without (). I even moved it into > preOpenStack instead of openStack. > Strangely, it still seems to enable the rotation of the screen while > complaining in the IDE. > > ~Roger > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From slava at lexiconbridge.com Fri Jun 3 11:19:37 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Fri, 3 Jun 2011 11:19:37 -0400 Subject: revBrowser's htmltext property for Unicode text In-Reply-To: References: <001d01cc21ac$b25fb510$171f1f30$@com> <34C149CF-0A97-43E4-9909-1260D95A4D5C@economy-x-talk.com> Message-ID: <009601cc2201$aa7185e0$ff5491a0$@lexiconbridge.com> Thanks for playing with this, Mike. revBrowserCallScript(browserID, JSFunctionName()) also brings question marks for the double-byte characters that are returned by JSFunctionName(). I don't understand what you mean by the Web site using "(binary) unicode text instead of html encoded text." I thought the browser always receives text, not binary data, for the HTML source of the Web page to be rendered. This is certainly the case when the charset in the meta tag is defined as UTF-8. In my case this is not relevant because no Web server is involved: I assign UTF-8 encoded text to the htmltext property of revBrowser, and revBrowser renders it beautifully, including CSS styles and JS functionality. So it can receive UTF-8 data, but it seems that we have not found a way for revBrowser to send double-byte text back to the stack. I'll wait another day and if nothing new transpires, I'll write to Kevin. There was an inconclusive discussion of Unicode and revBrowser on the Externals forum last November, started by Bangkok, where two opposing opinions were expressed about Unicode and revBrowser. It would be useful to have a definitive answer about sending UTF-8 from the browser to the stack. When the data comes from a Web server, I suppose the issue may be less critical because, as you said, the PUT command can be used to retrieve the HTML source. If a server-side CGI is involved in creating the page (e.g., when some data is retrieved from a database), the PUT command should get the same data as the revBrowser instance, right? If the answer were No, this would be a serious security issue: a visitor to the site is not supposed to be able to retrieve the source of a CGI script from a Web server. The data may also be changed by the user in the browser, through some user actions, like filling out a form. Cheers, Slava > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] On Behalf Of Mike Bonner > Sent: Friday, June 03, 2011 8:48 AM > To: How to use LiveCode > Subject: Re: revBrowser's htmltext property for Unicode text > > Nevermind, just tried it, doesn't work correctly. innerText doesn't work either. > > On Fri, Jun 3, 2011 at 6:36 AM, Mike Bonner wrote: > > > Another option you could try is something like the following > > > > *-- uses javascript to place the body of the current page into the tText > > variable. * > > *put > > revBrowserExecuteScript(sBrowserId,"result=document.body.innerHTML") > > into tText* > > > > and see if javascript sets the result correctly so you can use the text. > > > > On Fri, Jun 3, 2011 at 1:45 AM, Mark Schonewille < > > m.schonewille at economy-x-talk.com> wrote: > > > >> Hi Slava, > >> > >> This can happen when a website uses (binary) unicode text instead of > >> html encoded text. Externals can't pass binary data to the LiveCode > >> engine. As a result, LC gets incorrectly encoded text and text that > >> cannot be decoded is replaced with question marks. > >> > >> Sockets, however, can pass binary data. You could retrieve the data > >> directly using the put URL command. > >> > >> -- > >> Best regards, > >> > >> Mark Schonewille > >> > >> Economy-x-Talk Consulting and Software Engineering > >> Homepage: http://economy-x-talk.com > >> Twitter: http://twitter.com/xtalkprogrammer > >> KvK: 50277553 > >> > >> New: Download the Installer Maker Plugin 1.6 for LiveCode here > >> http://qery.us/ce > >> > >> On 3 jun 2011, at 07:11, Slava Paperno wrote: > >> > >> > When my revBrowser instance displays a UTF-8 Web page, and I look > >> > at the value returned by revBrowserGet(instanceID "htmltext"), I > >> > think all double-byte characters are replaced with question marks. > >> > I think the > >> same is > >> > true of the revBrowser "selected" property. > >> > > >> > Could someone please confirm? I don't know enough to be certain, > >> > and > >> this > >> > would make a difference in how I'll proceed with the project. > >> > > >> > Thanks, > >> > > >> > Slava > >> > > >> > > >> > > >> > _______________________________________________ > >> > use-livecode mailing list > >> > use-livecode at lists.runrev.com > >> > Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> > http://lists.runrev.com/mailman/listinfo/use-livecode > >> > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Fri Jun 3 12:02:10 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 03 Jun 2011 11:02:10 -0500 Subject: [mobile:Android] mobileSetAllowedOrientations gives error In-Reply-To: References: Message-ID: <4DE90582.7060506@hyperactivesw.com> On 6/3/11 10:10 AM, Nonsanity wrote: > Am I wrong in thinking this command doesn't exist unless the stack is > running in a mobile environment? In other words... > > on preOpenStack > if the environment is "mobile" then > mobileSetAllowedOrientations "portrait" > end if > end preOpenStack > > ...Will prevent errors when running in the IDE on Windows or Mac, but will > limit the orientations to portrait-only when running on iOS or Android..? Yes, I'm sure that's the problem. (Roger, don't use parens, it's a command.) > Personally, I'd prefer the language to skip over such commands gracefully > instead of crashing the script when the environment is wrong. Otherwise the > programmer has to encase every such command in an environment check. Agreed, it's a pain. It's a little quicker to write a custom function and call that, though not by much: function mob return the environment = "mobile" end mob Then all you have to write is: if mob() then... But still, we shouldn't have to. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Fri Jun 3 12:11:10 2011 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Fri, 03 Jun 2011 11:11:10 -0500 Subject: resumeStack and revBrowser In-Reply-To: <001301cc21aa$8bd28b90$a377a2b0$@paperno@cornell.edu> References: <001301cc21aa$8bd28b90$a377a2b0$@paperno@cornell.edu> Message-ID: <4DE9079E.203@hyperactivesw.com> On 6/2/11 11:55 PM, Slava Paperno wrote: > As far as I can tell, when you have a revBrowser window on the screen, and > you click in the revBrowser window, then click anywhere outside revBrowser, > the stack receives the resumeStack message. Can someone confirm? > > I was using an "on resumeStack" handler to initialize things as I switch > from Browse to Run, and receiving it as unexpected moments cost me some > debugging time. What do you folks use for this purpose, i.e. when you click > the Run button and want certain values to be reset to defaults? I've never needed to do that, but check out the "newTool" message. It is sent whenever you switch tools, and it should work better than a resumestack. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From henshaw at me.com Fri Jun 3 13:39:09 2011 From: henshaw at me.com (Andy Henshaw) Date: Fri, 03 Jun 2011 18:39:09 +0100 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: References: Message-ID: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if anyone wants a look, it uses the sqlite databases, datagrid, internet search, animation engine, charts engine and Scotts Rossis pie chart controls. Ive also used the iOS native text fields, iOS browser window (for the exercise and food input spinning wheel), iOS scrollers and network reachability so as a more 'utility' app rather than game style I think ive used most of the new toys currently at disposal! I know there has been a lot of topics on datagrids and scroller performance, so im leaving the app as 'free' in the App store for now so anyone wanting to compare the performance of the scrollers can see how it stacks up, I don't think its too bad in the end. There is still so much more I have to do with the App, iPad next, then localisation and if Ports come along Ill add a desktop sync, but as a starting point, and my first 'real' iOS app built with Livecode im quite pleased with it. Andy From davidocoker at gmail.com Fri Jun 3 13:49:26 2011 From: davidocoker at gmail.com (David C.) Date: Fri, 3 Jun 2011 12:49:26 -0500 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> Message-ID: Congrats Andy.... that really looks good! Unfortunately I am unable to try it for you since I'm still using my original iPhone which cannot be updated to iOS 4 specs. Drat, drat, drat! Best regards, David C On Fri, Jun 3, 2011 at 12:39 PM, Andy Henshaw wrote: > I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. > > The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) ?if anyone wants a look, ?it uses the sqlite databases, ?datagrid, internet search, animation engine, charts engine and Scotts ?Rossis pie chart controls. ?Ive also used the iOS native text fields, iOS browser window (for the exercise and food input spinning wheel), iOS scrollers and network reachability so as a more 'utility' app rather than game style I think ive used most of the new toys currently at disposal! > > I know there has been a lot of topics on datagrids and scroller performance, ?so im leaving the app as 'free' in the App store for now so anyone wanting to compare the performance of the scrollers can see how it stacks up, ?I don't think its too bad in the end. > > There is still so much more I have to do with the App, iPad next, ?then localisation and if Ports come along Ill add a desktop sync, ?but as a starting point, ?and my first 'real' iOS app built with Livecode im quite pleased with it. > > Andy > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Best regards, David C. From ambassador at fourthworld.com Fri Jun 3 14:09:03 2011 From: ambassador at fourthworld.com (Richard Gaskin) Date: Fri, 03 Jun 2011 11:09:03 -0700 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: References: Message-ID: <4DE9233F.7050708@fourthworld.com> David C. wrote: > Congrats Andy.... that really looks good! > Unfortunately I am unable to try it for you since I'm still using my > original iPhone which cannot be updated to iOS 4 specs. Drat, drat, > drat! Is that the F-word I hear, "fragmentation"? Golly, the way the lay press tells it that only happens on Linux and Android. :) -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv From richmondmathewson at gmail.com Fri Jun 3 14:34:31 2011 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 03 Jun 2011 21:34:31 +0300 Subject: Blend & Snapshot Message-ID: <4DE92937.1010902@gmail.com> I was messing around today with an imported image and Blends (15 minutes between classes), and found, to my chagrin (what a great word) that export snapshot from img "myImageWithBlend" to file "Crud.png" as PNG exported an image of the image (wow!) sans blend, and, if I grouped the image and did this: export snapshot from group "groupedBlendedImage" to file "Crud.png" as PNG again, the Blend did not "stick". ????? Richmond. From bobs at twft.com Fri Jun 3 14:36:55 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 3 Jun 2011 11:36:55 -0700 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> Message-ID: <1155C9A9-C03E-493B-8731-1B62D263C0BF@twft.com> I would put it up as a free trial that expires after a while, because once people have the free app, you cannot make them pay for it, and I think you will find that after the first surge of users, the subscribers will drop off pretty dramatically. If you ever expect to sell it, I would start that way right from the git go. People take offense at paying for something that yesterday they got for nothing. If you still intend to pursue the free model, then offer a scaled down one and call it "lite" with some of the really cool handy features people will want most in the "Pro" version. my 2? Bob On Jun 3, 2011, at 10:39 AM, Andy Henshaw wrote: > I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. > > The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if anyone wants a look, it uses the sqlite databases, datagrid, internet search, animation engine, charts engine and Scotts Rossis pie chart controls. Ive also used the iOS native text fields, iOS browser window (for the exercise and food input spinning wheel), iOS scrollers and network reachability so as a more 'utility' app rather than game style I think ive used most of the new toys currently at disposal! > > I know there has been a lot of topics on datagrids and scroller performance, so im leaving the app as 'free' in the App store for now so anyone wanting to compare the performance of the scrollers can see how it stacks up, I don't think its too bad in the end. > > There is still so much more I have to do with the App, iPad next, then localisation and if Ports come along Ill add a desktop sync, but as a starting point, and my first 'real' iOS app built with Livecode im quite pleased with it. > > Andy > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From davidocoker at gmail.com Fri Jun 3 14:37:23 2011 From: davidocoker at gmail.com (David C.) Date: Fri, 3 Jun 2011 13:37:23 -0500 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <4DE9233F.7050708@fourthworld.com> References: <4DE9233F.7050708@fourthworld.com> Message-ID: > Golly, the way the lay press tells it that only happens on Linux and > Android. ?:) Haven't you heard the rules, Richard? No shadow or doubt shall fall on any company named Apple or any product with an "i" prepended to the name. In my case, I probably wouldn't do the upgrade even if I could since I have the phone unlocked, jail-broken and running on a non-official carrier. ;-) Best regards, David C. From dixonja at hotmail.co.uk Fri Jun 3 14:39:11 2011 From: dixonja at hotmail.co.uk (John Dixon) Date: Fri, 3 Jun 2011 19:39:11 +0100 Subject: Blend & Snapshot In-Reply-To: <4DE92937.1010902@gmail.com> References: <4DE92937.1010902@gmail.com> Message-ID: Well I guess it beats smoking behind the cycle sheds... from the release notes export snapshot from [ rectangle rectangle of ] object [ ( with | without ) effects ] ? > Date: Fri, 3 Jun 2011 21:34:31 +0300 > From: richmondmathewson at gmail.com > To: use-livecode at lists.runrev.com > Subject: Blend & Snapshot > > I was messing around today with an imported image and Blends (15 minutes > between classes), and found, to my chagrin (what a great word) that > > export snapshot from img "myImageWithBlend" to file "Crud.png" as PNG > exported an image of the image (wow!) sans blend, > > and, if I grouped the image and did this: > export snapshot from group "groupedBlendedImage" to file "Crud.png" as PNG > again, the Blend did not "stick". > ????? > > Richmond. From richmondmathewson at gmail.com Fri Jun 3 14:39:32 2011 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 03 Jun 2011 21:39:32 +0300 Subject: Unicode textFields in Linux & vanishing text Message-ID: <4DE92A64.10108@gmail.com> I have found that if I set up a textFld called, say "txtfld" and do this: set the useUnicode to true set the unicodetext of fld "txtfld" to (numToChar(2340) & numToChar(2341)) the required chars are entered but cannot be seen; if I then do a RETURN key press at the start of the string followed by a forward DELETE the text becomes visible . . . HOWEVER, that is not much good in an application that demands that the unicodeText be instantly visible. ----------------------- This is on Linux ONLY ( 4.00 and 4.5-dp-4) ----------------------- From richmondmathewson at gmail.com Fri Jun 3 14:46:39 2011 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 03 Jun 2011 21:46:39 +0300 Subject: Blend & Snapshot In-Reply-To: References: <4DE92937.1010902@gmail.com> Message-ID: <4DE92C0F.1070609@gmail.com> On 06/03/2011 09:39 PM, John Dixon wrote: > > Well I guess it beats smoking behind the cycle sheds... from the release notes > export snapshot from [ rectangle rectangle of ] object [ ( with | without ) effects ] ? As the teacher, smoking behind the bike sheds would be a bit infra dig . . . :) Also, at the "High" school next door (the Seamstresses' and Hairdressers' Grammar School) all the tarts and jocks smoke nonstop on the pavement/sidewalk right under the window of my school nonstop: unlike people of my generation they don't even make an effort to hide! Just to help you get the picture; remember Rikki Lake in "Hairspray", but at 17, not 12, multiplied by 25, chain-smoking outside and grinding the butts into the paving stones with their sequinned high-heels. Possibly you will find it easier to understand why I am fooling around with BLENDS in my break. >> Date: Fri, 3 Jun 2011 21:34:31 +0300 >> From: richmondmathewson at gmail.com >> To: use-livecode at lists.runrev.com >> Subject: Blend& Snapshot >> >> I was messing around today with an imported image and Blends (15 minutes >> between classes), and found, to my chagrin (what a great word) that >> >> export snapshot from img "myImageWithBlend" to file "Crud.png" as PNG >> exported an image of the image (wow!) sans blend, >> >> and, if I grouped the image and did this: >> export snapshot from group "groupedBlendedImage" to file "Crud.png" as PNG >> again, the Blend did not "stick". >> ????? >> >> Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From form at nonsanity.com Fri Jun 3 14:50:41 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 3 Jun 2011 14:50:41 -0400 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <1155C9A9-C03E-493B-8731-1B62D263C0BF@twft.com> References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> <1155C9A9-C03E-493B-8731-1B62D263C0BF@twft.com> Message-ID: If I recall correctly, Apple doesn't allow time-to-disable app limitations like so much shareware uses. If someone pays nothing for an app, they never will pay for it. You can make a new one with more features and a price - a "pro" version - but then you have to get users to switch to it. I'm probably going to go the free-for-a-limited-time route to get people using and recommending the app to others for free at first, then when usage goes up, turn on the price - which will have been mentioned in the description since day one. But I guess it really depends on whether "lite" and "pro" are possible, or if some other sort of in-app purchases can be used to finance the app... As I'll (hopefully) soon be putting my first app in the store, I'm all ears on other people's opinions. :) ~ Chris Innanen ~ Nonsanity P.s. My first-gen iPhone's inability to run iOS 4 isn't market fragmentation... It's obsolescence. *pats my new iPhone 4* On Fri, Jun 3, 2011 at 2:36 PM, Bob Sneidar wrote: > I would put it up as a free trial that expires after a while, because once > people have the free app, you cannot make them pay for it, and I think you > will find that after the first surge of users, the subscribers will drop off > pretty dramatically. > > If you ever expect to sell it, I would start that way right from the git > go. People take offense at paying for something that yesterday they got for > nothing. > > If you still intend to pursue the free model, then offer a scaled down one > and call it "lite" with some of the really cool handy features people will > want most in the "Pro" version. > > my 2? > > Bob > > > On Jun 3, 2011, at 10:39 AM, Andy Henshaw wrote: > > > I have just had my first Livecode iPhone app using externals (sqllite) > approved for the App Store. > > > > The App is 'Tracker2Go' ( > http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if > anyone wants a look, it uses the sqlite databases, datagrid, internet > search, animation engine, charts engine and Scotts Rossis pie chart > controls. Ive also used the iOS native text fields, iOS browser window (for > the exercise and food input spinning wheel), iOS scrollers and network > reachability so as a more 'utility' app rather than game style I think ive > used most of the new toys currently at disposal! > > > > I know there has been a lot of topics on datagrids and scroller > performance, so im leaving the app as 'free' in the App store for now so > anyone wanting to compare the performance of the scrollers can see how it > stacks up, I don't think its too bad in the end. > > > > There is still so much more I have to do with the App, iPad next, then > localisation and if Ports come along Ill add a desktop sync, but as a > starting point, and my first 'real' iOS app built with Livecode im quite > pleased with it. > > > > Andy > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobs at twft.com Fri Jun 3 14:53:15 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 3 Jun 2011 11:53:15 -0700 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: References: <4DE9233F.7050708@fourthworld.com> Message-ID: As do I, only jailbroken. I wanted the tethering, as I am grandfathered into their "unlimited" plan. It works like a charm! I can still sync all my music, photos, etc. I just cannot update the iPhone as it may make it unbootable, and may even brick it. Bob On Jun 3, 2011, at 11:37 AM, David C. wrote: >> Golly, the way the lay press tells it that only happens on Linux and >> Android. :) > > Haven't you heard the rules, Richard? > No shadow or doubt shall fall on any company named Apple or any > product with an "i" prepended to the name. > > In my case, I probably wouldn't do the upgrade even if I could since I > have the phone unlocked, jail-broken and running on a non-official > carrier. ;-) > > Best regards, > David C. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From form at nonsanity.com Fri Jun 3 14:54:44 2011 From: form at nonsanity.com (Nonsanity) Date: Fri, 3 Jun 2011 14:54:44 -0400 Subject: Blend & Snapshot In-Reply-To: <4DE92C0F.1070609@gmail.com> References: <4DE92937.1010902@gmail.com> <4DE92C0F.1070609@gmail.com> Message-ID: On Fri, Jun 3, 2011 at 2:46 PM, Richmond Mathewson < richmondmathewson at gmail.com> wrote: > Just to help you get the picture; remember Rikki Lake in "Hairspray", but > at 17, not 12, multiplied > by 25, chain-smoking outside and grinding the butts into the paving stones > with their sequinned > high-heels. > Do they break out in spontaneous musical numbers? I think even Livecode would take second place to that... :) ~ Chris Innanen ~ Nonsanity From bvg at mac.com Fri Jun 3 14:57:32 2011 From: bvg at mac.com (=?iso-8859-1?Q?Bj=F6rnke_von_Gierke?=) Date: Fri, 03 Jun 2011 20:57:32 +0200 Subject: [ANN] Live LiveCode code event #26 In-Reply-To: References: <6B865405-BBC0-491C-AD25-BFB1C85A2D58@mac.com> <7EC6A85B-DD6B-4138-A597-512A194F4453@mac.com> <89782C22-C6E3-4245-95D1-A48F69423753@mac.com> <061D9182-B34B-4ABB-A7D6-9C2D09DA8755@mac.com> <73F84954-890B-4627-859A-702C8054F13B@mac.com> <093DEF5E-6C0F-4924-A262-F6DBE748ED45@mac.com> <3FB852C9-5675-4A19-9506-543733BB2547@mac.com> <914DF999-596E-4023-A213-9469C6A69FA0@mac.com> <2B105965-FB27-41D0-B95F-1F4C84ADD53B@mac.com> Message-ID: Hi guys We're back for another Saturday event: Mark Schonewille will introduce you to way to extend LiveCode when LiveCode can't do it alone. He will explore the possibilities of "shell", "open process", "do as" and "launch program". http://livecode.tv/mark/ John Craig will also be back, and share with us some thoughts on how to use and create IDE Plugins in LiveCode, as well as an updated view on his MobGUI. http://livecode.tv/john/ Join us tomorrow, Saturday at 20:00 CET, on ChatRev ( http://bjoernke.com/chatrev/ ): Johannesburg 20:00 Santo Domingo 14:00 Seattle 11:00 Auckland 06:00 (Sun) Read up on back issues here: http://livecode.tv/ Cheers Bj?rnke -- official ChatRev page: http://bjoernke.com/chatrev Chat with other RunRev developers: go stack URL "http://bjoernke.com/chatrev/chatrev1.3b3.rev" From richmondmathewson at gmail.com Fri Jun 3 15:02:03 2011 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 03 Jun 2011 22:02:03 +0300 Subject: Blend & Snapshot In-Reply-To: References: <4DE92937.1010902@gmail.com> <4DE92C0F.1070609@gmail.com> Message-ID: <4DE92FAB.3090301@gmail.com> On 06/03/2011 09:54 PM, Nonsanity wrote: > On Fri, Jun 3, 2011 at 2:46 PM, Richmond Mathewson< > richmondmathewson at gmail.com> wrote: > >> Just to help you get the picture; remember Rikki Lake in "Hairspray", but >> at 17, not 12, multiplied >> by 25, chain-smoking outside and grinding the butts into the paving stones >> with their sequinned >> high-heels. >> > Do they break out in spontaneous musical numbers? I think even Livecode > would take second place to that... :) Synchronised Coughing! Most of these young "things" come out of school at break-time; chain-smoke while blethering non-stop on their mobile-phones AND having conversations with one another at the same time. If they could put their amazing ability to multitask to some constructive use they could go far. The Rikki Lake analogy was more in reference to their hairstyles (Plovdiv, Bulgaria is at the leading edge of a hair-hopper revival) than the rather catchy music of the film (one of my favourite bad movies, by the way). Come to think of it, the headmistress has more than a passing resemblance to Divine in his role as Rikki Lake's Mum. And, as Bulgaria is a deeply racially divided society I suppose "Tilted Acres" would go down rather well over here . . . :) > ~ Chris Innanen > ~ Nonsanity > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From toncardona at mac.com Fri Jun 3 15:13:47 2011 From: toncardona at mac.com (=?iso-8859-1?Q?Melit=F3n_Cardona_Torres?=) Date: Fri, 03 Jun 2011 21:13:47 +0200 Subject: Share revlets Message-ID: <001FC888-612C-4E65-80AC-3EA1384A6356@mac.com> How can I share revlets with other people? Could you indicate me where I can find concrete instructions? My security settings are right and I can see my revlets in my computer (they work perfectly) but when I share them with other people via MobileMe they can't access to them. Sorry to disturb and thanks in advance, Ton From slava at lexiconbridge.com Fri Jun 3 15:24:57 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Fri, 3 Jun 2011 15:24:57 -0400 Subject: Unicode textFields in Linux & vanishing text In-Reply-To: <4DE92A64.10108@gmail.com> References: <4DE92A64.10108@gmail.com> Message-ID: <001701cc2223$efe12050$cfa360f0$@com> I got an error message when I used your script verbatim, but when I removed the outer parentheses, I could see the two letters in the field, no problem. LC 4.6.1, Windows 7 64-bit. I don't know if they are the correct two letters, but you can check my screen shot at http://russian.cornell.edu/TwoChars.png Slava > -----Original Message----- > From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- > bounces at lists.runrev.com] On Behalf Of Richmond Mathewson > Sent: Friday, June 03, 2011 2:40 PM > To: How to use LiveCode > Subject: Unicode textFields in Linux & vanishing text > > I have found that if I set up a textFld called, say "txtfld" and do > this: > > set the useUnicode to true > set the unicodetext of fld "txtfld" to (numToChar(2340) & > numToChar(2341)) > > the required chars are entered but cannot be seen; > > if I then do a RETURN key press at the start of the string followed by > a > forward DELETE > the text becomes visible . . . > > HOWEVER, that is not much good in an application that demands that the > unicodeText be instantly > visible. > > ----------------------- > > This is on Linux ONLY ( 4.00 and 4.5-dp-4) > > ----------------------- > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Fri Jun 3 15:29:59 2011 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Fri, 03 Jun 2011 22:29:59 +0300 Subject: Unicode textFields in Linux & vanishing text In-Reply-To: <001701cc2223$efe12050$cfa360f0$@com> References: <4DE92A64.10108@gmail.com> <001701cc2223$efe12050$cfa360f0$@com> Message-ID: <4DE93637.5050706@gmail.com> On 06/03/2011 10:24 PM, Slava Paperno wrote: > I got an error message when I used your script verbatim, but when I removed > the outer parentheses, I could see the two letters in the field, no problem. > LC 4.6.1, Windows 7 64-bit. > > I don't know if they are the correct two letters, but you can check my > screen shot at http://russian.cornell.edu/TwoChars.png > ??????? ??????! Yes, those 2 Devanagari chars are the ones I used in my example; but that is beside the point: The chars are invisible regardless of which Unicode chars they are, AND this phenomenon happens, as I mentioned, specifically on Linux, NOT on Windows or Mac. > Slava > >> -----Original Message----- >> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode- >> bounces at lists.runrev.com] On Behalf Of Richmond Mathewson >> Sent: Friday, June 03, 2011 2:40 PM >> To: How to use LiveCode >> Subject: Unicode textFields in Linux& vanishing text >> >> I have found that if I set up a textFld called, say "txtfld" and do >> this: >> >> set the useUnicode to true >> set the unicodetext of fld "txtfld" to (numToChar(2340)& >> numToChar(2341)) >> >> the required chars are entered but cannot be seen; >> >> if I then do a RETURN key press at the start of the string followed by >> a >> forward DELETE >> the text becomes visible . . . >> >> HOWEVER, that is not much good in an application that demands that the >> unicodeText be instantly >> visible. >> >> ----------------------- >> >> This is on Linux ONLY ( 4.00 and 4.5-dp-4) >> >> ----------------------- >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From slava at lexiconbridge.com Fri Jun 3 15:46:52 2011 From: slava at lexiconbridge.com (Slava Paperno) Date: Fri, 3 Jun 2011 15:46:52 -0400 Subject: Unicode textFields in Linux & vanishing text In-Reply-To: <4DE93637.5050706@gmail.com> References: <4DE92A64.10108@gmail.com> <001701cc2223$efe12050$cfa360f0$@com> <4DE93637.5050706@gmail.com> Message-ID: <001801cc2226$ff91ab20$feb50160$@com> Something to do with byte order the processor expects? If you use a Hex editor/mode to open a text file containing the same characters, do you see anything useful there? > The chars are invisible regardless of which Unicode chars they are, AND > this phenomenon happens, > as I mentioned, specifically on Linux, NOT on Windows or Mac. From psahores at free.fr Fri Jun 3 16:00:03 2011 From: psahores at free.fr (Pierre Sahores) Date: Fri, 3 Jun 2011 22:00:03 +0200 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> Message-ID: Hi Andy, Tracker2Go looks very nice on my iPhone 3 GS. Congratulations for all the so fine GUI and local/networked app logic you sticked inside ! Kind regards, Le 3 juin 2011 ? 19:39, Andy Henshaw a ?crit : > I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. > > The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if anyone wants a look, it uses the sqlite databases, datagrid, internet search, animation engine, charts engine and Scotts Rossis pie chart controls. Ive also used the iOS native text fields, iOS browser window (for the exercise and food input spinning wheel), iOS scrollers and network reachability so as a more 'utility' app rather than game style I think ive used most of the new toys currently at disposal! > > I know there has been a lot of topics on datagrids and scroller performance, so im leaving the app as 'free' in the App store for now so anyone wanting to compare the performance of the scrollers can see how it stacks up, I don't think its too bad in the end. > > There is still so much more I have to do with the App, iPad next, then localisation and if Ports come along Ill add a desktop sync, but as a starting point, and my first 'real' iOS app built with Livecode im quite pleased with it. > > Andy > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Pierre Sahores mobile : (33) 6 03 95 77 70 www.woooooooords.com www.sahores-conseil.com From todd at geistinteractive.com Fri Jun 3 16:53:52 2011 From: todd at geistinteractive.com (Todd Geist) Date: Fri, 3 Jun 2011 13:53:52 -0700 Subject: Pretty Print arrays Message-ID: Hello Before I set out to re-invent the wheel. Does anyone have function to pretty print LiveCode arrays? Thanks Todd Todd Geist ------------------------------ geist interactive 805-419-9382 From andre at andregarzia.com Fri Jun 3 16:58:11 2011 From: andre at andregarzia.com (Andre Garzia) Date: Fri, 3 Jun 2011 17:58:11 -0300 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <4DE9233F.7050708@fourthworld.com> References: <4DE9233F.7050708@fourthworld.com> Message-ID: On Fri, Jun 3, 2011 at 3:09 PM, Richard Gaskin wrote: > David C. wrote: > >> Congrats Andy.... that really looks good! >> Unfortunately I am unable to try it for you since I'm still using my >> original iPhone which cannot be updated to iOS 4 specs. Drat, drat, >> drat! >> > > Is that the F-word I hear, "fragmentation"? > > Golly, the way the lay press tells it that only happens on Linux and > Android. :) > everybody knew me as an avid fan of apple products... these days, I don't want them anymore. I have an iPhone, Android and WebOS phones... much to my surprise, even though I have the flagship android phone out there (Nexus S), my personal phone turned out to be Palm Pre 2 running WebOS 2.1, the hardware is not on par with the nexus or the iphone 4 but the UX on WebOS is great and even if I am not able to develop with LiveCode for WebOS, I still use it. I just like the system. (but I am developing for iOS and android) > > -- > Richard Gaskin > Fourth World > LiveCode training and consulting: http://www.fourthworld.com > Webzine for LiveCode developers: http://www.LiveCodeJournal.com > LiveCode Journal blog: http://LiveCodejournal.com/blog.irv > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. From bobs at twft.com Fri Jun 3 17:04:46 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 3 Jun 2011 14:04:46 -0700 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> Message-ID: <973E9D04-A4D0-448C-A7CF-B8F9828B48B9@twft.com> I downloaded and am using the app as we speak. Very nicely done. If you have a Paypal account I will send you money for it. (ssshhhhh!!! Don't tell Apple!!) Bob On Jun 3, 2011, at 1:00 PM, Pierre Sahores wrote: > Hi Andy, > > Tracker2Go looks very nice on my iPhone 3 GS. Congratulations for all the so fine GUI and local/networked app logic you sticked inside ! > > Kind regards, > > Le 3 juin 2011 ? 19:39, Andy Henshaw a ?crit : > >> I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. >> >> The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if anyone wants a look, it uses the sqlite databases, datagrid, internet search, animation engine, charts engine and Scotts Rossis pie chart controls. Ive also used the iOS native text fields, iOS browser window (for the exercise and food input spinning wheel), iOS scrollers and network reachability so as a more 'utility' app rather than game style I think ive used most of the new toys currently at disposal! >> >> I know there has been a lot of topics on datagrids and scroller performance, so im leaving the app as 'free' in the App store for now so anyone wanting to compare the performance of the scrollers can see how it stacks up, I don't think its too bad in the end. >> >> There is still so much more I have to do with the App, iPad next, then localisation and if Ports come along Ill add a desktop sync, but as a starting point, and my first 'real' iOS app built with Livecode im quite pleased with it. >> >> Andy >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > -- > Pierre Sahores > mobile : (33) 6 03 95 77 70 > > www.woooooooords.com > www.sahores-conseil.com > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From pete at mollysrevenge.com Fri Jun 3 17:14:38 2011 From: pete at mollysrevenge.com (Pete) Date: Fri, 3 Jun 2011 14:14:38 -0700 Subject: Pretty Print arrays In-Reply-To: References: Message-ID: Trevor Devore has one named printKeys - I think he posted the code not too long ago so you can probably find it by searching the archives. Pete Molly's Revenge On Fri, Jun 3, 2011 at 1:53 PM, Todd Geist wrote: > Hello > > Before I set out to re-invent the wheel. Does anyone have function to > pretty print LiveCode arrays? > > Thanks > > Todd > > > Todd Geist > ------------------------------ > geist interactive > 805-419-9382 > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > > From bobs at twft.com Fri Jun 3 18:13:30 2011 From: bobs at twft.com (Bob Sneidar) Date: Fri, 3 Jun 2011 15:13:30 -0700 Subject: Tracker2Go Review Message-ID: <36F19502-1426-4821-813A-DFE1898740F8@twft.com> I posted a glowing review of the app in the App store, not because the author is a fellow developer on this list, but because I was very impressed with the app he produced. Let's see more of this from our iApp developers. Bob From john at splash21.com Fri Jun 3 18:16:35 2011 From: john at splash21.com (John Craig) Date: Fri, 03 Jun 2011 23:16:35 +0100 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> Message-ID: <4DE95D43.2090403@splash21.com> Looks superb, Andy - I've downloaded it and first impressions are excellent :) On 03/06/2011 18:39, Andy Henshaw wrote: > I have just had my first Livecode iPhone app using externals (sqllite) approved for the App Store. > > The App is 'Tracker2Go' ( http://itunes.apple.com/us/app/tracker2go/id433038944?mt=8&ls=1 ) if anyone wants a look, it uses the sqlite databases, datagrid, internet search, animation engine, charts engine and Scotts Rossis pie chart controls. Ive also used the iOS native text fields, iOS browser window (for the exercise and food input spinning wheel), iOS scrollers and network reachability so as a more 'utility' app rather than game style I think ive used most of the new toys currently at disposal! > > I know there has been a lot of topics on datagrids and scroller performance, so im leaving the app as 'free' in the App store for now so anyone wanting to compare the performance of the scrollers can see how it stacks up, I don't think its too bad in the end. > > There is still so much more I have to do with the App, iPad next, then localisation and if Ports come along Ill add a desktop sync, but as a starting point, and my first 'real' iOS app built with Livecode im quite pleased with it. > > Andy > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From henshaw at me.com Fri Jun 3 19:48:19 2011 From: henshaw at me.com (Andy Henshaw) Date: Sat, 04 Jun 2011 00:48:19 +0100 Subject: My first Livecode iOS App with Externals (SQLite) approved! In-Reply-To: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> References: <8CEF9633-F72A-4C60-85BF-334D6C2ECE9E@me.com> Message-ID: <96374E56-3D91-4E02-ACD8-2A46EF99EE90@me.com> Thanks everyone. I understand what you mean about the free / paid issue, its really a guessing game with quite a lot of luck involved imo. Ive read normally for a standalone it seems best to push an app out free for the first 24 hours, if you get sufficient downloads it pushes you into the 'whats hot' for about a week, and that in itself can be worth giving the app away for for the first period. Hopefully the app then gains reviews, and that then makes a longer term app potential. If it all fails, or the reviews are terrible then its a case of rework the app to iron out the issues people dont like, then withdraw it under that name, rebrand and re-release as a different app, start all over again with a new identity. In this case however I doubt any of the above will work, the health sector is just too hard to crack and the chances of getting this app into the top 200 is beyond slim and if its buried even if I charged it would probably generate only a few $ a day at best. Instead, my aim is to expand it to sync with my Perfect Diet Tracker desktop app, so for the moment Ill probably keep it free and get support built in to sync to the desktop app and hope some users will then download and install and buy that, which may increase the sales there. What ive noticed is some really good, complex apps get slated, while apps that are really simple and quite honestly awful sell, its almost like there is no incentive to try to create apps with any sort of depth. Andy From kee at kagi.com Fri Jun 3 20:08:06 2011 From: kee at kagi.com (Kee Nethery) Date: Fri, 3 Jun 2011 17:08:06 -0700 Subject: How to obtain info from browser in revWeb app In-Reply-To: References: <208DA071-C187-41D3-9E0F-BFC0729A65E1@kagi.com> <81D93D83-1126-444D-830D-B66DF4A2F1EB@kagi.com> Message-ID: The default web page for a revWeb app has this javascript in it (plus what I added):