[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 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:
http://lists.runrev.com/mailman/listinfo/use-livecode


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
repost the link if you like. I’m going to put it on RevOnline shortly.
On Wed, May 9, 2018 at 5:42 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 <
> use-livecode@lists.runrev.com> 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.  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 auto formatting.  Thankfully this helps with the windows 10 slow down
> > issues enough to make things bearable.
>
>
> ___
> 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: 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.  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 auto formatting.  Thankfully this helps with the windows 10 slow down
> issues enough to make things bearable.


___
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: 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 Ruisaard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 anything, I just need the LC window which
> is displaying the card processing to become the top-most window ... so I'm
> not sure exactly what I would use as the "document" in the launch command.
> I will, however, keep this in mind for other purposes.
>
> As expected, a VERY simple, one-line script to AutoHotKey did the trick...
> which can be compiled into a standalone executable... and then shell'd to.
> Only thing is that it isn't cross-platform... windows only.  If I find the
> time, I'll try Bob's suggestion for the Apple.
>
> Many Thanks!
> Doug
>
>
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
>
> >
> > 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 flicker as it goes system, then
> > back again.
> >
> >
> > --
> >
> >
>
>
> ___
> 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: 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 auto formatting.  Thankfully this helps with the windows 10 slow down
issues enough to make things bearable.

On Wed, May 9, 2018 at 3:23 PM, Brian Milby via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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
> > much.
> >
> > Bob S
> >
> >
> > > On May 9, 2018, at 12:23 , Mike Bonner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > In the scripteditor window, click the edit menu, options, then
> > > enable/disable the things you wish.
> >
> >
> > ___
> > 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: 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 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 when the focus changes, they 
> don't control the field themselves. As mentioned, "focus on nothing" is the 
> command that does the actual work.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.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: 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 anything, I just need the LC window which is 
displaying the card processing to become the top-most window ... so I'm not 
sure exactly what I would use as the "document" in the launch command.  I will, 
however, keep this in mind for other purposes.

As expected, a VERY simple, one-line script to AutoHotKey did the trick... 
which can be compiled into a standalone executable... and then shell'd to.  
Only thing is that it isn't cross-platform... windows only.  If I find the 
time, I'll try Bob's suggestion for the Apple.

Many Thanks!
Doug


Douglas Ruisaard
Trilogy Software
(250) 573-3935

> 
> 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 flicker as it goes system, then
> back again.
> 
> 
> --
> 
> 


___
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 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 when the focus changes, 
they don't control the field themselves. As mentioned, "focus on 
nothing" is the command that does the actual work.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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 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
> much.
>
> Bob S
>
>
> > On May 9, 2018, at 12:23 , Mike Bonner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > In the scripteditor window, click the edit menu, options, then
> > enable/disable the things you wish.
>
>
> ___
> 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: 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 the edit menu, options, then
> enable/disable the things you wish.


___
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 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
Sent: Wednesday, May 09, 2018 3:21 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: How to dismiss keyboard on mobile

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)

How to get rid of the keyboard? And let the user can keep going in the UI
while field keeps the data, until "submit" or clicks "search"

On iOS is see a control for keyboard search where word "Done" appears
above/right of the keyboard. You click it, the keyboard disappears

Can we hack that UI in Livecode? There must be some way to make the keyboard
disappear -- without triggering any other action.

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.


br
___
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: 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, 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)
> How to get rid of the keyboard? And let the user can keep going in the UI 
> while field keeps the data, until "submit" or clicks "search"
> On iOS is see a control for keyboard search where word "Done" appears 
> above/right of the keyboard. You click it, the keyboard disappears
> Can we hack that UI in Livecode? There must be some way to make the keyboard 
> disappear -- without triggering any other action.
> 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.

usually:
...
focus on nothing
...
does the trick.

> br

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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 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
> 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
> checkbox in the preferences didn’t also turn off the auto indent, which I
> like.
>
> Is it possible to keep auto indent, but lose the rest of the autoformat
> stuff?
>
> I’m using LC 9
>
> 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:
> 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

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)

How to get rid of the keyboard? And let the user can keep going in the UI while 
field keeps the data, until "submit" or clicks "search"

On iOS is see a control for keyboard search where word "Done" appears 
above/right of the keyboard. You click it, the keyboard disappears

Can we hack that UI in Livecode? There must be some way to make the keyboard 
disappear -- without triggering any other action.

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.


br
___
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


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 checkbox in the 
preferences didn’t also turn off the auto indent, which I like.

Is it possible to keep auto indent, but lose the rest of the autoformat stuff?

I’m using LC 9

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:
http://lists.runrev.com/mailman/listinfo/use-livecode

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

Kind regards
Bernd

Here is the corrected script

---
on mouseUp
   local tAlphaData, tTransparent, tOpaque
   local tCollect, tLength
   
   -- not needed here but if you want to modify existing AD
   put the alphaData of image 1 into tAlphaData
   
   put numToByte(1) into tTransparent -- dont set to 0 or image vanishes
   put numToByte(255) into tOpaque -- dont set to 256 or image vanishes
   put the width of image 1 * the height of image 1 into tLength
   
   repeat tLength
  --put tTransparent after tCollect
  put tOpaque after tCollect
   end repeat
   
   set the alphaData of image 1 to tCollect
end mouseUp
-
___
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: 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
   local tImgData, tCollect, tLength
   
   put the imageData of image 1 into tImgData
   
   -- not needed here but if you want to modify existing AD
   put the alphaData of image 1 into tAlphaData
   
   put numToByte(0) into tTransparent
   put numToByte(127) into tHalfTransparent
   put the width of image 1 * the height of image 1 into tLength
   
   repeat tLength
  -- put tTransparent after tCollect
  put tHalfTransparent after tCollect
   end repeat
   
   -- in LC 9 you have to set imagedata again explicitly
   set the imageData of image 1 to tImgData
   
   set the alphaData of image 1 to tCollect
end mouseUp


Kind regards
Bernd



___
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: 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 tAlpha

-- then modify the alphadata for the pixel in question
put numtochar(0) into char 75  of tAlpha -- 0 is transparent, 255 is
completely opaque
-- change all necessary pixels here then
-- set the image to the new alphadata
set the alphadata of img "myImg" to tAlpha

On Wed, May 9, 2018 at 11:59 AM, jbv via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 be exported as PNG to
> a server and then displayed in a website.
> I have successfully modified the alpha channel of images with php for
> years, and am just wondering why this doesn't work in LC...
>
>
> ___
> 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: 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 be exported as PNG to
a server and then displayed in a website.
I have successfully modified the alpha channel of images with php for
years, and am just wondering why this doesn't work in LC...


___
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: 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 with numToChar(0) and binaryEncode("B*","") but to no
avail...
OTOH manipulating the RVB channel works fine.

Any idea on how modify the alpha channel of the imagedata of a image,
and then exporting the image as PNG with the modified transparency ?

Thanks in advance.
jbv


___
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


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 channel of the imagedata of a image,
and then exporting the image as PNG with the modified transparency ?

Thanks in advance.
jbv


___
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: 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 just tried it and it worked!
Believe me, I was as astonished as you are now! :-D

> And I thought I was being clever!
> I guess this means I cannot absolutely trust the dictionary anymore! LOL! 

You can, but it may not tell your the WHOLE truth! ;-)

> Bob S
> 
>> On May 9, 2018, at 10:14 , Klaus major-k via use-livecode 
>>  wrote:
>> Or maybe this slightly shorter verison:
>> ...
>> launch document tPath
>> ...
>> 
>> :-D

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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: 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 10:14 , Klaus major-k via use-livecode 
>  wrote:
> 
> Or maybe this slightly shorter verison:
> ...
> launch document tPath
> ...
> 
> :-D


___
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: 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 " & quote &  tpath & quote into theCmd
>  put shell(theCmd) into theResult
>   else
>  put "property the_path : " & quote & tPath & quote & cr into theCmd
>  put "set the_folder to (POSIX file the_path) as alias" & cr after theCmd
>  put "tell application " & quote & "finder" & quote & cr after theCmd
>  put "activate" & cr after theCmd
>  put "reveal the_folder" & cr after theCmd
>  put "end tell" & cr after theCmd
>  do theCmd as appleScript
>   end if
> 
> This should probably also be in the master library. 

Or maybe this slightly shorter verison:
...
launch document tPath
...

:-D

> Bob S
> 
>> On May 9, 2018, at 08:32 , Douglas Ruisaard via use-livecode 
>>  wrote:
>> 
>> 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 ANY window for that matter.

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
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: 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 : " & quote & tPath & quote & cr into theCmd
  put "set the_folder to (POSIX file the_path) as alias" & cr after theCmd
  put "tell application " & quote & "finder" & quote & cr after theCmd
  put "activate" & cr after theCmd
  put "reveal the_folder" & cr after theCmd
  put "end tell" & cr after theCmd
  do theCmd as appleScript
   end if

This should probably also be in the master library. 

Bob S

> On May 9, 2018, at 08:32 , Douglas Ruisaard via use-livecode 
>  wrote:
> 
> 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 ANY window for that matter.


___
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: 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 standard!) 

For time I have sql time (hh:mm:ss) and military, returning the time in 24 hour 
format. 

So for instance you can convert to sql datetime format by using formatDate(the 
date, "sql date) && formatTime(the time, "sql time"). 

I'm not sure if the Master Library made some improvement on the functions I 
submitted, but here is what I have:

function formatDate theDate, theFormat
   /*
   Accepts any valid date for the first parameter. If not a valid date, it 
simply returns
   what was passed. Second parameter can be any of the following:
   sql date: date in the -mm-dd format
   short date, abbreviated date, internet date, long date: LC versions of the 
same
   julian date: Julian number based on (I believe) Jacques formula)
   */
   
   put the itemdelimiter into theOldDelim
   set the itemdelimiter to "-"
   
   if the length of item 1 of theDate = 4 and \
 the number of items of theDate = 3 and \
 item 1 of theDate is a number and \
 item 2 of theDate is a number and \
 item 3 of theDate is a number then
  put item 2 of theDate & "/" & \
item 3 of theDate & "/" & \
item 1 of theDate into theDate
   end if
   
   convert theDate to dateitems
   set the itemdelimiter to theOldDelim
   
   switch theFormat
  case "sql date"
 put item 1 of theDate & "-" & \
   format("%02d",item 2 of theDate) & "-" & \
   format("%02d",item 3 of theDate) into theDate
 break
  case "short date"
 convert theDate from dateitems to short date
 break
  case "abbreviated date"
 convert theDate from dateitems to abbreviated date
 break
  case "abbr date"
 convert theDate from dateitems to abbreviated date
 break
  case "internet date"
 convert theDate from dateitems to internet date
 break
  case "long date"
 convert theDate from dateitems to long date
 break
  case "julian date"
 put the date into theDate
   convert theDate to dateItems
   if  ((item 2 of theDate = 1) or (item 2 of theDate = 2)) then
 put 1 into theDay
   else
 put 0 into theDay
   end if
   put item 1 of theDate + 4800 - theDay into theYear
   put item 2 of theDate + (12 * theDay) - 3 into theMonth
   put item 3 of theDate + \
   ((153 * theMonth + 2) div 5) + \
   (365 * theYear) + \
   (theYear div 4) - \
   (theYear div 100) + \
   (theYear div 400) - \
   32045 into theDate
 break
   end switch
   
   return theDate 
end formatDate

function formatTime theTime, theFormat
   /*
   accepts any valid time and returns the form of the time specified in the 
second parameter.
   The valid formats are:
   sql time: hh:mm:ss (Note: combining sql date from the formatDate() function 
with the
   sql time will produce a valid SQL date time type). 
   short time: LC short time format
   abbreviated time: LC abbr time format (same as short time)
   long time: LC long time format
   seconds: the number of seconds since the prior midnight
   military: the military time 00:00 - 23:59
   */
   if theTime is empty then return empty
   
   set the numberformat to "00"
   switch theFormat
  case "sql time"
 convert theTime to dateitems
 put (item 4 of theTime +0) & ":" & \
   (item 5 of theTime +0) & ":" & \
   (item 6 of theTime +0) into theTime
 break
  case "short time"
 convert theTime to short time
 break
  case "abbreviated time"
 convert theTime to abbreviated time
 break
  case "long time"
 convert theTime to long time
 break
  case "seconds"
 convert theTime to seconds
 break
  case "military"
 set the itemdelimiter to ":"
 
 if theTime contains "PM" then
add 12 to item 1 of theTime
 end if
 
 put word 1 of item 2 of theTime into item 2 of theTime
 break
   end switch
   
   return theTime
end formatTime


> On May 8, 2018, at 18:14 , Mike Doub via use-livecode 
>  wrote:
> 
> Have you checked the Master Library?
> 
> https://www.dropbox.com/s/3wpwn3hfbmpl7sk/MasterLibrary.livecode?dl=0


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

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 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 use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> 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 May 8, 2018, 9:10 PM -0400, Mike Kerner via use-livecode <
 use-livecode@lists.runrev.com>, wrote:
> I'm working on my session for next week's lcg, which is going to
>> focus
>>> on
> dates. I'd like to feature any libraries or routines that anyone
>> wants
>>> to
> share that have to do with dates.
> Please email me at one of my 300 email addresses.
> 
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
> and did a little diving.
> And God said, "This is good."
> ___
> 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
 
>>> 
>>> 
>>> --
>>> On the first day, God created the heavens and the Earth
>>> On the second day, God created the oceans.
>>> On the third day, God put the animals on hold for a few hours,
>>>   and did a little diving.
>>> And God said, "This is good."
>>> ___
>>> 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
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> 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: 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 the handle of the window

via enumwindows (abou 10 ways of doing it)

   https://msdn.microsoft.com/en-us/library/windows/desktop/
ms633497.aspx

then call

https://msdn.microsoft.com/en-us/library/windows/desktop/
ms632673(v=vs.85).aspx

This pdf (aboutvisual  foxpro winapi access ) give all manner of calls and
calling structures which should help with FFI - I'm going to have to have a
go at FFI  soon.
https://www.dropbox.com/s/a0sa3q8vu3ctf3o/E-WAPI.pdf?dl=0

I did this with a Visual Foxpro routine over a decade ago - but I've been
to bed since then so hopefully one  of the clever cloggs on here could do
this
to give us all a good template example for accessing windows apis  via FFI
and C - Go on mark/panos/Ali  - in between bites of your sandwiches.
a 15 minutes slot on LC Global?

Regards Lagi






On 9 May 2018 at 16:32, Douglas Ruisaard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 ANY window for that matter.
>
> I'll be using a shell command out to an AUTOHOTKEY compiled script to
> switch to the desired desktop window but was wondering if there was a
> native LC way to do so.  BTW, anyone who hasn't heard or tried AutoHotKey,
> should do themselves a huge favor (favour in the British colonies) and
> explore its capabilities... which, I assure you, are myriad on Windows
> platforms.  There are similar tools I have NOT explored available on the
> Mac.
>
> However, before this thread evolves into a discussion about external
> scripting tools; please, if possible, let me know if anyone knows a LC-way
> to active a specific window on the desktop. ... ps... I am completely
> ignorant (and likely to remain so) regarding Java... so, if that is an
> option, I'd need a "seed" scripting suggestion as to how to start.
>
> Cheers!
> Doug
>
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
>
> > In Windows 7, LC v8.1.9
> > Is there a way to make an LC "window" the active / top window on the
> desktop after making another
> > window on the desktop active?  I have an app which allows me to copy a
> portion of text from, say, a
> > Notepad window, into the clipboard.  A timed loop within my LC script
> then pulls the clipboard text
> > into an LC field and starts an analysis of the contents of that field.
> THAT works great.  But then I
> > need the LC window to become the active window after the analysis is
> done and displayed on my LC
> > window, so I can manipulate the various controls I have on it.
> >
> > Of course I can "manually" click on the LC window to activate it but I
> was wondering if there is a way
> > to do so in LC script.  I've tried "focus on field xxx" (where xxx is a
> field in my displayed LC
> > window), "set the screenMouseLoc to the loc of this stack", "go to this
> stack" and a variety of "click
> > at" commands... none of these make the LC window the top active window
> on the desktop.  The Notepad
> > (or whatever) window stays as the top, active window.
> >
> > On a somewhat related note, how do you "set" the mouse location within
> an LC window?  I know and use
> > the "set the screenMouseLoc to the loc of this stack" but an equivalent
> "set the MouseLoc to the loc
> > of this stack" or "set the mouseLoc to "650,420"" generates an error of
> "Properties: token is not a
> > property) near "mouseLoc", char 10" when trying to save the code.  Seems
> odd that I have to use FULL
> > screen coordinates to set the mouse location rather than relative ones
> to the stack.
> >
> > Douglas Ruisaard
> > Trilogy Software
> > (250) 573-3935
> >
> >  > The "screenMouseLoc" is a property, but the "mouseLoc" is a  >
> function.You cannot set a function.
> >  >
> >  > Why this was wrought this way is anybody's guess.
> >
> > If memory serves mouseLoc was implemented as a function for
> compatibility with HyperCard, which
> > offered no way to move the mouse cursor.
> >
> > When the opportunity came up to make a global version, it seems the
> choice to make that one a property
> > was simply because a property is more useful, allowing both getting and
> setting.
> >
> > --
> >   Richard Gaskin
> >   Fourth World Systems
> >   Software Design and Development for the Desktop, Mobile, and the Web
> >   
> >   ambassa...@fourthworld.comhttp://www.FourthWorld.com
> >
> >
>
>
> 

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 flicker as it goes system, then
back again.

On Wed, May 9, 2018 at 9:32 AM, Douglas Ruisaard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> 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 ANY window for that matter.
>
> I'll be using a shell command out to an AUTOHOTKEY compiled script to
> switch to the desired desktop window but was wondering if there was a
> native LC way to do so.  BTW, anyone who hasn't heard or tried AutoHotKey,
> should do themselves a huge favor (favour in the British colonies) and
> explore its capabilities... which, I assure you, are myriad on Windows
> platforms.  There are similar tools I have NOT explored available on the
> Mac.
>
> However, before this thread evolves into a discussion about external
> scripting tools; please, if possible, let me know if anyone knows a LC-way
> to active a specific window on the desktop. ... ps... I am completely
> ignorant (and likely to remain so) regarding Java... so, if that is an
> option, I'd need a "seed" scripting suggestion as to how to start.
>
> Cheers!
> Doug
>
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
>
> > In Windows 7, LC v8.1.9
> > Is there a way to make an LC "window" the active / top window on the
> desktop after making another
> > window on the desktop active?  I have an app which allows me to copy a
> portion of text from, say, a
> > Notepad window, into the clipboard.  A timed loop within my LC script
> then pulls the clipboard text
> > into an LC field and starts an analysis of the contents of that field.
> THAT works great.  But then I
> > need the LC window to become the active window after the analysis is
> done and displayed on my LC
> > window, so I can manipulate the various controls I have on it.
> >
> > Of course I can "manually" click on the LC window to activate it but I
> was wondering if there is a way
> > to do so in LC script.  I've tried "focus on field xxx" (where xxx is a
> field in my displayed LC
> > window), "set the screenMouseLoc to the loc of this stack", "go to this
> stack" and a variety of "click
> > at" commands... none of these make the LC window the top active window
> on the desktop.  The Notepad
> > (or whatever) window stays as the top, active window.
> >
> > On a somewhat related note, how do you "set" the mouse location within
> an LC window?  I know and use
> > the "set the screenMouseLoc to the loc of this stack" but an equivalent
> "set the MouseLoc to the loc
> > of this stack" or "set the mouseLoc to "650,420"" generates an error of
> "Properties: token is not a
> > property) near "mouseLoc", char 10" when trying to save the code.  Seems
> odd that I have to use FULL
> > screen coordinates to set the mouse location rather than relative ones
> to the stack.
> >
> > Douglas Ruisaard
> > Trilogy Software
> > (250) 573-3935
> >
> >  > The "screenMouseLoc" is a property, but the "mouseLoc" is a  >
> function.You cannot set a function.
> >  >
> >  > Why this was wrought this way is anybody's guess.
> >
> > If memory serves mouseLoc was implemented as a function for
> compatibility with HyperCard, which
> > offered no way to move the mouse cursor.
> >
> > When the opportunity came up to make a global version, it seems the
> choice to make that one a property
> > was simply because a property is more useful, allowing both getting and
> setting.
> >
> > --
> >   Richard Gaskin
> >   Fourth World Systems
> >   Software Design and Development for the Desktop, Mobile, and the Web
> >   
> >   ambassa...@fourthworld.comhttp://www.FourthWorld.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
>
___
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: 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 use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > 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 May 8, 2018, 9:10 PM -0400, Mike Kerner via use-livecode <
> > > use-livecode@lists.runrev.com>, wrote:
> > > > I'm working on my session for next week's lcg, which is going to
> focus
> > on
> > > > dates. I'd like to feature any libraries or routines that anyone
> wants
> > to
> > > > share that have to do with dates.
> > > > Please email me at one of my 300 email addresses.
> > > >
> > > > --
> > > > On the first day, God created the heavens and the Earth
> > > > On the second day, God created the oceans.
> > > > On the third day, God put the animals on hold for a few hours,
> > > > and did a little diving.
> > > > And God said, "This is good."
> > > > ___
> > > > 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
> > >
> >
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >and did a little diving.
> > And God said, "This is good."
> > ___
> > 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: 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 ANY window for that matter.

I'll be using a shell command out to an AUTOHOTKEY compiled script to switch to 
the desired desktop window but was wondering if there was a native LC way to do 
so.  BTW, anyone who hasn't heard or tried AutoHotKey, should do themselves a 
huge favor (favour in the British colonies) and explore its capabilities... 
which, I assure you, are myriad on Windows platforms.  There are similar tools 
I have NOT explored available on the Mac.

However, before this thread evolves into a discussion about external scripting 
tools; please, if possible, let me know if anyone knows a LC-way to active a 
specific window on the desktop. ... ps... I am completely ignorant (and likely 
to remain so) regarding Java... so, if that is an option, I'd need a "seed" 
scripting suggestion as to how to start.

Cheers!
Doug

Douglas Ruisaard
Trilogy Software
(250) 573-3935

> In Windows 7, LC v8.1.9
> Is there a way to make an LC "window" the active / top window on the desktop 
> after making another
> window on the desktop active?  I have an app which allows me to copy a 
> portion of text from, say, a
> Notepad window, into the clipboard.  A timed loop within my LC script then 
> pulls the clipboard text
> into an LC field and starts an analysis of the contents of that field.  THAT 
> works great.  But then I
> need the LC window to become the active window after the analysis is done and 
> displayed on my LC
> window, so I can manipulate the various controls I have on it.
> 
> Of course I can "manually" click on the LC window to activate it but I was 
> wondering if there is a way
> to do so in LC script.  I've tried "focus on field xxx" (where xxx is a field 
> in my displayed LC
> window), "set the screenMouseLoc to the loc of this stack", "go to this 
> stack" and a variety of "click
> at" commands... none of these make the LC window the top active window on the 
> desktop.  The Notepad
> (or whatever) window stays as the top, active window.
> 
> On a somewhat related note, how do you "set" the mouse location within an LC 
> window?  I know and use
> the "set the screenMouseLoc to the loc of this stack" but an equivalent "set 
> the MouseLoc to the loc
> of this stack" or "set the mouseLoc to "650,420"" generates an error of 
> "Properties: token is not a
> property) near "mouseLoc", char 10" when trying to save the code.  Seems odd 
> that I have to use FULL
> screen coordinates to set the mouse location rather than relative ones to the 
> stack.
> 
> Douglas Ruisaard
> Trilogy Software
> (250) 573-3935
> 
>  > The "screenMouseLoc" is a property, but the "mouseLoc" is a  > 
> function.You cannot set a function.
>  >
>  > Why this was wrought this way is anybody's guess.
> 
> If memory serves mouseLoc was implemented as a function for compatibility 
> with HyperCard, which
> offered no way to move the mouse cursor.
> 
> When the opportunity came up to make a global version, it seems the choice to 
> make that one a property
> was simply because a property is more useful, allowing both getting and 
> setting.
> 
> --
>   Richard Gaskin
>   Fourth World Systems
>   Software Design and Development for the Desktop, Mobile, and the Web
>   
>   ambassa...@fourthworld.comhttp://www.FourthWorld.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: 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.
>
> 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 May 8, 2018, 9:10 PM -0400, Mike Kerner via use-livecode <
> > use-livecode@lists.runrev.com>, wrote:
> > > I'm working on my session for next week's lcg, which is going to focus
> on
> > > dates. I'd like to feature any libraries or routines that anyone wants
> to
> > > share that have to do with dates.
> > > Please email me at one of my 300 email addresses.
> > >
> > > --
> > > On the first day, God created the heavens and the Earth
> > > On the second day, God created the oceans.
> > > On the third day, God put the animals on hold for a few hours,
> > > and did a little diving.
> > > And God said, "This is good."
> > > ___
> > > 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
> >
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> 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: 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 May 8, 2018, 9:10 PM -0400, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> > I'm working on my session for next week's lcg, which is going to focus on
> > dates. I'd like to feature any libraries or routines that anyone wants to
> > share that have to do with dates.
> > Please email me at one of my 300 email addresses.
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> > and did a little diving.
> > And God said, "This is good."
> > ___
> > 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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