Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Mark Waddingham via use-livecode
It is only editbin.exe you need which might floating around online on its own somewhere... Also I think the subsystem is specified in a byte in the header of a PE executable so could be twizzled with a script that modifies that byte... Probably an easy exercise for anyone who likes poking aroun

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread hh via use-livecode
Oh, sorry Mike, I didn't think deep enough. Then your approach to add the field as "sort-element" to the array is from my point of view clearly the easiest way to go. > > > Mike B. wrote: > > > repeat for each line tKey in myArrayA["sortedWords"] > > > -- do whatever with each one myArrayA[tKey

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Richard Gaskin via use-livecode
Ah! Now the light comes on. This example, with the background provided in your previous post, make it all come together. Thanks! -- Richard Gaskin Fourth World Systems Mark Waddingham wrote: > Just an update on my previous post. I did the following: > > Took a community standalone engine

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Richard Gaskin via use-livecode
Roger Eller wrote: > Have you considered running a faceless Desktop app as a service, > having it watch for a socket message... Pierre Sahores and I have experimented with a wide range of socket servers*, with some very promising results. That said, our independent tests seem to arrive at the

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Mike Bonner via use-livecode
True, wasn't sure the field would still be available. I think the O.P. mentioned rebuilding the list in user order at a later time (as in from a later program run) by loading the array data from a file. By storing the list from the field as part of the array data, it carries the user index along

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread hh via use-livecode
> Mike B. wrote: > repeat for each line tKey in myArrayA["sortedWords"] > -- do whatever with each one myArrayA[tKey]. > end repeat Why administrate another object while you have already one? One could rebuild to string from array and sort in one step: put fld "myListField" into mySortList

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Malte Brill via use-livecode
Mark, thanks a lot for taking the time to explain things here! Very valuable information! I will certainly give it a try. Just need to install Vis Studio :-) While you are here: would you think, that a call to cURL should work on Windows server? For the life of me I can not get it to, even for

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Mark Waddingham via use-livecode
Hi Malte, Just an update on my previous post. I did the following: Took a community standalone engine from inside an installed LiveCode distro on Windows and copied to the desktop. Tried (from Command Prompt): Standalone.exe -ui Noticed that I just got a newline in the console, and nothin

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Mark Waddingham via use-livecode
On 2017-05-05 18:32, Richard Gaskin via use-livecode wrote: Thanks for that background, Mark. Please help me better understand the implications: does this change mean that we can no longer run standalones facelessly on Windows by just calling them with the -ui flag while hideConsoleWindows is t

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Richard Gaskin via use-livecode
Thanks for that background, Mark. Please help me better understand the implications: does this change mean that we can no longer run standalones facelessly on Windows by just calling them with the -ui flag while hideConsoleWindows is true? I have a number of apps that provide both GUI and fa

Re: http calls blocked by virus protection?

2017-05-05 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > On 5/5/2017 10:29 AM, Richard Gaskin via use-livecode wrote: >> Paul Dupuis wrote: >> >> > Outbound standard http connections on port 80 should NOT be block - >> > BY DEFAULT - but I just ran into a customer at a commercial >> > research site where the company block ALL inter

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Richard Gaskin via use-livecode
Mike Bonner wrote: > Is there a specific reason you need to use a built exe for this? lc > server can use stack files (start using path/to/stack) as well as > "include"ing or "require"ing extra script files, so unless you're > using functionality only available in the desktop version of lc, you

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Richard Gaskin via use-livecode
I think I see the problem here: Any program that can read from stdin and write to stdout can be used as a CGI, and this includes LC standalones... - BUT - LC Server scripts are incompatible with LC Script on the desktop. In fact, it's that incompatibility that made me switch back to using s

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Bob Sneidar via use-livecode
I read your post a bit closer. Can you just repeat for each line tLine in tText, then increment a counter and use the counter as the key in the array? Bob S put "Bob" & cr & "Andy" & cr & "Fred" into tText repeat for each line tWord in tText add 1 to tCount put tWord into myArray [tCount] end r

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Jim Lambert via use-livecode
Might a numbered array work for you, where the key corresponds to the line number? [1][theWordonLineOne][otherData] [2][theWordonLineTwo][otherData] Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to sub

Re: http calls blocked by virus protection?

2017-05-05 Thread Paul Dupuis via use-livecode
On 5/5/2017 10:29 AM, Richard Gaskin via use-livecode wrote: > Paul Dupuis wrote: > > > Outbound standard http connections on port 80 should NOT be block - > > BY DEFAULT - but I just ran into a customer at a commercial research > > site where the company block ALL internet connections except those

Re: http calls blocked by virus protection?

2017-05-05 Thread Peter Bogdanoff via use-livecode
Thank you all; this gives me a start! Peter > On May 5, 2017, at 8:02 AM, Trevor DeVore via use-livecode > wrote: > > On Thu, May 4, 2017 at 11:06 PM Peter Bogdanoff via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> >> I have a user who seems to have a good Internet connection,

Re: http calls blocked by virus protection?

2017-05-05 Thread Trevor DeVore via use-livecode
On Thu, May 4, 2017 at 11:06 PM Peter Bogdanoff via use-livecode < use-livecode@lists.runrev.com> wrote: > > I have a user who seems to have a good Internet connection, but my > Livecode application can’t connect to a remote server using http. > > He’s on Windows. Is it possible that some virus pr

Re: Image Caching / defaultfolder weirdness

2017-05-05 Thread Mark Waddingham via use-livecode
On 2017-05-05 14:33, Phil Jimmieson via use-livecode wrote: Hi folks, I’ve got an application for Mac and PC which has been developed over a number of years and versions of LiveCode and I’m currently trying to build it with LiveCode 8 on MacOS 10.12. If you are using referenced images (those wi

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Mike Bonner via use-livecode
Bob, can you do a custom sort using order by with sqlite? I did some digging and see a way, but for this purpose it seems complicated and I'm wondering if there is something better than what I found. Basically what I found was this.. ORDER BY CASE ID WHEN 4 THEN 0 WHEN 3 THEN 1 WHEN

Re: Image Caching / defaultfolder weirdness

2017-05-05 Thread Bob Sneidar via use-livecode
Are your image objects linked to the image files on disk? If so, then include the folder containing your images in your stack files section of the stack properties. That works for me. Also I am sketchy on how you are building the standalone. If you set up your stack files properly there will b

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Bob Sneidar via use-livecode
Why not load the array into a memory sqlite database and query using order by? Bob S > On May 5, 2017, at 02:30 , Tiemo Hollmann TB via use-livecode > wrote: > > Hello, > > I have a list field of words and a correspondent array with the words of the > field as the keys plus some data per ke

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Mark Waddingham via use-livecode
Hi Malte, On 2017-05-04 20:34, Malte Brill via use-livecode wrote: Hi all, has anybody successfully done this? Especially on Windows? I would like to launch a livecode built application from a liveCode server script and get the output back (on a Server that I control) Is that possible? If so, h

Re: http calls blocked by virus protection?

2017-05-05 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > Outbound standard http connections on port 80 should NOT be block - > BY DEFAULT - but I just ran into a customer at a commercial research > site where the company block ALL internet connections except those > to pre-approved web sites, so some places have really extreme > in

Re: Image Caching / defaultfolder weirdness

2017-05-05 Thread prothero--- via use-livecode
Can you use the specialfolderpath function to get the correct locations of your resources on various os's? Bill William Prothero http://es.earthednet.org > On May 5, 2017, at 5:33 AM, Phil Jimmieson via use-livecode > wrote: > > Hi folks, > I’ve got an application for Mac and PC which has bee

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Mike Bonner via use-livecode
Is there a specific reason you need to use a built exe for this? lc server can use stack files (start using path/to/stack) as well as "include"ing or "require"ing extra script files, so unless you're using functionality only available in the desktop version of lc, you might be able to bypass the n

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Alex Tweedly via use-livecode
Could you have the LC Script pass a temp file name to the helper app which can then write to that file rather than stdout ? (maybe not really a "temp file", but simply a file chosen by the LC Server script based on current millisecs time or some such thing, and deleted after everything is finis

Re: http calls blocked by virus protection?

2017-05-05 Thread Matthias Rebbe via use-livecode
It seems that your application is blocked by a firewall. Either the Windows firewall or maybe a 3rd party security software. But it is unlikely that the security software just blocks your app w/o having asked at least once if the user wants to allow outgoing connections for that app. Some sett

RE: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Ralph DiMola via use-livecode
I am running my Android Remote Tester LC app as a Windows Service on Win 10. It has a UI for debugging/examining operation when run in the Windows UI and this UI does not cause any problems when running as a service. I just startup up everything in the preopenstack. This app does socket communic

Image Caching / defaultfolder weirdness

2017-05-05 Thread Phil Jimmieson via use-livecode
Hi folks, I’ve got an application for Mac and PC which has been developed over a number of years and versions of LiveCode and I’m currently trying to build it with LiveCode 8 on MacOS 10.12. A single folder contains both my App and some other folders that contain supporting materials - images

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Malte Brill via use-livecode
Hi Roger, indeed, I have considdered that. But I have no experience on how this would behave. Actually what I was trying to do is reducing the involved components, instead of introducing more and more over the course of building the system. LC - Server came natural there, as it would have allow

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Roger Eller via use-livecode
Have you considered running a faceless Desktop app as a service, having it watch for a socket message, or a file, or even clipboard content to signal it to do something. You could keep an account signed in with an app running -with-or-without a UI. ~Roger On Fri, May 5, 2017 at 6:48 AM, Malte Br

Re: http calls blocked by virus protection?

2017-05-05 Thread Paul Dupuis via use-livecode
I should have added that WHEN windows firewall does block something, a message typically appears warning the user, so if that is what is happening, your user should be seeing some sort of error message from Windows. On 5/5/2017 7:03 AM, Paul Dupuis via use-livecode wrote: > I am not sure what sort

Re: http calls blocked by virus protection?

2017-05-05 Thread Paul Dupuis via use-livecode
I am not sure what sort of connection you are doing to your server, but both OSX's Firewall and Windows Firewall will try to block *incoming* connections to an app (for example, if you have your app listening for an incoming connection using the 'accept' command. Outbound standard http connections

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Malte Brill via use-livecode
Hi Charles, thanks a lot for the information. I am afraid I can not use it in this context, as this is for an Open Source project. For other things this might be an option. Cheers, Malte > Hi Malte, > > If you are able to use the commercial version of LC server, the tsNet > external is suppo

Re: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Charles Warwick via use-livecode
Hi Malte, If you are able to use the commercial version of LC server, the tsNet external is supported which provides equivalent functionality to libUrl. Regards, Charles On 5/05/2017 8:48 PM, Malte Brill via use-livecode wrote: Thanks Dan, but that is not what I am after… I have a server

RE: Calling a livecode executable -ui from LC server and get back a result.

2017-05-05 Thread Malte Brill via use-livecode
Thanks Dan, but that is not what I am after… I have a server side liveCode application, which needs to talk to a couple of webservices from time to time. While this works nicely on the desktop, it does not do so on Server, as Server lacks some libURL functionality. First workaround was to shell

AW: looking for a smart approach to "sort" an array

2017-05-05 Thread Tiemo Hollmann TB via use-livecode
Nice idea, much easier, as my idea Thanks Mike! Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Mike Bonner via use-livecode Gesendet: Freitag, 5. Mai 2017 11:47 An: How to use LiveCode Cc: Mike Bonner Betreff: Re: looking f

Re: looking for a smart approach to "sort" an array

2017-05-05 Thread Mike Bonner via use-livecode
It might be easiest to just have a single separate key that contains the user sorted list, then use the data of that key itself to access the rest of the array. So if you have 5 keys, word1,word2,word3,word4,word5, but the user orders them in reverse, your sorted words single key would contain wor

looking for a smart approach to "sort" an array

2017-05-05 Thread Tiemo Hollmann TB via use-livecode
Hello, I have a list field of words and a correspondent array with the words of the field as the keys plus some data per key. I can store the array in a file, read it later from file and rebuild the list of words from the keys of the array. Up to now, I had this list of words alphabetically sorted