Re: Is this a bug or am I missing something?
Mark, Thanks for the clarification but if you have the patients to explain a bit further it would be appreciated. When the sub stack field has the focus, the “long name of the focused object” refers to a card of the main stack (at least there is no reference to a sub stack). For the first line I get: card id 1002 of stack /Users/john/Downloads/Test stack.livecode The focused object refers to a field on a card of the sub stack which is part of the stack. For the second line I get: field id 1004 of card id 1002 of stack Sub Stack of stack /Users/john/Downloads/Test stack.livecode” In this case the field, the sub stack, and the stack are referred to. The “long name” variant seems to strip the reference to the field and the sub stack. If the field on the main stack has the focus, both the first and the second lines refer to the same object in slightly different forms. When the main stack field has the focus I get: field results of card id 1002 of stack /Users/john/Downloads/Test stack.livecode field id 1013 of card id 1002 of stack /Users/john/Downloads/Test stack.livecode” These both refer to the same field. Thanks, John On Oct 8, 2014, at 10:37 PM, Mark Wieder mwie...@ahsoftware.net wrote: John- Buttons can't receive focus. The focus of your mainstack is on the only control that can receive a focus, the result field. And it doesn't matter that you have clicked in the substack first. The act of clicking in the menu shifts the focus to the main stack. What you are seeing in the result field is correct. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ 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 ___ 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: use-livecode Digest, Vol 133, Issue 15
Peter wrote: Bernd has finally got the better of my curiosity and I checked out outrange.com. The homepage has this little gem: Today, companies are facing strong competition. Only companies which effectively communicate with their customers can be successful. Effective communication means being able to deliver meaningful and accurate information in a personalized manner for each invdividual. :-) mwieder wrote Peter- That's a different Bernd. -- -Mark Wieder I would like to point out that it is NOT thisBernd :) Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Re-use-livecode-Digest-Vol-133-Issue-15-tp4684304p4684316.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
Re: For yer eddification
Très drôle ! Le 8 oct. 2014 à 19:47, Richmond richmondmathew...@gmail.com a écrit : On 08/10/14 20:28, Colin Holgate wrote: I was on Unst for 18 months. That’s the top island of the Shetlands, that he is pointing to. They don’t quite speak the same Scottish there. On Unst they don't speak Scots at all: they speak Scots Gaelic which is akin to Irish Gaelic and is as different from Scots as Bulgarian is to English. Abune 10 towmonds syne I wis i Harris wi ma hen and bairns fae a week, and qhan some fisherfowk stairtit clackin i that lied I wis fair forjeskit as I didnae ken a vocable at all. Richmond. Possibly a feature request case might be made for a version of LiveCode that functions in Doric Scots. ___ 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 ___ 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
AW: How is the LC textsize converted into RTF?
Hello Kay, thanks for the hint with HTMLText, I will follow that Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Kay C Lan Gesendet: Donnerstag, 9. Oktober 2014 04:07 An: How to use LiveCode Betreff: Re: How is the LC textsize converted into RTF? On Wed, Oct 8, 2014 at 11:25 PM, Tiemo Hollmann TB toolb...@kestner.de wrote: Hello, I am struggling to keep the wanted textSize from a LiveCode text in a RTF file. From another thread about RTF, this Important Note in the Dictionary under 'RTFText' may help: Important! Because the RTF standard does not include the box, threeDbox, and link styles supported by LiveCode, the RTFText property does not necessarily include all information necessary to reproduce the style information in a chunk. To export and re-import field information without losing any style information, use the htmlTextproperty instead. Looking at the HTMLText it looks like it would be very easy to maintain/manipulate the text size of various words in a field. HTH ___ 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 ___ 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: Convert rgb to lightness or darkness
In the standard formula for RGB - HSL (Hue, Saturation, Lightness), Lightness is calculated as the average of the max and min of the RGB values. In the standard formula for RGB - HSV (Hue, Saturation, Value), Value is the max of the RGB values. I would guess one of those calculations would be closer to giving you the right answer than the total of R+G+B. Ben On 08/10/2014 09:21, Tiemo Hollmann TB wrote: Just a guess, didn't tried it. If you add the three RGB values of the mousecolor, white (light) would be 765 and black (dark) 0. Somewhere around 382 you can switch from black to yellow text. Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von William Prothero Gesendet: Dienstag, 7. Oktober 2014 21:59 An: Use-livecode Use-livecode Betreff: Convert rgb to lightness or darkness Folks: I’m putting text on an image that will be turned into a snapshot. The image goes from light to dark. The text is a one or two digit integer. I want it to show up on the image. For dark parts of the image, I set it to yellow, but for light parts of the image, I want to set it to black. Is there a simple formula for changing an rgb value into a darkness value that will let me choose between yellow or black text? I don’t want to just set the ink of the text because sometimes I write the text over itself, which diminishes the effect. ___ 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: iOS Icon sizes? Splash screen sizes?
This creates all necessary sizes from a high res master image. http://livecodeshare.runrev.com/stack/756/Scaliniimage-scaler-for-resolution-independence The sizes were also detailed on one of the slides in a presentation by Ralph DiMola at LiveCodeLIVE'14. ~Roger On Thu, Oct 9, 2014 at 1:11 AM, Chipp Walters ch...@chipp.com wrote: Where oh where would one find these? I have a great idea! Why not put a little button next to the fields in the Standalone builder to show info about them? *Icon sizes* iPhone Hi-Res iPhone iOS Hi-Res iPhone iPhone 6 Plus iPad Hi-Res iPad iOS 7 iPad iOS7 Hi-Res iPad *Splash Screens* iPhone Hi-Res iPhone 4 Inch iPhone iPhone 6 iPhone 6 Plus Portrait iPhone 6 Plus Lscape Hi-Res iPad Portrait Hi-Res iPad Landscape Chipp Walters ___ 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 ___ 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: use-livecode Digest, Vol 133, Issue 15
On Oct 9, 2014, at 12:52 AM, BNig bernd.niggem...@uni-wh.de wrote: Peter wrote: Bernd has finally got the better of my curiosity and I checked out outrange.com. The homepage has this little gem: Today, companies are facing strong competition. Only companies which effectively communicate with their customers can be successful. Effective communication means being able to deliver meaningful and accurate information in a personalized manner for each invdividual. :-) mwieder wrote Peter- That's a different Bernd. -- -Mark Wieder I would like to point out that it is NOT thisBernd :) if thisBernd is not thatBernd then focus on the effective Bernd else focus on nothing end if D Devin Asay Office of Digital Humanities Brigham Young University ___ 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
LC 6.6.3 and 6.6.4 really slower than LC 6.1.2
Hi All, When I press a btn to go back to a previews card it takes 1/10 of a second with LC 6,1,2, but it takes 3.28 second with LC 6.6.3 and 6.6.4. That the same when my app is a standalone. I use the same script for all trials on mouseUp global sBrowserId BrowserInvisible02 hide btn accidPronomi hide btn Rectif go to cd LaRecherche show btn avance show btn recule show fld flexions if fld info is not empty then show fld info end if revBrowserSet sBrowserId, visible, true show image browserimage of cd LaRecherche end mouseUp I am on Maveriks and XCode 6.0.1 for LC 6.6.3 and 6.6.4 and on Maveriks and XCode 5.1.1 for the LC 6.1.2 version. I dont understand. Is it a bug I have to report? Anybody has an idea of what is the problem? Alain Vezina Logilangue www.logilangue.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: LC 6.6.3 and 6.6.4 really slower than LC 6.1.2
My (limited) experience: I found several bugs in 6.6.3 Without changing the code at all, I opened my stack in 6.1.1 and everything ran perfectly. Larry - Original Message - From: Alain Vezina alain.vez...@logilangue.com To: LiveCode How to use-livecode@lists.runrev.com Sent: Thursday, October 09, 2014 9:41 AM Subject: LC 6.6.3 and 6.6.4 really slower than LC 6.1.2 Hi All, When I press a btn to go back to a previews card it takes 1/10 of a second with LC 6,1,2, but it takes 3.28 second with LC 6.6.3 and 6.6.4. That the same when my app is a standalone. I use the same script for all trials on mouseUp global sBrowserId BrowserInvisible02 hide btn accidPronomi hide btn Rectif go to cd LaRecherche show btn avance show btn recule show fld flexions if fld info is not empty then show fld info end if revBrowserSet sBrowserId, visible, true show image browserimage of cd LaRecherche end mouseUp I am on Maveriks and XCode 6.0.1 for LC 6.6.3 and 6.6.4 and on Maveriks and XCode 5.1.1 for the LC 6.1.2 version. I dont understand. Is it a bug I have to report? Anybody has an idea of what is the problem? Alain Vezina Logilangue www.logilangue.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 ___ 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: use-livecode Digest, Vol 133, Issue 15
On Thu, Oct 9, 2014 at 8:16 AM, Devin Asay devin_a...@byu.edu wrote: if thisBernd is not thatBernd then focus on the effective Bernd else focus on nothing end if To make this generically useful and take advantage of a recent syntax addition: if this me is not that me then focus on the effective me else focus on nothing end if Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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: Accessing properties in sub stack fields
I think this is an example of LC not always dereferening things as expected, especially when custom properties are involved. I've had similar issues in the past and in fact have just had another one where the following results in a runtime error: put the cMyProp of (line 1 of the recentCards) into tVar The following works around the error: get line 1 of the recentCards put the cMyProp of it into tVar As to why the name of the focusedObject and the focusedObject return references to two different objects, I think you should enter a QCC report. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Wed, Oct 8, 2014 at 6:39 PM, John j...@onechip.com wrote: Hi, I was hoping that someone could explain what is going on. I have a main stack with multiple sub stacks all of which use the main stack’s menu bar. In the menubar group I have a mouseDown handler to update the menus before they are shown. The sub stacks have fields which may, or may not, have a property “noType” with a value of “true”. In the mouseDown handler in the menuBar group, the following does not work: put the noType of the focusedObject the focusedObject into msg I can see that the focusedObject is correct even though the value of the property is not shown. If I place this into the mouseDown handler I get the expected result: put line 1 of the openStacks into theTopStack put the selectedField into theSelectedField put word 2 of theSelectedField into theSelectedFieldNumber put the noType of field theSelectedFieldNumber of stack theTopStack into msg Why does the first one line scrip not work and the longer four line script work? Thanks in advance, John ___ 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 ___ 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: Regex wildcard in XML Query
On Wed, Oct 8, 2014 at 9:12 PM, Glen Bojsza gboj...@gmail.com wrote: q xsi:type=xsd:patternIGD.NetDevice.\d{2}\.NetCommonInterfaceConfig./q Hi Glen, Couple of issues with using the above as a regex. The period character means any character except newline in a regex. By chance it works for the string you're looking for but it really should be escaped with a backslash character. The \d{2} looks for two digits and you only have one digit in that position in the string. If you want to allow for 1 or 2 digits, you can use either \d{1,2} or \d\d? So your regex would be (untested): q xsi:type=xsd:patternIGD\.NetDevice\.\d{1,2}\.NetCommonInterfaceConfig\./q Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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: Is this a bug or am I missing something?
John- My apologies - I forgot about the weirdness of menus on osx. My earlier response was based on linux, which has a much more reasonable approach to UI interaction. So here's what I see happening on osx: 1. click in the substack field 2. click on a menu item This actually moves the focus to the main stack because the menubar is part of the mainstack. You can see this if you examine the stack in the Application Browser or Project Browser. But buttons (and menus by extension) can't receive the focus, so the focus ends up being on the currrent card. That's the first line you see. But *now that you have put text into the result field*, it now becomes the focused object, and the second time you try to access the focused object you will be referring to th field. The second line reflects that fact. -- Mark Wieder ahsoftw...@gmail.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
Getting a list of object properties
Folks: Sometime back, I remember a posting about how to get a list of property names of an object. Anybody remember it? I’m trying to use a “slider” object and have googled, etc, to no avail. The docs don’t show “slider” and so it’s just one of those docs shortcomings that hopefully will eventually get solved. I tried the scrollbar object properties. That’s not it. Regards, Bill William A. Prothero http://es.earthednet.org/ ___ 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: Convert rgb to lightness or darkness
Ben: Thanks. This does a better job. Best, Bill William A. Prothero http://es.earthednet.org/ On Oct 9, 2014, at 2:38 AM, Ben Rubinstein benr...@cogapp.com wrote: In the standard formula for RGB - HSL (Hue, Saturation, Lightness), Lightness is calculated as the average of the max and min of the RGB values. In the standard formula for RGB - HSV (Hue, Saturation, Value), Value is the max of the RGB values. I would guess one of those calculations would be closer to giving you the right answer than the total of R+G+B. Ben On 08/10/2014 09:21, Tiemo Hollmann TB wrote: Just a guess, didn't tried it. If you add the three RGB values of the mousecolor, white (light) would be 765 and black (dark) 0. Somewhere around 382 you can switch from black to yellow text. Tiemo ___ 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: Getting a list of object properties
Folks: Ok, I found how to set the end and start values. e.g. put the startValue of scrollBar “axisEntry Still, if anybody remembers the way to get a list of properties (a script), other than looking in the docs, I’d be interested. Best, Bill On Oct 9, 2014, at 10:44 AM, William Prothero proth...@earthednet.org wrote: Folks: Sometime back, I remember a posting about how to get a list of property names of an object. Anybody remember it? I’m trying to use a “slider” object and have googled, etc, to no avail. The docs don’t show “slider” and so it’s just one of those docs shortcomings that hopefully will eventually get solved. I tried the scrollbar object properties. That’s not it. Regards, Bill William A. Prothero http://es.earthednet.org/ ___ 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 ___ 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: Reading Files
Livecode supports xcmds still so far as I know. The trouble is, those xcmds were compiled for OS 9, and we are way past that. There is no way I know to convert a compiled OS 9 xcmd to an OX S xcmd. You would need the source, and then you would have to refactor it in a current compiler. Bob S On Oct 8, 2014, at 20:13 , JB sund...@pacifier.commailto:sund...@pacifier.com wrote: The Hyper Talk was pretty simple. I had a few different file I/O externals that would allow me to sector read the disk. I don’t think they will import or I could use them. They really do not need an external window so if you know how I can import them that would be really great. John Balgenorth ___ 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: Is this a bug or am I missing something?
I’m curious if the button itself is focusable. Instead, call a function in the card script and use send in time. If it still results in two different objects, then Houston, we have a problem. Bob S On Oct 8, 2014, at 22:02 , John j...@onechip.com wrote: I have found a circumstance where the long name of the focusedObject” and “the focusedObject” refer to different objects in the same line of a script. The line is: “ put the long name of the focusedObject return return the focusedObject into field “results” “. This is the only line in a mouseDown handler of the menubar group script. If anyone is interested, a very simple stack that demonstrates this is available here: https://www.dropbox.com/s/4cc7j7i06r18r6b/Test%20stack.livecode?dl=0 . You may have to remove the “.txt” from the end of the file that is downloaded. Is there a circumstance where the name of the focusedObject and the focusedObject should refer to different objects? This is happening in LC 7 RC2 under 10.9.5. Thanks, John ___ 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 ___ 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: Getting a list of object properties
William. Do you mean the properties? Craig -Original Message- From: William Prothero proth...@earthednet.org To: Use-livecode Use-livecode use-livecode@lists.runrev.com Sent: Thu, Oct 9, 2014 1:49 pm Subject: Re: Getting a list of object properties Folks: Ok, I found how to set the end and start values. e.g. put the startValue of scrollBar “axisEntry Still, if anybody remembers the way to get a list of properties (a script), other than looking in the docs, I’d be interested. Best, Bill On Oct 9, 2014, at 10:44 AM, William Prothero proth...@earthednet.org wrote: Folks: Sometime back, I remember a posting about how to get a list of property names of an object. Anybody remember it? I’m trying to use a “slider” object and have googled, etc, to no avail. The docs don’t show “slider” and so it’s just one of those docs shortcomings that hopefully will eventually get solved. I tried the scrollbar object properties. That’s not it. Regards, Bill William A. Prothero http://es.earthednet.org/ ___ 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 ___ 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 ___ 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
Raspberry Pi and GPIO
I am looking for some help from some of you with unix/raspberry pi experience. I have think that I have installed 7.0 rc 1 on my raspberry pi B+ properly. I am trying to figure out how to play with the GPIO’s. I am am able to execute the following to set up the IO put shell(echo 12 /sys/class/gpio/export) into dummy dummy is empty, However the next statement: put shell(echo out /sys/class/gpio/gpio12/direction) into dummy dummy contains the error message: bin/sh: cannot create /sys/class/gpio/gpio12/direction: Directory nonexistent When I use the terminal, I can see that the directory does exist and I am able to modify the contents to both set the IO direction and sucessfully turn the LED on and off. Could it be that I do not have the permission to create directories and modify files from livecode? How can I check this from livecode and fix it? …. assuming this is in fact a permission issue. Thanks, Mike ___ 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: Is this a bug or am I missing something?
I did not try this from a menu, but it works as advertised from an ordinary button. Craig On Oct 8, 2014, at 22:02 , John j...@onechip.com wrote: I have found a circumstance where the long name of the focusedObject” and “the focusedObject” refer to different objects in the same line of a script. The line is: “ put the long name of the focusedObject return return the focusedObject into field “results” “. This is the only line in a mouseDown handler of the menubar group script. If anyone is interested, a very simple stack that demonstrates this is available here: https://www.dropbox.com/s/4cc7j7i06r18r6b/Test%20stack.livecode?dl=0 . You may have to remove the “.txt” from the end of the file that is downloaded. Is there a circumstance where the name of the focusedObject and the focusedObject should refer to different objects? This is happening in LC 7 RC2 under 10.9.5. Thanks, John ___ 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 ___ 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 ___ 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: Is this a bug or am I missing something?
On 10/9/2014, 1:15 PM, Bob Sneidar wrote: I’m curious if the button itself is focusable. Buttons are focusable on Windows and Linux but not on OS X. -- 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: Raspberry Pi and GPIO
I think that I have now confirmed that it is a permission issue. I added a “sudo” in front of the “echo” command. Now everything seems to be working. I still have the question about how to give livecode the correct permissions to access this files as it would seem more logical to use to do direct IO to the files rather that to be forced to use a shell command. I am running as the default pi user. Should this user have different permissions? If so how do you grant them? Regards, Mike On Oct 9, 2014, at 2:21 PM, Michael Doub miked...@gmail.com wrote: I am looking for some help from some of you with unix/raspberry pi experience. I have think that I have installed 7.0 rc 1 on my raspberry pi B+ properly. I am trying to figure out how to play with the GPIO’s. I am am able to execute the following to set up the IO put shell(echo 12 /sys/class/gpio/export) into dummy dummy is empty, However the next statement: put shell(echo out /sys/class/gpio/gpio12/direction) into dummy dummy contains the error message: bin/sh: cannot create /sys/class/gpio/gpio12/direction: Directory nonexistent When I use the terminal, I can see that the directory does exist and I am able to modify the contents to both set the IO direction and sucessfully turn the LED on and off. Could it be that I do not have the permission to create directories and modify files from livecode? How can I check this from livecode and fix it? …. assuming this is in fact a permission issue. Thanks, Mike ___ 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 ___ 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: Raspberry Pi and GPIO
No specific information I can help with but this seems like it might hold some answers for you if you dig enough. http://www.raspberrypi.org/forums/viewtopic.php?f=44t=73924 On Thu, Oct 9, 2014 at 1:43 PM, Michael Doub miked...@gmail.com wrote: I think that I have now confirmed that it is a permission issue. I added a “sudo” in front of the “echo” command. Now everything seems to be working. I still have the question about how to give livecode the correct permissions to access this files as it would seem more logical to use to do direct IO to the files rather that to be forced to use a shell command. I am running as the default pi user. Should this user have different permissions? If so how do you grant them? Regards, Mike On Oct 9, 2014, at 2:21 PM, Michael Doub miked...@gmail.com wrote: I am looking for some help from some of you with unix/raspberry pi experience. I have think that I have installed 7.0 rc 1 on my raspberry pi B+ properly. I am trying to figure out how to play with the GPIO’s. I am am able to execute the following to set up the IO put shell(echo 12 /sys/class/gpio/export) into dummy dummy is empty, However the next statement: put shell(echo out /sys/class/gpio/gpio12/direction) into dummy dummy contains the error message: bin/sh: cannot create /sys/class/gpio/gpio12/direction: Directory nonexistent When I use the terminal, I can see that the directory does exist and I am able to modify the contents to both set the IO direction and sucessfully turn the LED on and off. Could it be that I do not have the permission to create directories and modify files from livecode? How can I check this from livecode and fix it? …. assuming this is in fact a permission issue. Thanks, Mike ___ 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 ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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: Is this a bug or am I missing something?
Mark, I can see your line of reasoning but it does not quite track. The first line in the result field does show that the focus is with main stack card where the menu buttons are located. In my case, the second line indicates that the focus is on the sub stack field, *not* the result field. Perhaps we are seeing different things on different machines if the focusedObject is changing while the single line script (in the menu bar mouseDown handler) is running. To test for this I changed the menubar script to this: on mouseDown local theObject put the focusedObject into theObject put the long name of theObject return return theObject into field results end mouseDown I now get the following result: field Field with property of card id 1002 of stack Sub Stack of stack /Users/john/Downloads/Test stack.livecode field id 1004 of card id 1002 of stack Sub Stack of stack /Users/john/Downloads/Test stack.livecode” Both lines indicate that the focus in on the field on in the sub stack even though they are in different formats. If I am thinking about this right, it means that the focusedObject was changing during the execution of the single line script. Thanks, John On Oct 9, 2014, at 10:42 AM, Mark Wieder mwie...@ahsoftware.net wrote: John- My apologies - I forgot about the weirdness of menus on osx. My earlier response was based on linux, which has a much more reasonable approach to UI interaction. So here's what I see happening on osx: 1. click in the substack field 2. click on a menu item This actually moves the focus to the main stack because the menubar is part of the mainstack. You can see this if you examine the stack in the Application Browser or Project Browser. But buttons (and menus by extension) can't receive the focus, so the focus ends up being on the currrent card. That's the first line you see. But *now that you have put text into the result field*, it now becomes the focused object, and the second time you try to access the focused object you will be referring to th field. The second line reflects that fact. -- Mark Wieder ahsoftw...@gmail.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 ___ 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: Is this a bug or am I missing something?
Jaque, While this may be the case in general, when the menubar script is: on mouseDown put the long name of the focusedObject return return the focusedObject into field results end mouseDown The first part of the put (the long name of the focusedObject) results in a card on the main stack being written to the “results” field and the second part of the put (the focusedObject) results in the field on the sub stack being written to the “results” field. If I change the script to: on mouseDown local theObject put the focusedObject into theObject put the long name of theObject return return theObject into field results end mouseDown The execution changes and the “result” field displays the same object (the field on the subs tack) for both halves of the put being written to the “results” field albeit in a different format. This is leading me to the conclusion, perhaps incorrectly, that the focusedObject is changing during the execution of the first single line script. It may be doing the same thing in the second script as well but it is not seen because the focusedObject is being placed in a variable. Thanks, John On Oct 9, 2014, at 11:35 AM, J. Landman Gay jac...@hyperactivesw.com wrote: On 10/9/2014, 1:15 PM, Bob Sneidar wrote: I’m curious if the button itself is focusable. Buttons are focusable on Windows and Linux but not on OS X. -- 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 ___ 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: Reading Files
Thanks, Bob. Sounds like it would be easier and better to write a new external to do the job. Your info will save me some time. John Balgenorth On Oct 9, 2014, at 11:11 AM, Bob Sneidar bobsnei...@iotecdigital.com wrote: Livecode supports xcmds still so far as I know. The trouble is, those xcmds were compiled for OS 9, and we are way past that. There is no way I know to convert a compiled OS 9 xcmd to an OX S xcmd. You would need the source, and then you would have to refactor it in a current compiler. Bob S On Oct 8, 2014, at 20:13 , JB sund...@pacifier.commailto:sundown@pacifiercom wrote: The Hyper Talk was pretty simple. I had a few different file I/O externals that would allow me to sector read the disk. I don’t think they will import or I could use them. They really do not need an external window so if you know how I can import them that would be really great. John Balgenorth ___ 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 ___ 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: Accessing properties in sub stack fields
Pete, Thanks for the insight. The issue with the focusObject seems to be fairly nuanced and perhaps based on execution speed and platform. There is another message thread with the subject Is this a bug or am I missing something?”, that seems to indicate that the focusedObject is changing value during the execution of a single line of script. I will file a bug report if appropriate when that thread winds to a conclusion. Thanks, John On Oct 9, 2014, at 9:24 AM, Peter Haworth p...@lcsql.com wrote: I think this is an example of LC not always dereferening things as expected, especially when custom properties are involved. I've had similar issues in the past and in fact have just had another one where the following results in a runtime error: put the cMyProp of (line 1 of the recentCards) into tVar The following works around the error: get line 1 of the recentCards put the cMyProp of it into tVar As to why the name of the focusedObject and the focusedObject return references to two different objects, I think you should enter a QCC report. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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: Is this a bug or am I missing something?
On 10/9/2014, 2:10 PM, John wrote: While this may be the case in general, when the menubar script is: on mouseDown put the long name of the focusedObject return return the focusedObject into field results end mouseDown The first part of the put (the long name of the focusedObject) results in a card on the main stack being written to the “results” field and the second part of the put (the focusedObject) results in the field on the sub stack being written to the “results” field. It still holds. Menus are buttons, buttons are not focusable on Mac, so LC reports the card as focused. I haven't tracked the problem with two different values in your scripts, but my first thought was like Mark's: on mouseDown the focus changes to the menu button. Since buttons can't have focus on Mac, you get the card reported instead. I almost never use focusedObject. The handler worked fine when you checked the selectedfield, which is how I have always done it too. The discrepancy you're seeing is interesting (and maybe worth a bug report,) but the alternative method is easy enough. -- 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: Getting a list of object properties
Craig: Yes, I’d like a list of the properties of an object. Of course, the first thing I needed to understand with the “slider” object is that it is called a “scrollbar” which is shown in the property inspector. Wouldn’t it be great for newbies to have a tab in the object inspector that listed all of the settable property names and messages? Yes, some are shown in the BvG Docu 2 app, but it’s incomplete. I got a bit further. Then I tried to set the scroll, then found a reference to the scrollbardrag message in the docs. My question was intended to make my future investigations of poorly documented objects a bit easier. I know there is work being done on the documents and this period of rapid upgrading and adding of features is going to be a bit chaotic, but so many of the users on this list have been using LC for a long time and info on what hurdles newbies face can be useful for folks creating the learning materials. If I do: put the properties of scrollbar “axisEntry I don’t get anything in the message box. LC7.0 rC2, Mavericks. Bill On Oct 9, 2014, at 11:15 AM, dunb...@aol.com wrote: William. Do you mean the properties? Craig -Original Message- From: William Prothero proth...@earthednet.org To: Use-livecode Use-livecode use-livecode@lists.runrev.com Sent: Thu, Oct 9, 2014 1:49 pm Subject: Re: Getting a list of object properties Folks: Ok, I found how to set the end and start values. e.g. put the startValue of scrollBar “axisEntry Still, if anybody remembers the way to get a list of properties (a script), other than looking in the docs, I’d be interested. Best, Bill On Oct 9, 2014, at 10:44 AM, William Prothero proth...@earthednet.org wrote: Folks: Sometime back, I remember a posting about how to get a list of property names of an object. Anybody remember it? I’m trying to use a “slider” object and have googled, etc, to no avail. The docs don’t show “slider” and so it’s just one of those docs shortcomings that hopefully will eventually get solved. I tried the scrollbar object properties. That’s not it. Regards, Bill William A. Prothero http://es.earthednet.org/ ___ 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 ___ 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 ___ 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 ___ 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: Is this a bug or am I missing something?
The fog is lifting a bit and I can see why the card gets the focus. That the focusedObject can change part way through a single line of script is a bit unsettling. The original goal was to access a property of a field to update the menus before they are shown and using the selectedField seems solid. I don’t know if this is a bug or an observation. If anyone has an opinion about submitting a bug report, I am happy to submit one. Thanks, John On Oct 9, 2014, at 1:02 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 10/9/2014, 2:10 PM, John wrote: While this may be the case in general, when the menubar script is: on mouseDown put the long name of the focusedObject return return the focusedObject into field results end mouseDown The first part of the put (the long name of the focusedObject) results in a card on the main stack being written to the “results” field and the second part of the put (the focusedObject) results in the field on the sub stack being written to the “results” field. It still holds. Menus are buttons, buttons are not focusable on Mac, so LC reports the card as focused. I haven't tracked the problem with two different values in your scripts, but my first thought was like Mark's: on mouseDown the focus changes to the menu button. Since buttons can't have focus on Mac, you get the card reported instead. I almost never use focusedObject. The handler worked fine when you checked the selectedfield, which is how I have always done it too. The discrepancy you're seeing is interesting (and maybe worth a bug report,) but the alternative method is easy enough. -- 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 ___ 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: Getting a list of object properties
On Thu, Oct 9, 2014 at 1:09 PM, William Prothero proth...@earthednet.org wrote: If I do: put the properties of scrollbar “axisEntry I don’t get anything in the message box. LC7.0 rC2, Mavericks. That's because the properties is an array keyed by property name with the value being the property value. Beware though - the properties doesn't include all properties of an object - see the dictionary for more info, including the cryptic Others: Some other properties are excluded.! Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html ___ 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: Getting a list of object properties
Hi Bill, Am 09.10.2014 um 22:09 schrieb William Prothero proth...@earthednet.org: ... If I do: put the properties of scrollbar “axisEntry I don’t get anything in the message box. LC7.0 rC2, Mavericks. the properties of xyz will return an ARRAY, that's why :-) Do this: put the properties of scrollbar “axisEntry into tP;put the keys of tP Bill Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Getting a list of object properties
On 10/9/2014, 3:09 PM, William Prothero wrote: Wouldn’t it be great for newbies to have a tab in the object inspector that listed all of the settable property names and messages? Yes, some are shown in the BvG Docu 2 app, but it’s incomplete. You can see all the properties of any object in the dictionary: 1. Select the object in left-hand column. 2. Click the Type header in the keyword list. That sorts the list by type, and all the properties will be displayed together. As an aside, if you want to see information that isn't already shown, look in Preferences in the Documentation pane. You can set the types of information you want to display in the dictionary. There are more choices than just the defaults. If I do: put the properties of scrollbar “axisEntry I don’t get anything in the message box. LC7.0 rC2, Mavericks. That's because the properties are an array, which can't be displayed in the message box. You can write a little handler that lets you see them in the debugger though (which is my usual shortcut when I need to see something temporarily): on showProperties pObj get the properties of pObj breakpoint end showProperties Call it like this: showProperties the long name of scrollbar 1 Or revise it to combine the array and put the resulting text into a field somewhere. -- 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: Getting a list of object properties
William Prothero proth...@earthednet.org wrote If I do: put the properties of scrollbar axisEntry I don't get anything in the message box. LC7.0 rC2, Mavericks. Bill The dictionary entry for Properties does need revising, but it is correct insofar as you get an array not a list. I think this does what you want... put the properties of scrollbar axisEntry into myArray put keys(myArray) Hugh Senior FLCo ___ 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: Is this a bug or am I missing something?
Certainly true about buttons not being focusable on OSX, not so sure about the focus changing when the button is clicked. I put the cursor into a field on a card then entered this in the message box: put the long name of the focusedObject return the focusedObject The first line of the output referred to my card (not the field that had focus) and the second line to a field in the revmessagebox stack. No button clicks involved but there's still an inconsistency depending on just how you refer to the focusedObject. But, easy to work round as you pointed out. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser http://www.lcsql.com/lcstackbrowser.html and SQLiteAdmin http://www.lcsql.com/sqliteadmin.html On Thu, Oct 9, 2014 at 1:02 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 10/9/2014, 2:10 PM, John wrote: While this may be the case in general, when the menubar script is: on mouseDown put the long name of the focusedObject return return the focusedObject into field results end mouseDown The first part of the put (the long name of the focusedObject) results in a card on the main stack being written to the “results” field and the second part of the put (the focusedObject) results in the field on the sub stack being written to the “results” field. It still holds. Menus are buttons, buttons are not focusable on Mac, so LC reports the card as focused. I haven't tracked the problem with two different values in your scripts, but my first thought was like Mark's: on mouseDown the focus changes to the menu button. Since buttons can't have focus on Mac, you get the card reported instead. I almost never use focusedObject. The handler worked fine when you checked the selectedfield, which is how I have always done it too. The discrepancy you're seeing is interesting (and maybe worth a bug report,) but the alternative method is easy enough. -- 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 ___ 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: Raspberry Pi and GPIO
Thanks Andrew. I did the following: 1) edit /etc/rc.local (sudo nano /etc/rc.local) 2) added the following 2 line near the end, but in front of the last line (exit 0) chgrp -R dialout /sys/class/gpio chmod -R g+rw /sys/class/gpio 3) saved file 4) rebooted This allowed me to do the shell commands with out needing to add the “sudo” and to do livecode I/O. Playing with livecode I/O I have learned the following: setting the defaultfolder to “/sys/class/gpio/gpio12” put the files…. gets me what I expect. I see the direction and value files as well as some others that I have yet to explore. putting the defaultfolder returns “/sys/device/virtual/gpio/gpio12” Hummm, can livecode do I/O to virtual devices? Kind of….. These do NOT work: put URL “/sys/class/gpio/gpio12/value” or put 0 into URL “/sys/class/gpio/gpio12/value” open file “/sys/class/gpio/gpio12/value” for write write 0 to file “/sys/class/gpio/gpio12/value” wait 1 second write 1 to file “/sys/class/gpio/gpio12/value” close file “/sys/class/gpio/gpio12/value” — I suspect that the virtual driver keys off of the close to actually output the signal. This works quite well: open file “/sys/class/gpio/gpio12/value” for write write 0 to file “/sys/class/gpio/gpio12/value” close file “/sys/class/gpio/gpio12/value” In fact it can be pretty fast, I could not see any blinking at all with _delay set to 0, 1 was flicker, 2 was the start of a true blink, 3,4,5 were solid blinks. on mouseup repeat with _delay = 0 to 5 repeat 10 times _output 0 wait _delay ticks _output 1 wait _delay ticks end repeat end repeat end mouse up on _output val open file “/sys/class/gpio/gpio12/value” for write write val to file “/sys/class/gpio/gpio12/value” close file “/sys/class/gpio/gpio12/value” end _output Using the shell cmds were way too slow. Not even close to the performance of open, write, close. Hope this helps someone else playing with Raspberry Pi Regards, Mike On Oct 9, 2014, at 2:50 PM, Andrew Kluthe and...@ctech.me wrote: No specific information I can help with but this seems like it might hold some answers for you if you dig enough. http://www.raspberrypi.org/forums/viewtopic.php?f=44t=73924 On Thu, Oct 9, 2014 at 1:43 PM, Michael Doub miked...@gmail.com wrote: I think that I have now confirmed that it is a permission issue. I added a “sudo” in front of the “echo” command. Now everything seems to be working. I still have the question about how to give livecode the correct permissions to access this files as it would seem more logical to use to do direct IO to the files rather that to be forced to use a shell command. I am running as the default pi user. Should this user have different permissions? If so how do you grant them? Regards, Mike On Oct 9, 2014, at 2:21 PM, Michael Doub miked...@gmail.com wrote: I am looking for some help from some of you with unix/raspberry pi experience. I have think that I have installed 7.0 rc 1 on my raspberry pi B+ properly. I am trying to figure out how to play with the GPIO’s. I am am able to execute the following to set up the IO put shell(echo 12 /sys/class/gpio/export) into dummy dummy is empty, However the next statement: put shell(echo out /sys/class/gpio/gpio12/direction) into dummy dummy contains the error message: bin/sh: cannot create /sys/class/gpio/gpio12/direction: Directory nonexistent When I use the terminal, I can see that the directory does exist and I am able to modify the contents to both set the IO direction and sucessfully turn the LED on and off. Could it be that I do not have the permission to create directories and modify files from livecode? How can I check this from livecode and fix it? …. assuming this is in fact a permission issue. Thanks, Mike ___ 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 ___ 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 -- Regards, Andrew Kluthe and...@ctech.me ___ 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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
FYI iTunes Connect bug
It never ends with Apple and iOS 8/Xcode 6. I can't submit for review because the third question is missing from the web page. I had trouble getting onto the web site earlier today but chalked it up to a fluke and tried after lunch and had no problem logging on. Apple must have injected a bug into the web site. Other are having the same problem. See http://stackoverflow.com/questions/26286454/submit-for-review-button-grayed- out-xcode-6 Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net ___ 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] Excel Library 1.3.3 - A new command for creating a Pivot Table from SQL and more.
Dear LiveCode Users, The Excel Library 1.3.3 Commercial Version is released! In this version we have: 6 new commands and 1 new function - XCEL_Sheet_Visible_Set: sets the visibility of a worksheet. - XCEL_Sheet_Visible_Get - XCEL_PivotTable_New_FromSQL: creates a new Pivot Table linked to a SQL query (Windows only) - XCEL_PivotTable_Slicer_New: creates a new slicer for a Pivot Table (Windows only) - XCEL_PivotTable_Slicer_Activate: activates or deactives a slicer item. (Windows only) - XCEL_PivotTable_Slicer_Style_Set: sets the slicer style (color). (Windows only) - XCEL_PivotTable_Slicer_Delete: deletes a slicer. (Windows only) Slicers are Pivot table filters introduced in MS Excel 2010. Infortunatly the slicer object is not existing in MS Excel for Mac. And a fix: Command XCEL_Range_Values_Set for Windows is now properly working if the data to inject in a range is containing quotes. These new commands and functions are directly resulting from Excel Lib owners requests. The Excel Lib requires a copy of MS Excel installed on the computer for working. You can download the open source version of the Lib (version 1.0.1) by following this link: http://www.aslugontheroad.com/download/category/5-open-sources You can purchase a copy of the Excel Lib commercial version in your favorite store: https://livecode.com/store/marketplace/excel-library Best Regards, -- Zryip TheSlug http://www.aslugontheroad.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: the price of a context switch/function call
I took just about the worst case scenario: a single-line function I wrote a few weeks back: function isLeapYear Y return Y is a number and Y mod 4 = 0 and (Y mod 100 0 or Y mod 400 = 0) end isLeapYear If any function is going to pay the price for the cost of a function call, that's it -- there's minimal work to do in the actual function, so any overhead will be that much worse in proportion to how little actual work there is. Calling that with i = 1 to a million takes just over a second on my computer. If I inline the function, it takes 0.25 to 0.3 of a second. So the speed-up for inlining is substantial -- the overhead of calling the function is greater than the time spent on the actual code. But it's still not that bad. And any function with more than a few lines of code in it will be much less affected. ___ 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] New Android Externals
Hi LiveCoders Today I am releasing two new android externals as public beta. Until there is an official SDK for Android external development they will remain in beta and only be available as a bonus to mergExt Complete users. The externals are: - mergZXing - This external allows you to implement either an embedded barcode reader control or to use a third party barcode reader (Barcode Reader or Barcode Reader +) by Intent. - mergAV - This external allows you to implement a camera control for recording video and taking photos. For the time being you need to swap the iOS external for the Android external in the standalone settings of your app depending on which platform you are building for. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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: [ANN] New Android Externals
Hi Monte, [This external allows you to implement either an embedded barcode reader…] Any shortcuts about the best options to choose to suit this way to go ? Best, Pierre PS : i use for yet the third party barcode reader way. Le 10 oct. 2014 à 01:08, Monte Goulding mo...@sweattechnologies.com a écrit : Hi LiveCoders Today I am releasing two new android externals as public beta. Until there is an official SDK for Android external development they will remain in beta and only be available as a bonus to mergExt Complete users. The externals are: - mergZXing - This external allows you to implement either an embedded barcode reader control or to use a third party barcode reader (Barcode Reader or Barcode Reader +) by Intent. - mergAV - This external allows you to implement a camera control for recording video and taking photos. For the time being you need to swap the iOS external for the Android external in the standalone settings of your app depending on which platform you are building for. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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 : 06 03 95 77 70 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
Re: [ANN] New Android Externals
There's a demo stack in the external download and also the demo for iOS should work too because it's the same API. On 10 Oct 2014, at 10:28 am, Pierre Sahores s...@sahores-conseil.com wrote: Hi Monte, [This external allows you to implement either an embedded barcode reader…] Any shortcuts about the best options to choose to suit this way to go ? Best, Pierre PS : i use for yet the third party barcode reader way. Le 10 oct. 2014 à 01:08, Monte Goulding mo...@sweattechnologies.com a écrit : Hi LiveCoders Today I am releasing two new android externals as public beta. Until there is an official SDK for Android external development they will remain in beta and only be available as a bonus to mergExt Complete users. The externals are: - mergZXing - This external allows you to implement either an embedded barcode reader control or to use a third party barcode reader (Barcode Reader or Barcode Reader +) by Intent. - mergAV - This external allows you to implement a camera control for recording video and taking photos. For the time being you need to swap the iOS external for the Android external in the standalone settings of your app depending on which platform you are building for. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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 : 06 03 95 77 70 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 -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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: Is this a bug or am I missing something?
On 10/9/2014, 3:22 PM, John wrote: The fog is lifting a bit and I can see why the card gets the focus. That the focusedObject can change part way through a single line of script is a bit unsettling. The original goal was to access a property of a field to update the menus before they are shown and using the selectedField seems solid. I don’t know if this is a bug or an observation. If anyone has an opinion about submitting a bug report, I am happy to submit one. It can't hurt. The worst that can happen is they explain why it acts that way and close it. -- 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: [ANN] New Android Externals
You star Monte! What OS's are these compatible with (to the best of your knowledge) and which versions of LC can they be compiled from? Thanks Sean Cole *Pi Digital Productions Ltd* On 10 October 2014 00:31, Monte Goulding mo...@sweattechnologies.com wrote: There's a demo stack in the external download and also the demo for iOS should work too because it's the same API. On 10 Oct 2014, at 10:28 am, Pierre Sahores s...@sahores-conseil.com wrote: Hi Monte, [This external allows you to implement either an embedded barcode reader…] Any shortcuts about the best options to choose to suit this way to go ? Best, Pierre PS : i use for yet the third party barcode reader way. Le 10 oct. 2014 à 01:08, Monte Goulding mo...@sweattechnologies.com a écrit : Hi LiveCoders Today I am releasing two new android externals as public beta. Until there is an official SDK for Android external development they will remain in beta and only be available as a bonus to mergExt Complete users. The externals are: - mergZXing - This external allows you to implement either an embedded barcode reader control or to use a third party barcode reader (Barcode Reader or Barcode Reader +) by Intent. - mergAV - This external allows you to implement a camera control for recording video and taking photos. For the time being you need to swap the iOS external for the Android external in the standalone settings of your app depending on which platform you are building for. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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 : 06 03 95 77 70 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 -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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 ___ 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: iOS Icon sizes? Splash screen sizes?
Very useful!! Thank you, ˜Roger Roger On Oct 9, 2014, at 7:16 AM, Roger Eller roger.e.el...@sealedair.com wrote: This creates all necessary sizes from a high res master image. http://livecodeshare.runrev.com/stack/756/Scaliniimage-scaler-for-resolution-independence The sizes were also detailed on one of the slides in a presentation by Ralph DiMola at LiveCodeLIVE'14. ~Roger On Thu, Oct 9, 2014 at 1:11 AM, Chipp Walters ch...@chipp.com wrote: Where oh where would one find these? I have a great idea! Why not put a little button next to the fields in the Standalone builder to show info about them? *Icon sizes* iPhone Hi-Res iPhone iOS Hi-Res iPhone iPhone 6 Plus iPad Hi-Res iPad iOS 7 iPad iOS7 Hi-Res iPad *Splash Screens* iPhone Hi-Res iPhone 4 Inch iPhone iPhone 6 iPhone 6 Plus Portrait iPhone 6 Plus Lscape Hi-Res iPad Portrait Hi-Res iPad Landscape Chipp Walters ___ 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 ___ 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 ___ 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: [ANN] New Android Externals
I haven't tried working with them on anything but OS X but I don't think it would make any difference. On 10 Oct 2014, at 10:59 am, Sean Cole (Pi) s...@pidigital.co.uk wrote: You star Monte! What OS's are these compatible with (to the best of your knowledge) and which versions of LC can they be compiled from? Thanks Sean Cole *Pi Digital Productions Ltd* On 10 October 2014 00:31, Monte Goulding mo...@sweattechnologies.com wrote: There's a demo stack in the external download and also the demo for iOS should work too because it's the same API. On 10 Oct 2014, at 10:28 am, Pierre Sahores s...@sahores-conseil.com wrote: Hi Monte, [This external allows you to implement either an embedded barcode reader…] Any shortcuts about the best options to choose to suit this way to go ? Best, Pierre PS : i use for yet the third party barcode reader way. Le 10 oct. 2014 à 01:08, Monte Goulding mo...@sweattechnologies.com a écrit : Hi LiveCoders Today I am releasing two new android externals as public beta. Until there is an official SDK for Android external development they will remain in beta and only be available as a bonus to mergExt Complete users. The externals are: - mergZXing - This external allows you to implement either an embedded barcode reader control or to use a third party barcode reader (Barcode Reader or Barcode Reader +) by Intent. - mergAV - This external allows you to implement a camera control for recording video and taking photos. For the time being you need to swap the iOS external for the Android external in the standalone settings of your app depending on which platform you are building for. Cheers Monte -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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 : 06 03 95 77 70 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 -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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 ___ 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 -- M E R Goulding Software development services Bespoke application development for vertical markets mergExt - There's an external for that! ___ 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: Is this a bug or am I missing something?
John john@... writes: If I am thinking about this right, it means that the focusedObject was changing during the execution of the single line script. Yes, that's what I was trying to say. Sorry if it wasn't clear. -- Mark Wieder ahsoftw...@gmail.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
Codesigning standalones for Mac OS 10.9.5
Does anybody know what the status is with codesigning standalones built for Mac OS in a way that works with OS 10.9.5? I have not been able to find a definitive answer. I take it this article is out of date? http://revolution.screenstepslive.com/s/revolution/m/10695/l/112989 Has anybody had success and if so can you please share how you've done it? Thank you!! David Beck ___ 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: Is this a bug or am I missing something?
Mark, Rereading what you wrote it is clear - I was just being a bit thick. Some days it seems to take a while to get through. Thanks, John On Oct 9, 2014, at 5:09 PM, Mark Wieder mwie...@ahsoftware.net wrote: John john@... writes: If I am thinking about this right, it means that the focusedObject was changing during the execution of the single line script. Yes, that's what I was trying to say. Sorry if it wasn't clear. -- Mark Wieder ahsoftw...@gmail.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 ___ 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: Codesigning standalones for Mac OS 10.9.5
On 10/9/2014 8:25 PM, David Beck wrote: Does anybody know what the status is with codesigning standalones built for Mac OS in a way that works with OS 10.9.5? I have not been able to find a definitive answer. I take it this article is out of date? http://revolution.screenstepslive.com/s/revolution/m/10695/l/112989 Has anybody had success and if so can you please share how you've done it? Thank you!! David Beck I'm looking for this info as well. ___ 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: Any way to do this?
Kay, I tried your suggestion. This works if your are pasting within LC but it does not paste into a document. By the way, I am using groups and not images. So I modified your script as follows: on mouseUp copy group id 20412 and group id 20413 end mouseUp Any other suggestions? Charles Szasz csz...@mac.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: Is this a bug or am I missing something?
John- Thursday, October 9, 2014, 5:37:34 PM, you wrote: Rereading what you wrote it is clear - I was just being a bit thick. Some days it seems to take a while to get through. Well, to be fair, understanding what's going on here is not at all straightforward. -- -Mark Wieder ahsoftw...@gmail.com This communication may be unlawfully collected and stored by the National Security Agency (NSA) in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately. ___ 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