Re: get URL results in tsneterr(6) on Android, previously worked ok
I think that's a DNS error. One of my testers got that once and later it stopped by itself. I think she was using her ISP's DNS resolver. I'm not sure there's much we can do about it, it happens after the request is sent, but maybe someone else knows more. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On June 28, 2020 8:04:50 PM Alan Stenhouse via use-livecode wrote: Hi all Am re-building an app that's been running fine for over 2 years now and when attempting to get a URL I always get the error "tsneterr: (6)" contained in it with "could not resolve host" as the result. When I try the same code in the IDE it works as expected. I didn't previously include tsnet in my builds and I get this error whether I do or do not include it in my build for Android now. I do have "internet" selected in Application Permissions in the Standalone Settings. I also build up my httpHeaders manually to include username & pw and these are still valid. I recall previous discussions that were maybe similar to this issue but couldn't find anything in the forums/google/etc so far. Any hints or other pointers welcome - thanks! The code is: --- put "https://" into tPost put "Authorization: Basic" &"userName: " & CR & "password: " into tHeaders set the httpHeaders to tHeaders get URL (tPost) --- cheers Alan ___ 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
get URL results in tsneterr(6) on Android, previously worked ok
Hi all Am re-building an app that's been running fine for over 2 years now and when attempting to get a URL I always get the error "tsneterr: (6)" contained in it with "could not resolve host" as the result. When I try the same code in the IDE it works as expected. I didn't previously include tsnet in my builds and I get this error whether I do or do not include it in my build for Android now. I do have "internet" selected in Application Permissions in the Standalone Settings. I also build up my httpHeaders manually to include username & pw and these are still valid. I recall previous discussions that were maybe similar to this issue but couldn't find anything in the forums/google/etc so far. Any hints or other pointers welcome - thanks! The code is: --- put "https://" into tPost put "Authorization: Basic" &"userName: " & CR & "password: " into tHeaders set the httpHeaders to tHeaders get URL (tPost) --- cheers Alan ___ 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: Animation Engine: speed tips
Hi there submariner :-), can you just confirm the licensing of AE ? The demo code says it is dual Commercial & GLPL3 - but GitHub says it is Public Domain. Can you just say which of those is correct ? Thanks Alex. On 28/06/2020 10:27, Malte Pfaff-Brill via use-livecode wrote: Hi, off it. might be worth digging into AEs source and change the handlers from using cProps to local variables. Also, there might be unnecessary instances. of locking / unlocking screen that. should be refactored in AE. If anyone is going to take that up I’d be happy iff you shared your patches to the community. :-) on All the. Best, Malte ___ 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: Navigator won't go away!
Just came across this -- sorry for the frustration. I'll reach out to the LC crew about either updating or removing Navigator. gc On Fri, Mar 27, 2020 at 12:51 AM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > OK Sorry for the noise. I see now that the Files & Memory/User Extensions > setting in preferences needs to be pointed at /Users/ profile>/Documents/Livecode/ and NOT the plugins folder. Now all the > plugins are loading properly. > > Bob S > > > > On Mar 26, 2020, at 10:45 AM, Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Whoopsie, NO plugins are loading from the /Users/ profile>/Documents/Livecode/PlugIns/ folder! Wha??? > > > > Bob S > > > > > >> On Mar 26, 2020, at 10:41 AM, Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> > >> FOUND IT! It was in the actual MacOS APPLICATION BUNDLE!!! > >> > >> Hey LC, I appreciate the freebies, but a beta of 2.5?? Seriously? Geoff > is up to v6 now, and it’s open source, not honor-ware. If putting the newer > version in the Plugins folder is supposed to override the embedded one, it > doesn’t work. > >> > >> Bob S > >> > >> > >>> On Mar 26, 2020, at 10:33 AM, Bob Sneidar via use-livecode < > use-livecode@lists.runrev.com> wrote: > >>> > >>> I have removed every instance of Navigator from my hard drive (I > searched for them and deleted them) in preparation of installing the latest > version. I did this because on my home Mac, I keep getting a 2.5 beta > version of the plug-in every time I launch! > >>> > >>> I verified my plugin folder is set to /Users/ profile/Documents/Livecode/PlugIns/ > >>> > >>> I quit Livecode, then relaunch it. I still see revNavigator in the > Development/Plugins menu, and when I select it, the 2.5 beta version > loads!!! What the actual eff??? > >>> > >>> Where else would Livecode be getting these plugins from?? > >>> > >>> Bob S > >>> > >>> > >>> ___ > >>> 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 > ___ 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: Quick question: player object callbacks still working?
Hi I have an app that uses player callbacks and I am now using LC 9.6 to work on it and the callbacks work fine. The callbacks, duration, currentTime and other movie time properties are in timescale which is intervals/second as you said. I just created a small stack and did a basic test of callbacks and it worked. -create a new stack -drag a player to the card -drag a single line field to the card -put the following code in the card's script --- local sMovieScale on mouseup put the timescale of player 1 into sMovieScale set the callbacks of player 1 to (sMovieScale * 0), "secondcount" & CR & \ (sMovieScale * 1), "secondcount" & CR & \ (sMovieScale * 2), "secondcount" & CR & \ (sMovieScale * 3), "secondcount" end mouseup on secondcount pCallbackTime put (pCallbackTime / sMovieScale) && "seconds" into field 1 end secondcount - - click on the card to set the callbacks - play the movie to see if the seconds are displayed in the field. See if that works. If it does then maybe it is something with how you create your callback list. You can see if the callbacks are actually set by with the line ‘ in the message box put the callbacks of player “yourPlayer > On Jun 28, 2020, at 11:22 AM, David Bovill via use-livecode > wrote: > > The message is not being sent. I set the callbacks of the payer and test it > with: > set the callbacks of player 1 to "0,soundNotes" > > command soundNotes > — does not get sent > put the params > end soundNotes > > on currentTimeChanged theInterval > put theInterval > end currentTimeChanged > > on playPaused > put the currenttime of me > endplayPaused > > As I understand it the callback timing should be in “intervals" > > • The duration of player 1= 4665600 > • The timescale of player 1 = 9 > > Setting the callbacks to a range of values between 0 and the duration seems > to have no effect with regard to messages actually being sent. I’ve tried > putting the “soundNotes” handler in various positions - card, stack and > player. Still debugging... > On 28 Jun 2020, 06:35 +0100, Peter Bogdanoff via use-livecode > , wrote: >> David, >> >> Specifically what is not working? Setting the callbacks, the callbacks >> message not being sent or received? >> >> Sometimes I’ve seen that the interval between callbacks is so great, that >> the message is never sent before the player ends. That is highly dependent >> on the timeScale of the player. Put in the message box after the file is >> loaded into the player: >> >> put the timeScale of player “” >> >> to see if the numbers make sense. Some files will have very different >> timeScales (a Mac file with 600/second may have a Windows equivalent of a >> number in the millions). >> >> Peter Bogdanoff >> >>> On Jun 27, 2020, at 1:41 PM, David Bovill via use-livecode >>> wrote: >>> >>> I’ve been testing an idea for an app - and I can’t get the callbacks >>> property sending of messages. Does it still work with 9.6 MacOS? >>> ___ >>> 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
iOS sharing extensions: an important market for Livecode?
Not sure what people think, but for my part one of the main itches I have for creating mobile apps in Livecode is to figure out more advanced ways of processing data that is generated by all those mobile apps I have installed on my phone. So I REALLY want tone able to share from podcast apps, and browsers, and note / project management apps to a Livecode app I create on my mobile - get Livecode to massage the data then save it somewhere useful. But first I need to create that sharing extension - a test case would be to share a browser url from Chrome or Safari. Any ideas what I’m doing wrong? On 25 Jun 2020, 21:05 +0100, David Bovill , wrote: > Having another go at creating an iOS Share extension in Livecode. > > Ben I had a go with the code snippets you supplied, but I’m not getting my > app appearing in the list of apps available to share. I had a bit of a goose > around and tried a bunch of options for the info.plist file without result - > well in fact I’m getting the app launching with a black screen and then > crashing if I use the following style recipe: > NSExtension > > NSExtensionAttributes > > NSExtensionActivationRule > TRUEPREDICATE > > NSExtensionMainStoryboard > MainInterface > NSExtensionPointIdentifier > com.apple.share-services > > > This type of plist addition: > CFBundleDocumentTypes > > > CFBundleTypeName > Sound Garden > CFBundleTypeRole > Editor > LSItemContentTypes > > public.plain-text > > LSHandlerRank > Alternate > > > CFBundleTypeName > Audio > CFBundleTypeRole > Editor > LSItemContentTypes > > public.audio > > LSHandlerRank > Alternate > > > > Does not crash the app - but appears to do nothing? The following lesson > appears related - > http://lessons.livecode.com/m/4069/l/1069016-associating-a-file-type-file-extension-with-an-lc-ios-app > and I note there are / were issues with iPhone X and this lesson. > > My basic question is how do I get an iOS app to work with as an iOS sharing > extension such that in any app (say a web browser) where I select the share > icon I can use my Livecode app as something that handles the share? > On 20 Nov 2018, 18:40 +, Ben Rubinstein via use-livecode > , wrote: > > You need to do two things: > > > > - add code in your app to handle the "urlWakeUp" message, see the dictionary > > entry and > > http://lessons.livecode.com/m/4069/l/58672-using-custom-url-schemes > > > > - add entries in the app's plist to tell the operating system what file > > types > > your app can handle, see > > https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685 > > > > The latter is the bit you need to do for iOS - not sure what the Android > > equivalent is. > > > > > > On 19/11/2018 20:35, David Bovill via use-livecode wrote: > > > How could I create the ability for Livecode mobile apps - say iOS but > > > ideally also on Android) to add the ability for other apps to share to > > > them? > > > > > > - > > > https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html > > > > > > I can't find any thread here or in the forums? > > > ___ > > > 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: Animation Engine: speed tips
OK - will take a look. I suspect it is due to too many messages being sent due to the sort of line that is drawn when you create a curve by hand…. On 28 Jun 2020, 10:28 +0100, Malte Pfaff-Brill via use-livecode , wrote: > Hi, > > off > it. might be worth digging into AEs source and change the handlers from using > cProps to local variables. Also, there might be unnecessary instances. of > locking / unlocking screen that. should be refactored in AE. > If anyone is going to take that up I’d be happy iff you shared your patches > to the community. :-) > on > > All the. Best, > > Malte > ___ > 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: Quick question: player object callbacks still working?
The message is not being sent. I set the callbacks of the payer and test it with: set the callbacks of player 1 to "0,soundNotes" command soundNotes — does not get sent put the params end soundNotes on currentTimeChanged theInterval put theInterval end currentTimeChanged on playPaused put the currenttime of me endplayPaused As I understand it the callback timing should be in “intervals" • The duration of player 1= 4665600 • The timescale of player 1 = 9 Setting the callbacks to a range of values between 0 and the duration seems to have no effect with regard to messages actually being sent. I’ve tried putting the “soundNotes” handler in various positions - card, stack and player. Still debugging... On 28 Jun 2020, 06:35 +0100, Peter Bogdanoff via use-livecode , wrote: > David, > > Specifically what is not working? Setting the callbacks, the callbacks > message not being sent or received? > > Sometimes I’ve seen that the interval between callbacks is so great, that the > message is never sent before the player ends. That is highly dependent on the > timeScale of the player. Put in the message box after the file is loaded into > the player: > > put the timeScale of player “” > > to see if the numbers make sense. Some files will have very different > timeScales (a Mac file with 600/second may have a Windows equivalent of a > number in the millions). > > Peter Bogdanoff > > > On Jun 27, 2020, at 1:41 PM, David Bovill via use-livecode > > wrote: > > > > I’ve been testing an idea for an app - and I can’t get the callbacks > > property sending of messages. Does it still work with 9.6 MacOS? > > ___ > > 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: Animation Engine: speed tips
Hi, off it. might be worth digging into AEs source and change the handlers from using cProps to local variables. Also, there might be unnecessary instances. of locking / unlocking screen that. should be refactored in AE. If anyone is going to take that up I’d be happy iff you shared your patches to the community. :-) on All the. Best, Malte ___ 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