Re: date libraries/routines for LCG

2018-05-09 Thread Brian Milby via use-livecode
Is this one on your list? LiveCode library to handle date and time functions https://github.com/derbrill/libdate On Wed, May 9, 2018 at 8:57 AM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > Yep, Master is on my list, but I should make sure I pull the latest > version. >

Re: Active window and mouse location

2018-05-09 Thread Douglas Ruisaard via use-livecode
Thanks, as always, for the responses. Getting old means you forget about the differences between Commands and Functions... but anyway My MAIN question was whether there was a way to get LC to make a desktop window THE active, top-most window... next necessarily the LC's window (in my case) but

Re: Active window and mouse location

2018-05-09 Thread Mike Bonner via use-livecode
While the solution is not perfect, you can have your script set the systemwindow of stack "stackname" to true wait 1 tick set the systemwindow of stack "stackname" to false (Saw this on the forums at one time or another, think the thanks go to Lagi) The only negative of this method is the

Re: date libraries/routines for LCG

2018-05-09 Thread Mike Kerner via use-livecode
Thank you... On Wed, May 9, 2018 at 11:29 AM Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > Is this one on your list? > > LiveCode library to handle date and time functions > https://github.com/derbrill/libdate > > On Wed, May 9, 2018 at 8:57 AM Mike Kerner via

Re: date libraries/routines for LCG

2018-05-09 Thread Mike Kerner via use-livecode
Yep, Master is on my list, but I should make sure I pull the latest version. On Tue, May 8, 2018 at 9:14 PM Mike Doub via use-livecode < use-livecode@lists.runrev.com> wrote: > Have you checked the Master Library? > > https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0 > > On

Re: Active window and mouse location

2018-05-09 Thread Lagi Pittas via use-livecode
Hi Doug, Could this thread be helpful? http://forums.livecode.com/viewtopic.php?f=7=30984 and this lesson http://lessons.livecode.com/m/2592/l/125868-searching-for- an-open-window-by-title Only for Livecode "windows"/stacks though Failing that, using FFI with C would do it You need to get

Re: Active window and mouse location

2018-05-09 Thread Bob Sneidar via use-livecode
Here is what I do and it works a peach. Assuming tPath is a valid path to a folder: if tPlatform contains "Win" then replace "/" with "\" in tPath put "explorer " & quote & tpath & quote into theCmd put shell(theCmd) into theResult else put "property the_path : " &

Re: Active window and mouse location

2018-05-09 Thread Klaus major-k via use-livecode
Hi Bob, > Am 09.05.2018 um 19:05 schrieb Bob Sneidar via use-livecode > : > > Here is what I do and it works a peach. Assuming tPath is a valid path to a > folder: > > if tPlatform contains "Win" then > replace "/" with "\" in tPath > put "explorer "

imagedata and alpha byte

2018-05-09 Thread jbv via use-livecode
Hi list, Still struggling with imagedata, I am trying to modify the transparency of an image by manipulating pixel by pixel the alpha byte. I tried with numToChar(0) and binaryEncode("B*","") but to no avail... OTOH manipulating the RVB channel works fine. Any idea on how modify the alpha

Re: date libraries/routines for LCG

2018-05-09 Thread ELS prothero via use-livecode
Dave: Done. Bill William Prothero, PhD Professor Emeritus University of California, Santa Barbara http://earthlearningsolutions.org > On May 9, 2018, at 8:32 AM, Mike Kerner via use-livecode > wrote: > > Thank you... > > On Wed, May 9, 2018 at 11:29 AM Brian

Re: date libraries/routines for LCG

2018-05-09 Thread Bob Sneidar via use-livecode
Yes, I contributed to the Master Library a couple of date and time functions which return formats which LC does not provide. One is sql date which returns the date in the format -mm-dd, The second is julian date which uses Jacques method (I understand there is not simply one Julian

Re: Active window and mouse location

2018-05-09 Thread Bob Sneidar via use-livecode
Oh, no kidding! I read the dictionary, and it gives no indication this will work with folders as well as files!!! I use launch document for files as well. And I thought I was being clever! I guess this means I cannot absolutely trust the dictionary anymore! LOL! Bob S > On May 9, 2018, at

Re: imagedata and alpha byte

2018-05-09 Thread Richmond Mathewson via use-livecode
The inevitable question has to be why you are doing that in such a fiddly sort of way. Richmond. On 9/5/2018 8:49 pm, jbv via use-livecode wrote: Hi list, Still struggling with imagedata, I am trying to modify the transparency of an image by manipulating pixel by pixel the alpha byte. I tried

Re: imagedata and alpha byte

2018-05-09 Thread jbv via use-livecode
On Wed, May 9, 2018 7:51 pm, Richmond Mathewson via use-livecode wrote: > The inevitable question has to be why you are doing that in such a > fiddly sort of way. > > Richmond. > It would be too long to explain, but in short some users of a client app will modify pixels of images that will then

Re: imagedata and alpha byte

2018-05-09 Thread Mike Bonner via use-livecode
Already assuming that you know which pixel you wish to modify, (like if you want to modify pixel 25 in pixel row 3, that would be pixel 75.. I think..) you would need to do something like the following.. --first, put the current alphadata into a variable. put the alphadata of img "myImg" into

Re: imagedata and alpha byte

2018-05-09 Thread Niggemann, Bernd via use-livecode
Hi, please do not use numToChar in version 7.0 and up for image manipulation, use numToByte or byteToNum NumToChar is deprecated. It might work but is horribly slow. along the lines of Mike's example -- on mouseUp local tAlphaData, tTransparent, tHalfTransparent

imagedata and alpha byte

2018-05-09 Thread Niggemann, Bernd via use-livecode
Correcting my previous post. You don't have to set the imageData explicitly. I was confused by vanishing images. Apparently if you want to set all of the imageData to numToByte(0) or numToByte(256) the image vanishes. The workaround is to set it to 1 or 255 respectively. This is in LC 9 GM

How to turn off editor formatting

2018-05-09 Thread William Prothero via use-livecode
Folks: I know there must be a way to turn off the part of the IDE editor auto-formatting that adds quotes and spare brackets to arrays, without turning off auto indent, which I like. I find myself deleting the extra quotes and brackets so often that I would turn it off if the autoformat

How to dismiss keyboard on mobile

2018-05-09 Thread Sannyasin Brahmanathaswami via use-livecode
On mobile I have a UI (for searching audio) where: 1) user make a text selection (search box) 2) need to dismiss the keyboard (having made the text selection, which remains) 3) so she can choose some other radio buttons: like "Title" or "Sub-title" or "Genre" (this is a audio/music search UI)

Re: How to turn off editor formatting

2018-05-09 Thread Mike Bonner via use-livecode
In the scripteditor window, click the edit menu, options, then enable/disable the things you wish. On Wed, May 9, 2018 at 1:08 PM, William Prothero via use-livecode < use-livecode@lists.runrev.com> wrote: > Folks: > I know there must be a way to turn off the part of the IDE editor >

RE: How to dismiss keyboard on mobile

2018-05-09 Thread Ralph DiMola via use-livecode
Focus on nothing or send backKey to the engine on Android. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Sannyasin Brahmanathaswami via use-livecode

Re: How to dismiss keyboard on mobile

2018-05-09 Thread Klaus major-k via use-livecode
Hi Swami, > Am 09.05.2018 um 21:21 schrieb Sannyasin Brahmanathaswami via use-livecode > : > > On mobile > > I have a UI (for searching audio) > where: > 1) user make a text selection (search box) > 2) need to dismiss the keyboard (having made the text selection,

Re: Active window and mouse location

2018-05-09 Thread Mike Bonner via use-livecode
Hmm. Not sure whats up then. doing the systemwindow trick pops things to the front for me from behind a browser of whatever happens to be in front, so no clue why it won't work for you. (unless the window that it is behind is a system window itself) On Wed, May 9, 2018 at 3:34 PM, Douglas

Re: How to turn off editor formatting

2018-05-09 Thread Brian Milby via use-livecode
May want to take a look at my script tracker stack. It exports the scripts of a stack to text files and has a folder watcher to import them back when they change. Should allow the use of Atom to edit the scripts. I’ve only tested on small stacks though. It was posted on another thread but I could

Re: How to turn off editor formatting

2018-05-09 Thread William Prothero via use-livecode
Thanks! Got it. Bill William A. Prothero http://earthlearningsolutions.org ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: How to turn off editor formatting

2018-05-09 Thread Brian Milby via use-livecode
It is all under the Edit... Options menu of the SE. On Wed, May 9, 2018 at 4:07 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > No work. First, there does not seem to be an option for turning off > auto-complete. Also, turning off auto-format seems to not effect anything

Re: How to turn off editor formatting

2018-05-09 Thread Bob Sneidar via use-livecode
Yup I was looking in the Preferences for the Script Editor. Bob S > On May 9, 2018, at 15:33 , Mike Bonner via use-livecode > wrote: > > If there isn't an option to turn off autocomplete, my guess is you're using > a version that didn't give you the choice.

Re: How to turn off editor formatting

2018-05-09 Thread Mike Bonner via use-livecode
If there isn't an option to turn off autocomplete, my guess is you're using a version that didn't give you the choice. I'm using the most recent 9. Turned off brackets and bracket hiliting, turned off the live error checking and auto complete. All I have on is control structure complete, and

Re: How to dismiss keyboard on mobile

2018-05-09 Thread J. Landman Gay via use-livecode
On 5/9/18 2:21 PM, Sannyasin Brahmanathaswami via use-livecode wrote: Putting this in the field does not help. on returnKey closeField exitField end returnKey # does nothing: one would expect the field to lose focus/keyboard goes away. These are just messages that the engine sends

Re: Active window and mouse location

2018-05-09 Thread Douglas Ruisaard via use-livecode
Thanks, Mike... but this doesn't make my LC screen active... it does flicker it but leaves it in buried under the top window. I'll check out those links, Lagi... thanks for the research Thanks to Bob und Klaus for the "Launch" suggestion ... however, I don't want to open, launch or startup

Re: How to dismiss keyboard on mobile

2018-05-09 Thread Bob Sneidar via use-livecode
That is what I do whenever I need a closeField or exitField to trigger on a currently entered field before running off and doing things. focus on nothing is what you want. Bob S > On May 9, 2018, at 14:28 , J. Landman Gay via use-livecode > wrote: > > On

[no subject]

2018-05-09 Thread com via use-livecode
http://notice.southfloridaaquaponic.com 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: How to turn off editor formatting

2018-05-09 Thread Bob Sneidar via use-livecode
No work. First, there does not seem to be an option for turning off auto-complete. Also, turning off auto-format seems to not effect anything much. Bob S > On May 9, 2018, at 12:23 , Mike Bonner via use-livecode > wrote: > > In the scripteditor window, click

Re: Active window and mouse location

2018-05-09 Thread Klaus major-k via use-livecode
Hi Bob, > Am 09.05.2018 um 19:22 schrieb Bob Sneidar via use-livecode > : > > Oh, no kidding! No! :-) > I read the dictionary, and it gives no indication this will work with folders > as well as files!!! > I use launch document for files as well. One day I