Weird cursor freeze

2011-04-12 Thread David Glasgow
Hello folks,

Banging my head against a wall on this one.

I have a mainstack with several substacks.  One substack presents 10 images, 
which the user rates.  I do some funny business with the cursor during this, to 
make the cursor disappear after a rating is made, and reappear at the mid point 
on a bipolar scale ready for the next rating.  The cursor is also constrained 
within the scale area during rating to prevent accidental clicks outwith the 
scale.  That all works fine. Data is gathered fine, with the cursor moving and 
changing as it should in all circumstances.

At the end of the ratings, I have a routine that resets stuff and prepares the 
ratings to be either run again (button starter) or user return to the 
mainstack (continue).  It is a very innocuous handler.

on finish
   hide button N  e  x  t   p  i  c  t  u  r  e
   hide group raters
   hide group blocker
   show button continue
   show button starter
   --   repeat 5 times
   --  set the cursor to busy
   --   end repeat
   --   unlock cursor
   --   set cursor to hand
   --   wait 1 sec
   --   set cursor to cross
   --   wait 1 sec
   --   set cursor to arrow
end finish

The commented section is stuff I put in to try to find out what was going on.  
The script runs fine but then the cursor freezes in position, and displaying as 
whatever icon was last set.  Oddly, the cursor is locked in the same place in 
all open apps, so switching between finder etc. and LC doesn't help.  Using 
shortcuts to switch in and out of browse/edit mode doesn't work.  The only way 
out I have found in the dev environment is to invoke the preferences stack via 
shortcut, and THEN switch between browse and edit mode via keyboard.  This 
allows the cursor to move, but it sticks with whatever icon was set until it 
feels like changing for no obvious reason, although sometimes in response to a 
command.  I have tried various cursor related commands within the finish 
handler, all of which appear to be executed correctly, but always followed by 
the system wide cursor lock up.

Running the debugger prevents the problem arising, so it isn't much help.  
Sadly, the problem isn't restricted to the dev environment, and I have to force 
quit standalones on Mac.  All this is on Mac, running LC 4.0 and 4.5
  Could it be a problem with the mac cursor stack?  If so, how should I set 
about exploring that possibility?


This is ruining a nice days scripting that I have been looking forward to for 
weeks, so any help would be gratefully received.



Best Wishes,

David Glasgow
Carlton Glasgow Partnership

i-psych.co.uk


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: revdb and PostgreSQL 9.0.3 (linux x64) [solved]

2011-04-12 Thread Pierre Sahores
Hi there,

Problem solved by switching back to CentOS 5.6 / PostgreSQL 8.1.23.

Best,

 Hi Friends,
 
 When i try to connect PostgreSQL 9.0.3 from revserver (localhost, OpenSuse 
 10.4 x64), in using this code :
 
  put postgresql into DbTarget ; put mydatabase into DbName # 
 Constante 3  4 #
  put mypguser into DbUser ; put mypguserpassword into DBPasswd  # 
 Constantes 5  6 #
 
 put revOpenDatabase (DbTarget,localhost,DbName,DbUser,DBPasswd) into 
 myDatabaseID
  if myDatabaseID is not a number then 
  
  return myDatabaseID
  
  else
 
 
 i get this back :
 
 revdberr,invalid database type
 
 
 Did anyone there got the right way to solve this inconstancy and, else, what 
 is the last PostgreSQL supported version revserver-revdb are known to be able 
 to run friendly with ?
 
 TIA,

--
Pierre Sahores
mobile : (33) 6 03 95 77 70

www.wrds.com
www.sahores-conseil.com





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Yay! Victory RevServer runs on FreeBSD with Linux Compat installed.

2011-04-12 Thread Andre Garzia
Folks,

Just to tell people here that RevServer runs on FreeBSD 8.1 with the Linux
Binary Compatibility ports installed. It takes a while to install all the
needed Linux version of the libraries but it works.

A screenshot:
http://idisk.me.com/soapdog/Public/Pictures/Skitch/Welcome_to_revIgniter-20110412-161011.jpg

From the FreeBSD Handbook:
FreeBSD provides binary compatibility with several other UNIX® like
operating systems, including Linux. At this point, you may be asking
yourself why exactly, does FreeBSD need to be able to run Linux binaries?
The answer to that question is quite simple. Many companies and developers
develop only for Linux, since it is the latest “hot thing” in the computing
world. That leaves the rest of us FreeBSD users bugging these same companies
and developers to put out native FreeBSD versions of their applications. The
problem is, that most of these companies do not really realize how many
people would use their product if there were FreeBSD versions too, and most
continue to only develop for Linux. So what is a FreeBSD user to do? This is
where the Linux binary compatibility of FreeBSD comes into play.

In a nutshell, the compatibility allows FreeBSD users to run about 90% of
all Linux applications without modification. This includes applications such
as StarOffice™, the Linux version of Netscape®, Adobe® Acrobat®,
RealPlayer®, VMware™, Oracle®, WordPerfect®, Doom, Quake, and more. It is
also reported that in some situations, Linux binaries perform better on
FreeBSD than they do under Linux.

Source:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html

Below is a glue of the ldd output from the revserver engine binary under
FreeBSD:
libdl.so.2 = /lib/libdl.so.2 (0x2826a000)
libm.so.6 = /lib/libm.so.6 (0x2826f000)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x28298000)
libpcre.so.0 = /lib/libpcre.so.0 (0x28388000)
libpng12.so.0 = /usr/lib/libpng12.so.0 (0x283ba000)
libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x283e1000)
libcurl.so.4 = /usr/lib/libcurl.so.4 (0x28405000)
libc.so.6 = /lib/libc.so.6 (0x28454000)
libz.so.1 = /lib/libz.so.1 (0x285cc000)
/lib/ld-linux.so.2 (0x28243000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x285e)
libidn.so.11 = /lib/libidn.so.11 (0x285ee000)
libssh2.so.1 = /usr/lib/libssh2.so.1 (0x28621000)
libldap-2.4.so.2 = /usr/lib/libldap-2.4.so.2 (0x28643000)
librt.so.1 = /lib/librt.so.1 (0x28685000)
libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x2868f000)
libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x286bd000)
libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x2875c000)
libcom_err.so.2 = /lib/libcom_err.so.2 (0x28782000)
libssl3.so = /lib/libssl3.so (0x28785000)
libsmime3.so = /lib/libsmime3.so (0x287b6000)
libnss3.so = /lib/libnss3.so (0x287dd000)
libplds4.so = /lib/libplds4.so (0x28905000)
libplc4.so = /lib/libplc4.so (0x28909000)
libnspr4.so = /lib/libnspr4.so (0x2890f000)
libpthread.so.0 = /lib/libpthread.so.0 (0x28949000)
libssl.so.7 = /lib/libssl.so.7 (0x28963000)
libcrypto.so.7 = /lib/libcrypto.so.7 (0x289ae000)
liblber-2.4.so.2 = /usr/lib/liblber-2.4.so.2 (0x28b02000)
libresolv.so.2 = /lib/libresolv.so.2 (0x28b12000)
libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x28b29000)
libkrb5support.so.0 = /usr/lib/libkrb5support.so.0 (0x28b42000)
libkeyutils.so.1 = /lib/libkeyutils.so.1 (0x28b4c000)
libnssutil3.so = /lib/libnssutil3.so (0x28b4f000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x28b69000)
libselinux.so.1 = /lib/libselinux.so.1 (0x28b9c000)


Now, who else got RevServer running on OSes it was not compiled for? :-D

Cheers
andre
PS: now, can I have a native FreeBSD engine?


-- 
http://www.andregarzia.com All We Do Is Code.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Yay! Victory RevServer runs on FreeBSD with Linux Compat installed.

2011-04-12 Thread Pierre Sahores
Congratulations Andre ;D

Does FreeBSD run an SELinux (RedHat) or AppArmor(Suse) kind of security demon.

Kind regards,

Pierre

PS :  a little configuration+make+make install on the revserver sources et 
voilà, mothership compile an up to date revserver for FreeBSD available for 
sale. Would be realy cool usefull !


Le 12 avr. 2011 à 21:11, Andre Garzia a écrit :

 Folks,
 
 Just to tell people here that RevServer runs on FreeBSD 8.1 with the Linux
 Binary Compatibility ports installed. It takes a while to install all the
 needed Linux version of the libraries but it works.
 
 A screenshot:
 http://idisk.me.com/soapdog/Public/Pictures/Skitch/Welcome_to_revIgniter-20110412-161011.jpg
 
 From the FreeBSD Handbook:
 FreeBSD provides binary compatibility with several other UNIX® like
 operating systems, including Linux. At this point, you may be asking
 yourself why exactly, does FreeBSD need to be able to run Linux binaries?
 The answer to that question is quite simple. Many companies and developers
 develop only for Linux, since it is the latest “hot thing” in the computing
 world. That leaves the rest of us FreeBSD users bugging these same companies
 and developers to put out native FreeBSD versions of their applications. The
 problem is, that most of these companies do not really realize how many
 people would use their product if there were FreeBSD versions too, and most
 continue to only develop for Linux. So what is a FreeBSD user to do? This is
 where the Linux binary compatibility of FreeBSD comes into play.
 
 In a nutshell, the compatibility allows FreeBSD users to run about 90% of
 all Linux applications without modification. This includes applications such
 as StarOffice™, the Linux version of Netscape®, Adobe® Acrobat®,
 RealPlayer®, VMware™, Oracle®, WordPerfect®, Doom, Quake, and more. It is
 also reported that in some situations, Linux binaries perform better on
 FreeBSD than they do under Linux.
 
 Source:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html
 
 Below is a glue of the ldd output from the revserver engine binary under
 FreeBSD:
libdl.so.2 = /lib/libdl.so.2 (0x2826a000)
libm.so.6 = /lib/libm.so.6 (0x2826f000)
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x28298000)
libpcre.so.0 = /lib/libpcre.so.0 (0x28388000)
libpng12.so.0 = /usr/lib/libpng12.so.0 (0x283ba000)
libjpeg.so.62 = /usr/lib/libjpeg.so.62 (0x283e1000)
libcurl.so.4 = /usr/lib/libcurl.so.4 (0x28405000)
libc.so.6 = /lib/libc.so.6 (0x28454000)
libz.so.1 = /lib/libz.so.1 (0x285cc000)
/lib/ld-linux.so.2 (0x28243000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x285e)
libidn.so.11 = /lib/libidn.so.11 (0x285ee000)
libssh2.so.1 = /usr/lib/libssh2.so.1 (0x28621000)
libldap-2.4.so.2 = /usr/lib/libldap-2.4.so.2 (0x28643000)
librt.so.1 = /lib/librt.so.1 (0x28685000)
libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x2868f000)
libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x286bd000)
libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x2875c000)
libcom_err.so.2 = /lib/libcom_err.so.2 (0x28782000)
libssl3.so = /lib/libssl3.so (0x28785000)
libsmime3.so = /lib/libsmime3.so (0x287b6000)
libnss3.so = /lib/libnss3.so (0x287dd000)
libplds4.so = /lib/libplds4.so (0x28905000)
libplc4.so = /lib/libplc4.so (0x28909000)
libnspr4.so = /lib/libnspr4.so (0x2890f000)
libpthread.so.0 = /lib/libpthread.so.0 (0x28949000)
libssl.so.7 = /lib/libssl.so.7 (0x28963000)
libcrypto.so.7 = /lib/libcrypto.so.7 (0x289ae000)
liblber-2.4.so.2 = /usr/lib/liblber-2.4.so.2 (0x28b02000)
libresolv.so.2 = /lib/libresolv.so.2 (0x28b12000)
libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x28b29000)
libkrb5support.so.0 = /usr/lib/libkrb5support.so.0 (0x28b42000)
libkeyutils.so.1 = /lib/libkeyutils.so.1 (0x28b4c000)
libnssutil3.so = /lib/libnssutil3.so (0x28b4f000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x28b69000)
libselinux.so.1 = /lib/libselinux.so.1 (0x28b9c000)
 
 
 Now, who else got RevServer running on OSes it was not compiled for? :-D
 
 Cheers
 andre
 PS: now, can I have a native FreeBSD engine?
 
 
 -- 
 http://www.andregarzia.com All We Do Is Code.
 ___
 use-livecode mailing list
 use-livecode@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.wrds.com
www.sahores-conseil.com





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Rev/Livecode project and GPL Licenses

2011-04-12 Thread Chip Thomas
I am wondering if anyone on this list has shipped a Rev/Livecode project
that communicated with a code library released under the GPL license, and if
so, your reasons for making your LiveCode project GPL or non-GPL.


The GPL license is clear that it is possible to have closed-source
commercial code work with GPL licensed code in a way that does not violate
the terms of the GPL license, the only thing is, it does not make the
parameters altogether clear, to me anyway.


Thanks in advance for any info!


Thomas
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rev/Livecode project and GPL Licenses

2011-04-12 Thread Mark Schonewille
Hi Thomas,

This might give you some ideas http://qery.us/pb

In which way is your project going to be delivered to your customers? Is your 
project going to be distributed commercially?

--
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 12 apr 2011, at 22:41, Chip Thomas wrote:

 I am wondering if anyone on this list has shipped a Rev/Livecode project
 that communicated with a code library released under the GPL license, and if
 so, your reasons for making your LiveCode project GPL or non-GPL.
 
 
 The GPL license is clear that it is possible to have closed-source
 commercial code work with GPL licensed code in a way that does not violate
 the terms of the GPL license, the only thing is, it does not make the
 parameters altogether clear, to me anyway.
 
 
 Thanks in advance for any info!
 
 
 Thomas


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Rev/Livecode project and GPL Licenses

2011-04-12 Thread Richard Gaskin

Chip Thomas wrote:


I am wondering if anyone on this list has shipped a Rev/Livecode project
that communicated with a code library released under the GPL license, and if
so, your reasons for making your LiveCode project GPL or non-GPL.


The GPL license is clear that it is possible to have closed-source
commercial code work with GPL licensed code in a way that does not violate
the terms of the GPL license, the only thing is, it does not make the
parameters altogether clear, to me anyway.


Volumes have been written about the GPL and FOSS in general.  Big topic, 
with many implications.


Do you have a project you're thinking of deploying under the GPL?
If so, what are you goals in doing so?

GPL can be a great option if it's what you need, but there are so many 
licenses available, and of course the creator of a work can define any 
terms he chooses, so it can be difficult to offer any brief 
recommendation one way or another without some details.


While looking at different licensing options a few months ago for a 
project I'd considered possibly GPL'ing, I came across one tip that may 
be useful:


It's easier to convert proprietary code to GPL than the other way 
around, so if you have any questions about whether to use GPL it may be 
prudent to consider more closed terms at first until those questions are 
answered.  You can always change it later.


--
 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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Live LiveCode Code Event #17 - wrap-up

2011-04-12 Thread Kay C Lan
Ok this is the third time I've tried to send this email and I still
get messages saying that It's too big even though it shows up as only
9kb. So I've now split it into 3, - Part1a, Part1b and part2



First off I would like to thank Mark for organising the Live LiveCode
#17 and also for putting it on line for those of us who were not able
to be there Live and thus enjoyed Preserved LiveCode #17 - which I
guess means it's LiveCode Jam #17 :-)

But my real appreciation goes to Claudi for his presentation. Claudi,
your presentation was spot on, at least for me. Doing it Live is
tough, but if we waited until everything was perfect, we'd never have
these gems of information. Most of us are way to busy to get it how
we'd really like it. So please, do a follow up, I might not be able to
view Live LiveCode, but hopefully I can always enjoy LiveCode Jam.

Claudi and Thomas, I've really appreciated your posts re the Arduino
and do hope you keep the List updated on your progress. Also a thanks
to Sarah and her Serial Test stack which saved me a couple of wheels I
didn't need to reinvent.

I also recently came across Arduino and have been experimenting with
it and LiveCode. Foolishly I spent a couple of days experimenting with
it first before heading to this List. So I reinvented the wheel a
couple of times ;-(

I'd just like to add a couple of my own observations which may be of
use to others who venture down the Arduino + LiveCode path.

IMPORTANT

My comments are based on my personal set-up, your mileage IS SURE to vary.

OSX 10.6.6
LiveCode 4.6

Arduino Mega COPY - my board is made by a company called Seeed Studio
under the open license and differs from a standard Arduino Mega in a
couple of ways, but the most important is it has 70 digital I/Os
instead of the Mega's 54.

Also it is an older board so it uses the older FTDI USB drivers.

I'm currently ONLY interested in reading Digital INPUTS. I have not
set up any outputs. My sketch simply loops through reading all the
pins, ONLY if ANY pin has changed status since the last loop, the
sketch sends a 'Serial.println' to LiveCode with the status of EVERY
input. ie 1100010111…

I started out experimenting with 2, then 10 and now 69 input pins.

WITH REFERENCE TO CLAUDI's 'MUST DOs'

I do not need to disconnect the Arduino after uploading a sketch.

My first 'read' is not 'for 1 line' but I use what I got from Sarah's
Serial Test stack, 'read from driver tDriverName until CRLF' and to
that I added 'in 1 ticks'. This seems to prevent LiveCode from hanging
on the first call.

From then on, as Claudi said (and I know in the video he mentioned
someone said NOT to use 'read until empty') I also 'read until empty'
although I have had success with 'read until CRLF' but in that case
I'm not sure if I've missed any lines so I stick with 'ready until
empty'.

I also can not get LiveCode to communicate with Arduino at a BAUD of
115200, 57600 is the fastest I can go. At the other end of the
spectrum I can't get LiveCode and Arduino to communicate at BAUD 300
or 1200, the slowest is 2400. I am CONVINCED this is a LiveCode
problem. The Arduino Serial Monitor has no problem communicating at
300 or 115200 BAUD, so clearly Arduino + FTDI USB Driver + OS X 10.6.6
are happy. (I'm not really interested in 300/1200, if the mothership
can fix 115200 that would be great)

See Part 1b for more

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Live LiveCode Code Event #17 - wrap-up

2011-04-12 Thread Kay C Lan
This only makes sense if you've read Part 1a



MY IMPORTANT OBSERVATIONS

Basically LiveCode is EXTREMELY susceptible to timing issues and there
is a NEED to include a 'wait' command in your LiveCode loop. What is
illogical, and from my own perspective, only possible to determine
through experimentation, is the appropriate length of the wait. It's
also IMPORTANT to include 'with messages' with your 'wait' otherwise
you can lock-up LiveCode.

Here is an extract of my LiveCode script:

 open driver tDriverName for text update
 write numToChar(1)  cr to driver tDriverName
 wait 1 ticks with messages
 read from driver tDriverName until CRLF in 1 ticks --need first read
 repeat
read from driver tDriverName until empty --normal reads
put it after tUSBData
wait 17 millisecs with messages
if (the default of me = true) then
  exit to top
end if
 end repeat
 -- more code to do stuff
 put tUSBData into field output


This code, without the 'wait 17 millisecs with messages' will lock-up
LiveCode and you need to Force Quit.

Initially I started with figures in the 200-300 millisec range and
placed the data straight into field output for viewing, and things
worked OK, but not perfect. In a quest for speed I started playing
with the wait time and placed the data into a variable 'tUSBData'.

The following is for 69 pin read at 57600 baud:

With LiveCode just sitting there doing nothing, Activity Monitor would
report that it was using 18% cpu.

Once I pressed my Button and started my LiveCode Script, with the wait
time set at ANYTHING ABOVE 50ms the cpu would drop to 4% whilst the
pins were static, ie no changes, I could leave them that way for
minutes (too impatient to wait hours to see if it were different) and
it would just sit there around 4%. As soon as I started changing the
pin status, the cpu would rise to 6%. As soon as I stopped, it would
go back down to 4%.

Repeating the same experiment with wait 50ms, again, 18% cpu whilst I
hadn't started my script, but as soon as I did it rose to 34% cpu and
it didn't matter if the pins were static or being changed, the cpu sat
at 34% cpu.

Continuing the experiment I discovered that not much changed as you
looked at waits down to around 25ms, but then below this things
started to change again.

Repeating the same experiment with wait 19ms, again 18% cpu whilst I
hadn't started my script, but as soon as I did it dropped to 13%
regardless of whether the pins were static or changing.

Repeating the same experiment with wait 17ms, again 18% cpu, then when
I started my script it dropped to 3% cpu with static pins, rose to 6%
with changing status, and drop back to 3% as soon as they became
static. Again it didn't matter how long they remained static, the cpu
remained at 3%.

Repeating the same experiment with wait 16ms, again 18% cpu before
starting, then as soon as I started the cpu rose rapidly to 100%. It
didn't matter if the pins were static or changing, the cpu would
remain at 100%. Interestingly the cpu rose faster to 100% if the pins
were static than if I were changing them. IF YOU DO NOT HAVE 'with
messaged' in you wait command, if you get to this condition you will
probably have to FORCE QUIT to get out of it.

INTERESTINGLY these figures were basically identical regardless of
whether I was reading 10 or 69 pins. Much the same regardless of 9600
or 57600 baud. See CPU Performance figures in Part 2 of my email.

For reasons I couldn't fathom, for my 10 pin experiments some of my
data was corrupted; not badly, just the data spread across two lines,
or extra blank lines added. Logically it seemed that the longer the
wait, the more correct the data. BUT, the data also IMPROVED by using
57600 baud rather than 9600. STRANGEST of all though, is that at 17ms,
57600 baud and 69 pins, the data came out perfect. Seems LiveCode
prefers more data at a fast baud. See Data Output in Part 2 of my
email.

Please NOTE the importance of using millisec rather than ticks. 1 tick
= 16. millisec. If I tried wait 1 tick I'd have the cpu hit 100%.
If I tried 2 ticks (33ms) I'd be in the 34% region, which would be the
same for 4 ticks (50ms), so I'd end up at 5 ticks, well above what is
needed.

Lastly I ASSUME, and it is a big ASSUMPTION, that if my repeat loop
contained a whole bunch of extra lines of script, these would take up
cycles, which would take up millisec which SHOULD therefore effect how
long my waits are.

What I KNOW is that LiveCode is VERY susceptible to TIMING issues when
communicating with Arduino on OS X via USB. Your repeat loops MUST
contain wait commands that INCLUDE 'with messages'. Use MILLISEC not
ticks. (This does NOT apply to the odd wait command you may have in
other areas of your script OUTSIDE the repeat loops monitoring serial
comms).

Finally, you MUST experiment with different wait values to find the
best, and just because the numbers start heading in the 

setting the insertion point

2011-04-12 Thread Nicolas Cueto
Hello,

Given this script:

  put 123 into field abc
  focus on fieldabc

what additional script lines would cause the insertion point to be
placed at the end of the line? or, say, after the number 2?

Thanks.

--
Nicolas Cueto

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: setting the insertion point

2011-04-12 Thread J. Landman Gay

On 4/12/11 11:20 PM, Nicolas Cueto wrote:

Hello,

Given this script:

   put 123 into field abc
   focus on fieldabc

what additional script lines would cause the insertion point to be
placed at the end of the line? or, say, after the number 2?


See select in the dictionary (the command, not the keyword.) Examples 
pertaining to text, with my comments, are:


 select text of field ID 3 -- selects all text
 select after word 34 of field myField -- selects after a particular word
 select empty -- removes all selections

You can select after or before any text chunk. To place the cursor after 
123 in your example:


 select after line 1 of fld abc

Or:
 select after char 3 of fld abc

Or to select after the number 2:
 select after char 2 of fld abc

Or:
 select after char offset(2,fld abc) of fld abc

Or you can select before any of those:
 select before line 2 of fld abc
 select before char 3 of fld abc
 ... etc.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: setting the insertion point

2011-04-12 Thread stephen barncard
you almost have it.

select text after field abc

On 12 April 2011 21:20, Nicolas Cueto nicon...@gmail.com wrote:

 Hello,

 Given this script:

  put 123 into field abc
  focus on fieldabc

 what additional script lines would cause the insertion point to be
 placed at the end of the line? or, say, after the number 2?

 Thanks.

 --
 Nicolas Cueto

 ___
 use-livecode mailing list
 use-livecode@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  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


[ANN] 3D Carousel Menu for LiveCode

2011-04-12 Thread Scott McDonald
There is a new control for LiveCode. It is a commercial Carousel Menu with a
3D effect.

As well as being fashionable, a carousel menu is easy to use (fun even?) and
an excellent way to present multiple items to a user to allow selection and
browsing. The RunRevPlanet Carousel 3D can show reflections, and have
different rotation effects with smooth scrolling and a bounce animation
for selected items.

You can use it on the desktop (Linux, OS X, Windows) and on mobile platforms
-- currently only iOS, but an Android version is in the works. You can try
it out at: http://www.runrevplanet.com/

-
--
Scott McDonald
Components, Controls, Tools and Resources for LiveCode
www.runrevplanet.com
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-3D-Carousel-Menu-for-LiveCode-tp3446273p3446273.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode