Re: Non-blocking transfers ...
slylabs13 wrote The way others have proposed this in the past is to have an agent of some sort, a web agent or else a standalone app do the work for you, while your app periodically checks the status of the transfer in some way. I don't think that would work for iOS though. Bob Thanks Bob, but ... yes, can't work on iOS (/don't know on android/). Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Non-blocking-transfers-tp4652248p4652251.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: Non-blocking transfers ...
Thanks, but ... it's for a library that I wrote totally in Livecode (/so .. can run on any platform/) and I would like to avoid the use externals or other tricks ... ;) If I understand correctly, currently, in Livecode we have ONLY the load (HTTP GET), and nothing else ... right ? Thanks, Guglielmo Braguglia -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Non-blocking-transfers-tp4652248p4652264.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: An iPhone app as a remote control for an iPad app. Is it possible?
paolomazza wrote Hi all, how to use an iPhone App as a remote control for an iPad app ? I am wondering if I can set any communication between two iOS apps (besides internet connection) ? Bluetooth ? Set a wifi intranet ? Socket communications? Is there any external to do this? All the best Paolo Mazza ___ use-livecode mailing list use-livecode@.runrev Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Hi Paolo, yes, you can connect different devices using the socket and yes, there is an external to use socket in iOS because ... socket syntax and functionality is still NOT directly available on iOS (/planned for a future release/). On externals look for *rrsocket* Ciao, Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/An-iPhone-app-as-a-remote-control-for-an-iPad-app-Is-it-possible-tp4340382p4340652.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: Does 'export image to file' give any warnings?
Graham Samuel-4 wrote I'm using 'export image' to put an image into a file without invoking a 'save' dialog - this is what my user wants. However, I can't see any obvious way of knowing that the new image has the same name has an existing one and would therefore overwrite it. I set up a button that does on mouseUp put the defaultFolder into temp export img ThePicto URL (binfile: temp /meagain.jpg) as JPEG put it= ; result=(the result) end mouseUp However may times I do this, I always get the file meagain.jpg with no indication of any difference between the first and subsequent invocations. Obviously I can search the directory myself to look for the recurrence of the file name, and I guess that's what I'm going to do,but I wondered if anyone knows if this form of statement in LC produces any kind of error message and if so, how one can detect it. After all, any kind of 'write file' operation can fail. TIA Graham ___ use-livecode mailing list use-livecode@.runrev Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Hi Graham, perhaps I did not understand well your question, but why you don't test for the existence of the file before the export ? You can just use : if there is a file temp /meagain.jpg then ... ... and decide what to do ... :) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Does-export-image-to-file-give-any-warnings-tp4331049p4331120.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: Scripting a text to binary digits converter
Bryan McCormick wrote JB, Guglielmo This appears to work for my purposes and is pretty speedy. See anything that might break? --- function convertTextToBinary varText repeat with n = 1 to the number of chars of varText put chartonum(char n of varText) into theNum if theNum =64 and theNum = 127 then put 0baseConvert(theNum,10,2) after tConverted else if theNum =64 then put 00baseConvert(theNum,10,2) after tConverted else put baseConvert(theNum,10,2) after tConverted end if end repeat return tConverted end convertTextToBinary ___ use-livecode mailing list use-livecode@.runrev Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode Just for fun I tried with a small script you function : put convertTextToBinary(theText) into field outField ... and the binaryDecode : put binaryDecode(B*, theText, binText) into numItems put binText into field outFieldBin both inserted in two separate repeat to repeat the same statements 200 times, storing the millisecond to execute. Whit your function, on my Win 7 64 bit system, I have between 60 and 70 milliseconds, with the binaryDecode() + the put statemet (/... two separate statements/) I have between 20 and 30 milliseconds :) So .. the Livecode binaryDecode + the put statement is minimum *TWO* time faster than calling your function ;) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scripting-a-text-to-binary-digits-converter-tp4254413p4254500.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: libURL Script Error After Upgrading to LiveCode 5.02
Gregory Lypny wrote The following two lines used to work fine in a startup script. libURLSetLogField the long id of fld “Connection Log of card Connection of stack “Headquarters libURLSetFTPListCommand “NLST” Today I upgraded to version 5.02 of LiveCode and I get the following error message. Handler: can't find handler Object: Sign In Line: libURLSetLogField the long id of fld Connection Log of card Connection of stack Headquarters” Hint: libURLSetLogField Any thoughts? Yes, same behavior for me with different handlers ... ... there must be an error on Livecode 5.02 ... it seems to start your application before he has finished loading its own modules :( If you first open Livecode 5.02, wait until Livecode is completely started and then you start your application ... no problem and all work fine. Hope this help, Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/libURL-Script-Error-After-Upgrading-to-LiveCode-5-02-tp4243988p4245339.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: libURL Script Error After Upgrading to LiveCode 5.02
Gregory Lypny wrote Hi Guglielmo, Thank you for your response. I will do what you say while revising my app, but does it mean that the standalone will not be affected? Gregory No, fortunately the standalone applications seem to work normally (/... tried on OS X 10.6.8 and Win 7 64 bit/) ... :-) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/libURL-Script-Error-After-Upgrading-to-LiveCode-5-02-tp4243988p4246643.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: Mac OS-X standalone from Windows machine
Levi Kendall wrote Hi All, I'm having a bit of a problem making a standalone application for OS-X from a Windows machine. Actually making it is not the problem really, running it is. The save to standalone works fine and I end up with what I am assuming is the executeable in a structure that looks as such: My Application.app \ Contents \ MacOS \ My Application What seems to be the problem is the file at the end My Application does not get the execute flag set on it when being transfered to the OS-X filesystem. My current method of transport was simply to zip the entire directory and then unzip the file on the Mac. This would leave the directory structure as is, which I'm assuming is necessary. However the problem is the My Application executeable needs to have CHMOD run on it in order to properly execute because of the execute flag missing on the OS-X filesystem. Does anyone have any solution to work around this? Is it necessary to have some kind of installer program to properly set this up on the OS-X end? Or is there another way to handle it? If at all possible, I would like to be able to handle this from the Windows machine, rather than actually needing an OS-X box. -Levi Kendall ___ use-revolution mailing list use-revolution@.runrev Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution Sorry, no problem here ... ... I created a new Test application on Win 7 64 using LiveCode 5.0.2, saved and generated the Standalone for Win/OSX/Linux. Next copied the generated folder (/which contains Win/OS/Linux versions/) on a shared folder which I can access from an iMac running OS X 10.6.8, copied on my desktop, double-click on the Test.app ... and the program started :-) Guglielmo -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Mac-OS-X-standalone-from-Windows-machine-tp297391p4246680.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