Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread Peter Bogdanoff via use-livecode
Is what you mean by creating a memory database as covered in this tutorial? http://lessons.livecode.com/m/4069/l/565718-how-to-create-and-use-an-sqlite-database Peter > On Dec 31, 2018, at 5:16 PM, Ralph

Re: LiveCode 9.0.2 on Windows unable to build for Mac?!?!?!?

2018-12-31 Thread Monte Goulding via use-livecode
> On 1 Jan 2019, at 12:25 pm, Brian Milby via use-livecode > wrote: > > Looks like the copy destination moved. Checking 9.0 against 9.0.2: > Resources/_MacOS -> MacOS > > I have not checked on my Mac to see if the same change is evident. This is deliberate. The MacOS folder is only for

Re: LiveCode 9.0.2 on Windows unable to build for Mac?!?!?!?

2018-12-31 Thread Brian Milby via use-livecode
Looks like the copy destination moved.  Checking 9.0 against 9.0.2: Resources/_MacOS -> MacOS I have not checked on my Mac to see if the same change is evident. Thanks, Brian On Dec 31, 2018, 4:41 PM -0500, Paul Dupuis via use-livecode , wrote: > Running under Windows 10, with LiveCode 9.0.2

Re: Lock and Unlock Screen (was Refactoring. etc...)

2018-12-31 Thread Ron Metzker via use-livecode
Hi Alex, This is fairly long but there is no code in the explanation. I ran into this problem last year. I have a stack that monitors 3 security systems. You can switch between the system with the one stack or you can use 3 separate stacks to monitor the different systems. Here was my

Re: Roadmap

2018-12-31 Thread Tom Glod via use-livecode
thats new...nice find! happy new year richmond & everyone On Mon, Dec 31, 2018 at 3:53 PM Richmond via use-livecode < use-livecode@lists.runrev.com> wrote: > https://livecode.com/resources/roadmap/ > > Last Updated on September 24, 2018 > > Tut, tut. > > Richmond. > >

Re: Lock and Unlock Screen (was Refactoring. etc...)

2018-12-31 Thread Alex Tweedly via use-livecode
Yeah, that seems like it might work - but it doesn't. on mouseUp    put 1 && the lockscreen after msg    set the lockscreen to true    put 2 && the lockscreen after msg    wait 0 seconds with messages    put 3 && the lockscreen after msg end mouseup gives 1 false 2 true 3 true I

Re: Whoops: Getting the name of the script only stack an handler is in

2018-12-31 Thread William Prothero via use-livecode
Folks: Ok, if there is a way to get the name of the stack containing a particular handler, I’ll use it. Otherwise, each “feature” stack will return a precoded name. I had to fiddle to get the polling to work without errors. The impetus for this is to re-factor the code for a project that’s

Whoops: Getting the name of the script only stack an handler is in

2018-12-31 Thread William Prothero via use-livecode
Folks: Sorry, I accidentally sent the email before finishing it. Here’s the complete message. But perhaps I’ve solved it. I only need to put the name of the “feature” stack in the pollActions handler. Anyway, I still have my question. I’m trying to implement a structure where I can simply add

Getting the name of the script only stack an handler is in

2018-12-31 Thread William Prothero via use-livecode
Folks: I’m trying to implement a structure where I can simply add script only stacks that seamlessly add capability to my app. To do this, I have all of the “feature” stacks in a given folder, and when I initialize the app, I start using all of the “feature” stacks. Then I want to initialize

RE: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread Ralph DiMola via use-livecode
A SQLite memory database is the same as a SQLite file database except it's created for just the instance that app is running. You have to create table(s) and field(s) for those table(s). Then the app then populates the data and queries it. SQLite memory database supports the same SQL syntax as a

LiveCode 9.0.2 on Windows unable to build for Mac?!?!?!?

2018-12-31 Thread Paul Dupuis via use-livecode
Running under Windows 10, with LiveCode 9.0.2 STABLE, I was just trying to rebuild a Standalone for Window and OSX. and it fails. The symptom is that, for all folders in the "Copy Files" tab of the Standalone Settings, only the folders are copied/created and NOT A SINGLE FILE in the folders is

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread J. Landman Gay via use-livecode
I'm generally deficient when it comes to databases but curious how one creates a memory based one. Is there a trick, and does it work with others besides sql? This is probably a newbie question. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Roadmap

2018-12-31 Thread Richmond via use-livecode
https://livecode.com/resources/roadmap/ Last Updated on September 24, 2018 Tut, tut. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread Mark Wieder via use-livecode
On 12/30/18 8:52 PM, Tom Glod via use-livecode wrote: and definitely had a couple of "how did this code ever work?" moments ...heh...been there... -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread Geoff Canyon via use-livecode
On Sun, Dec 30, 2018 at 11:58 AM Andre Alves Garzia via use-livecode < use-livecode@lists.runrev.com> wrote: > I wish we had better refactoring tools > so that we could rename a handler and all code that called that handler > was fixed, or stuff such as rename variable... > One of the reasons I

Re: Get RGB color of a specific screen location

2018-12-31 Thread Phil Davis via use-livecode
set the screenMouseLoc to globalLoc(tLocWithinMyStack) put the mouseColor into tTheColorAtThatScreenLoc Phil Davis On 12/31/18 9:24 AM, Beat Cornaz via use-livecode wrote: How do I get the RGB color of a pixel of an image? I know the function the MouseColor, which gives me the RGB numbers

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread Bob Sneidar via use-livecode
Find/Replace works great. I've done it a few times, so long as the thing you are finding has a unique name that cannot be a part of any other bit of code, you should be fine. Backup your stack of course before doing something so drastic. A while ago, the LC dev team optimized the search

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread Bob Sneidar via use-livecode
For multiple recursions into an array I came up with a method for loading an array into a memory based sql database. Subsequent queries take less time, depending of course on how complex they are, but you can do lots of cool thinks, like complex filtering / sorts, calculations, etc. to a

Get RGB color of a specific screen location

2018-12-31 Thread Beat Cornaz via use-livecode
How do I get the RGB color of a pixel of an image? I know the function the MouseColor, which gives me the RGB numbers under the cursor. What I need is to get the RGB of a specific screen location - I need to make an avarage of e.g. 5x5 pixels. So how do I get the RGB numbers of e.g. location

Re: Lock and Unlock Screen (was Refactoring. etc...)

2018-12-31 Thread Bob Sneidar via use-livecode
There IS a method for unlocking all. wait 0 seconds with messages. All screen locks are cleared when the idle message is sent. Bob S > On Dec 31, 2018, at 07:00 , Alex Tweedly via use-livecode > wrote: > > So it needs to work like a nested counter - but maybe there should be a >

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread hh via use-livecode
> Craig wrote: > Not sure if this is still relevant in LC, but in HC, lock screen > commands were queued. So the fix, so that one did not have to count > the number of locks through perhaps several handlers, was: > > repeat until the lockScreen is false >unlock screen > end repeat Yes! Or

Re: Refactoring is your friend / moving from 6.x to 9.x

2018-12-31 Thread dunbarxx via use-livecode
Not sure if this is still relevant in LC, but in HC, lock screen commands were queued. So the fix, so that one did not have to count the number of locks through perhaps several handlers, was: repeat until the lockScreen is false unlock screen end repeat Craig -- Sent from:

Re: Interrupting "Wait"

2018-12-31 Thread Alex Tweedly via use-livecode
In essence, you want something like the following: (this assumes a capital Q typed to the card will quit the display. It could easily be changed to clicking a button - so long as the mouseUp handler would set the script-local when appropriate). local sStopRequested command playShow    local

Re: Interrupting "Wait"

2018-12-31 Thread Sannyasin Brahmanathaswami via use-livecode
Its more complicated then that. I have struggled with this before, it’s about "running a show" of events where there is wait time and lock screen involved and the user want to quit in the middle of a repeat loop The following the repeat loop takes over the CPU, so a mouse down on a button

Re: Lock and Unlock Screen (was Refactoring. etc...)

2018-12-31 Thread Alex Tweedly via use-livecode
On 31/12/2018 13:33, Sannyasin Brahmanathaswami via use-livecode wrote: Aloha Malte: I agree with this. I can't imagine any use case where the last attempt the message path/hierarchy, to unlock screen, would where you actually *want* to have the screen locked. This has been a "nuisance" for

Re: Interrupting "Wait"

2018-12-31 Thread Tore Nilsen via use-livecode
Depending on the action the user might take, have you tried: wait until the mouse is down Best regards Tore Nilsen > 31. des. 2018 kl. 14:39 skrev Sannyasin Brahmanathaswami via use-livecode > : > > If you issue a > > Wait for 3 seconds with messages > > And, after 1 second, the users

Re: Lock and Unlock Screen (was Refactoring. etc...)

2018-12-31 Thread Sannyasin Brahmanathaswami via use-livecode
Aloha Malte: I agree with this. I can't imagine any use case where the last attempt the message path/hierarchy, to unlock screen, would where you actually *want* to have the screen locked. This has been a "nuisance" for years. As you say, it is a property, on/off, and should not be

Interrupting "Wait"

2018-12-31 Thread Sannyasin Brahmanathaswami via use-livecode
If you issue a Wait for 3 seconds with messages And, after 1 second, the users want to continue. Is that a way to interrupt "wait" ? Ah… yes, I know…setting a flag and issuing a send in time command will do it. But "wait" in so easy. BR ___

Re: Lock and Unlock Screen (was Refactoring. etc...)

2018-12-31 Thread Sannyasin Brahmanathaswami via use-livecode
Aloha Malte: I agree with this. I can't imagine any use case where the last attempt the message path/hierarchy, to unlock screen, would where you actually *want* to have the screen locked. This has been a "nuisance" for years. As you say, it is a property, on/off, and should not be dependent

[ANN] This Week in LiveCode 161

2018-12-31 Thread panagiotis merakos via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #161 here: https://goo.gl/URi97G This is a weekly newsletter about LiveCode, focussing on what's been going on in and around