Re: macOS, is my app active?

2019-11-25 Thread scott--- via use-livecode
It does work nicely from the IDE but as Trevor noted, the downside to using 
AppleScript in this case is that under newer version of OSX your compiled app 
will trigger a (one time) dialog asking to grant access to control “System 
Events.app”
—
Scott Morrow

> On Nov 25, 2019, at 8:46 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> on mouseUp
>   put "tell application " & quote & "System Events" & quote & cr after 
> tApplescript
>   put "set activeApp to name of first application process whose frontmost is 
> true" & cr after tApplescript
>   put "return activeApp" & cr after tApplescript
>   put "end tell" & cr after tApplescript
>   do tAppleScript as appleScript
>   put the result
> end mouseUp
> 
> works for me
> 
> Bob S
> 
> 
>> On Nov 23, 2019, at 06:11 , Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi Trevor,
>> 
>>> Am 23.11.2019 um 15:06 schrieb Trevor DeVore via use-livecode 
>>> :
>>> 
>>> On Sat, Nov 23, 2019 at 6:24 AM Klaus major-k via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 Hi friends,
 
 can we check if our standalone is currently active, means in
 the "foreground" or if it is not active? Know what I mean?
 If yes, how can we do that? LC? AppleScript?
 
 I want to alert the user if the app is active, but not if the app
 is not active.
>>> Apple provides API calls to do this and wrapping Objective-C APIs is pretty
>>> straightforward. The APIs you are interested in:
>>> ...
>>> Regarding step 6 - If you don't want to store your extension externally to
>>> your application you can also use the "+" button in the EB to install the
>>> extension in your LC environment. Now the extension will load whenever you
>>> launch LC and you can select "NSWorkspace" in the Standalone Builder
>>> Inclusions tab so that the extension is bundled with your executable.
>>> 
>>> -- 
>>> Trevor DeVore
>> 
>> wow, lots of infos, thank you very much, but maybe a little overkill for me.
>> 
>> It would suffice for me to get this little snippet to work:
>> -
>> tell application "System Events"
>>  set activeApp to name of first application process whose frontmost is 
>> true
>>  return activeApp
>> end tell
>> 
>> Works fine in the AppleScript Editor, but I get "execution error" when DOing 
>> this in LC!?
>> Any hints appreciated!
>> 
>> Thanks a lot!
>> 
>> 
>> Best
>> 
>> Klaus
>> --
>> Klaus Major
>> https://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
> 
> 
> ___
> 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: iOS simulator not responding

2019-11-25 Thread J. Landman Gay via use-livecode
Thanks Panos. Resetting didn't work, so now I'm wondering if it is 
something about my LC native fields. The first thing the user needs to 
do is log in, and I can't test beyond that until I can enter 
credentials. There are two native fields, both are transparent. Would 
transparency in iOS matter? They work on Android.


I forgot to mention that the only OS available in XCode 10.1 is iOS 12.1 
but I assume that's okay.


On 11/25/19 4:11 PM, panagiotis merakos via use-livecode wrote:

Hello Jacque,

So the iOS standalone is installed to the iOS simulator, but the simulator
does not respond to clicks / keyboard entry?

I am on Mojave as well, but have not seen that happening.

Maybe it is worth resetting the simulator state:
Quit any instances of Xcode and iOS simulator, and execute this in the
terminal:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

Then:
- Open the Simulator from Xcode (Launch Xcode 10.1, go to Xcode's menubar
and choose
Xcode -> Open Developer Tool -> Simulator)
- Wait until the simulator fully loads, until it shows the device's Home
screen
If you change device by clicking on the Simulator's app menubar
(Hardware -> Device -> iOS 12.1 ->  ) - again, wait until the
new simulator device fully loads, until it shows the device's Home screen
- Now go back to LiveCode and test again

Fingers crossed :)

Panos
--

On Mon, 25 Nov 2019 at 21:43, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:


When I run a test on the iOS simulator, it will not respond to either
clicks/taps or keyboard entry. Basically, it's inert. I've tried several
different hardware devices, all with the same results.

A Google search seems to show that this is a bug in the simulator when
running under Mojave, and works again if run in Catalina. I can't update
to Catalina yet because several apps I rely on will not run there.

I'm using LC 9.5.1 (rc1), XCode 10.1, on Mojave. Has anyone seen this,
and if so, have a workaround?

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


___
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




--
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: iOS simulator not responding

2019-11-25 Thread panagiotis merakos via use-livecode
Hello Jacque,

So the iOS standalone is installed to the iOS simulator, but the simulator
does not respond to clicks / keyboard entry?

I am on Mojave as well, but have not seen that happening.

Maybe it is worth resetting the simulator state:
Quit any instances of Xcode and iOS simulator, and execute this in the
terminal:

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

Then:
- Open the Simulator from Xcode (Launch Xcode 10.1, go to Xcode's menubar
and choose
Xcode -> Open Developer Tool -> Simulator)
- Wait until the simulator fully loads, until it shows the device's Home
screen
If you change device by clicking on the Simulator's app menubar
(Hardware -> Device -> iOS 12.1 ->  ) - again, wait until the
new simulator device fully loads, until it shows the device's Home screen
- Now go back to LiveCode and test again

Fingers crossed :)

Panos
--

On Mon, 25 Nov 2019 at 21:43, J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> When I run a test on the iOS simulator, it will not respond to either
> clicks/taps or keyboard entry. Basically, it's inert. I've tried several
> different hardware devices, all with the same results.
>
> A Google search seems to show that this is a bug in the simulator when
> running under Mojave, and works again if run in Catalina. I can't update
> to Catalina yet because several apps I rely on will not run there.
>
> I'm using LC 9.5.1 (rc1), XCode 10.1, on Mojave. Has anyone seen this,
> and if so, have a workaround?
>
> --
> 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
>
___
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 do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread dunbarx--- via use-livecode
The "mouseControl" is very straightforward. The "target" would work just as 
well. In the card script:
on mouseUp  answer the targetend mouseUp

But for a line graphic, you must click right on the line, or the function will 
not work. In other words, the extent of each graphic is the same, but only the 
lines themselves will respond.This solves the problem discussed below, sort of.
Grouping them will not help.
This harkens back to just the opposite problem, discussed a couple of years 
ago, where it was desired that a click somewhere within the "extent" of the 
graphic would trigger an event.
Craig




-Original Message-
From: Pi Digital via use-livecode 
To: How to use LiveCode 
Cc: Pi Digital 
Sent: Mon, Nov 25, 2019 2:01 pm
Subject: Re: How do I select graphics that are on top of each other with 
mousedown?

Put each one in a group control that extends one to the left and the other to 
the right

Sean Cole
Pi Digital Prod Ltd

> On 25 Nov 2019, at 18:19, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I have to square graphics (line style) on top of each other.
> They have the same width and height and form a letter X.
> 
> How do I select the different graphics?
> 
> Mousedown, MouseLoc and points of graphic?
> Any pointers are welcome.
> 
> 
> greetings,
> 
> William
> ___
> 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: WebP-Tool v103

2019-11-25 Thread Andrew Bell via use-livecode
"2.  have more images that fit the package -- last time I check it was  
100MB, for iOS."


I assume you are referring to the maximum app size when downloading  
from the App Store, in which case that limit has been removed with iOS  
13.


https://ww.9to5mac.com/2019/05/31/apple-iphone-cellular-limit-increased/

--Andrew Bell



From: Sannyasin Brahmanathaswami 
Subject: Re: WebP-Tool v103
Message-ID: <9c4d09cb-8782-4d9b-894e-7e74b860c...@hindu.org>

Looking forward to support on mobile. There is the total RAM  
requirement that makes it hard to put the image into custom props of  
one stack. SivaSiva app holds  roughly 350 photos, that must  
delivered with the package. So a stack which had them as customs  
prop would "blow out the phone." So I am looking forward to



  1.  increase the density of those image. Too many have a subtle  
"pixalation" because I downsized them  to fit the package. Based on  
the eyesight and sense for image aesthetics, some users don't "mind"  
, they are interested on the "documentary" content of what they see.  
Other users react first to pixalation relatively other apps which  
have dense retina display images
  2.  have more images that fit the package -- last time I check it  
was 100MB, for iOS.

  3.  put them on them server and have a fast download time.

Looking at the forum post, if I understand it, these are all required,
"The stack webP-Tool contains and installs (if not available) the  
binaries for 64bit Mac/Win/linux. ?The stack has included for  
mac/win/nux (all 64bit), cwebp (WebP encoder tool), dwebp (WebP  
decoder tool) and webinfo (WebP info tool)
Not included are vwebp (WebP file viewer), webpmux (WebP muxing  
tool), gif2webp (Tool for converting GIF images to WebP)."


And those libs "native" on iOS and Android? Of course we can still  
only show PNG in LC (for now)


Ha! once again, I may be chasing the moon?.

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


Re: How do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread William de Smet via use-livecode
Hi there,

"pointInShape" looks very interesting,
Too much for now. MouseControl does the job.
Thanks!

groeten,

William




Op ma 25 nov. 2019 om 19:45 schreef hh via use-livecode <
use-livecode@lists.runrev.com>:

> Yet another option is to use the technique from "pointInShape":
> http://forums.livecode.com/viewtopic.php?p=129274#p129274
>
> ___
> 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 do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread William de Smet via use-livecode
Hi Peter,

MouseControl works fine.
Thanks.


greetings,

William




Op ma 25 nov. 2019 om 19:31 schreef Peter Bogdanoff via use-livecode <
use-livecode@lists.runrev.com>:

> William,
>
> You could try working with the mouseControl.
>
> Peter
>
> > On Nov 25, 2019, at 10:19 AM, William de Smet via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hi there,
> >
> > I have to square graphics (line style) on top of each other.
> > They have the same width and height and form a letter X.
> >
> > How do I select the different graphics?
> >
> > Mousedown, MouseLoc and points of graphic?
> > Any pointers are welcome.
> >
> >
> > greetings,
> >
> > William
> > ___
> > 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: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
Jacque,
Ah. You may be right.
So, Steve, which way, or do you need both? The methodology is basically the 
same.
Craig


-Original Message-
From: J. Landman Gay via use-livecode 
To: How to use LiveCode 
Cc: J. Landman Gay 
Sent: Mon, Nov 25, 2019 1:09 pm
Subject: Re: Identifying Un-used functions and commands

I think he wants it the other way around, identifying handlers and 
functions that aren't called by any other handler. I've done this, but only 
one at a time, by searching for the handler name across all open stacks. If 
the only occurrence is the handler itself ("on/function whatever", ) then 
it's unused.

The method here would probably be to get a list of all handlers and 
functions and then do a global search for instances of each. If there's one 
or more that isn't the handler declaration, it's used.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 25, 2019 11:51:14 AM dunbarx--- via use-livecode 
 wrote:

> Hi.
> This was posted a couple of weeks ago, no?
> I suggested then that you could write a short handler that loops through 
> all the scripts in all the controls on all the cards, and isolate words 
> that are not preceded by either "command", "on" or "function". In this way 
> you might see, for example, that "myGadget3" may be present in scripts here 
> and there, but there is no "on myGadget3" anywhere. Then you will have 
> found an unused handler call.
> This may require tweaking. For example, LC will compile, say:
> "on        myGadget3"  -- spaces galore
>
> Craig
>
> -Original Message-
> From: Bob Sneidar via use-livecode 
> To: How to use LiveCode 
> Cc: Bob Sneidar 
> Sent: Mon, Nov 25, 2019 12:29 pm
> Subject: Re: Identifying Un-used functions and commands
>
> Since there is code in the script editor that knows the location of any 
> command or function you right click on, if you found out how they do that, 
> you would be well on your way to developing a way to grok it. Also, GLX2 
> has a "clairvoyance" (Auto-Complete) function that is handler aware. I 
> suspect Mark Wieder developed a method for getting a list of all handlers 
> in a stack that is opened. That would probably help too.
>
> Bob S
>
>
>> On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
>>  wrote:
>>
>>
>> Hi All,
>>
>>
>> I’m wondering if anyone has a way or code to identify any un-used functions 
>> and commands in a set of stacks?
>>
>>
>> Best,
>> Steve MacLean
>>
>>
>> ___
>> 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




___
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


iOS simulator not responding

2019-11-25 Thread J. Landman Gay via use-livecode
When I run a test on the iOS simulator, it will not respond to either 
clicks/taps or keyboard entry. Basically, it's inert. I've tried several 
different hardware devices, all with the same results.


A Google search seems to show that this is a bug in the simulator when 
running under Mojave, and works again if run in Catalina. I can't update 
to Catalina yet because several apps I rely on will not run there.


I'm using LC 9.5.1 (rc1), XCode 10.1, on Mojave. Has anyone seen this, 
and if so, have a workaround?


--
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 do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread Pi Digital via use-livecode
Put each one in a group control that extends one to the left and the other to 
the right

Sean Cole
Pi Digital Prod Ltd

> On 25 Nov 2019, at 18:19, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I have to square graphics (line style) on top of each other.
> They have the same width and height and form a letter X.
> 
> How do I select the different graphics?
> 
> Mousedown, MouseLoc and points of graphic?
> Any pointers are welcome.
> 
> 
> greetings,
> 
> William
> ___
> 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 do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread hh via use-livecode
Yet another option is to use the technique from "pointInShape":
http://forums.livecode.com/viewtopic.php?p=129274#p129274

___
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 do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread Peter Bogdanoff via use-livecode
William,

You could try working with the mouseControl.

Peter

> On Nov 25, 2019, at 10:19 AM, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I have to square graphics (line style) on top of each other.
> They have the same width and height and form a letter X.
> 
> How do I select the different graphics?
> 
> Mousedown, MouseLoc and points of graphic?
> Any pointers are welcome.
> 
> 
> greetings,
> 
> William
> ___
> 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: Identifying Un-used functions and commands

2019-11-25 Thread Paul Dupuis via use-livecode

revRefactor has a very nice "orphan Code..." feature

https://github.com/mwieder/revRefactor/tree/master/Plugin


On 11/25/2019 1:08 PM, J. Landman Gay via use-livecode wrote:
I think he wants it the other way around, identifying handlers and 
functions that aren't called by any other handler. I've done this, but 
only one at a time, by searching for the handler name across all open 
stacks. If the only occurrence is the handler itself ("on/function 
whatever", ) then it's unused.


The method here would probably be to get a list of all handlers and 
functions and then do a global search for instances of each. If 
there's one or more that isn't the handler declaration, it's used.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 25, 2019 11:51:14 AM dunbarx--- via use-livecode 
 wrote:



Hi.
This was posted a couple of weeks ago, no?
I suggested then that you could write a short handler that loops 
through all the scripts in all the controls on all the cards, and 
isolate words that are not preceded by either "command", "on" or 
"function". In this way you might see, for example, that "myGadget3" 
may be present in scripts here and there, but there is no "on 
myGadget3" anywhere. Then you will have found an unused handler call.

This may require tweaking. For example, LC will compile, say:
"on myGadget3"  -- spaces galore

Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Nov 25, 2019 12:29 pm
Subject: Re: Identifying Un-used functions and commands

Since there is code in the script editor that knows the location of 
any command or function you right click on, if you found out how they 
do that, you would be well on your way to developing a way to grok 
it. Also, GLX2 has a "clairvoyance" (Auto-Complete) function that is 
handler aware. I suspect Mark Wieder developed a method for getting a 
list of all handlers in a stack that is opened. That would probably 
help too.


Bob S


On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
 wrote:



Hi All,


I’m wondering if anyone has a way or code to identify any un-used 
functions and commands in a set of stacks?



Best,
Steve MacLean


___
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





___
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 do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread William de Smet via use-livecode
Hi there,

I have to square graphics (line style) on top of each other.
They have the same width and height and form a letter X.

How do I select the different graphics?

Mousedown, MouseLoc and points of graphic?
Any pointers are welcome.


greetings,

William
___
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: Push notification to all user

2019-11-25 Thread JJS via use-livecode

It's Googles Firebase.

firebase.google.com

Op 25-11-2019 om 18:19 schreef Bob Sneidar via use-livecode:

What is FCM?

Bob S



On Nov 14, 2019, at 10:24 , JJS via use-livecode 
 wrote:

You need to use FCM


___
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: Identifying Un-used functions and commands

2019-11-25 Thread J. Landman Gay via use-livecode
I think he wants it the other way around, identifying handlers and 
functions that aren't called by any other handler. I've done this, but only 
one at a time, by searching for the handler name across all open stacks. If 
the only occurrence is the handler itself ("on/function whatever", ) then 
it's unused.


The method here would probably be to get a list of all handlers and 
functions and then do a global search for instances of each. If there's one 
or more that isn't the handler declaration, it's used.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 25, 2019 11:51:14 AM dunbarx--- via use-livecode 
 wrote:



Hi.
This was posted a couple of weeks ago, no?
I suggested then that you could write a short handler that loops through 
all the scripts in all the controls on all the cards, and isolate words 
that are not preceded by either "command", "on" or "function". In this way 
you might see, for example, that "myGadget3" may be present in scripts here 
and there, but there is no "on myGadget3" anywhere. Then you will have 
found an unused handler call.

This may require tweaking. For example, LC will compile, say:
"on myGadget3"  -- spaces galore

Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Nov 25, 2019 12:29 pm
Subject: Re: Identifying Un-used functions and commands

Since there is code in the script editor that knows the location of any 
command or function you right click on, if you found out how they do that, 
you would be well on your way to developing a way to grok it. Also, GLX2 
has a "clairvoyance" (Auto-Complete) function that is handler aware. I 
suspect Mark Wieder developed a method for getting a list of all handlers 
in a stack that is opened. That would probably help too.


Bob S


On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
 wrote:



Hi All,


I’m wondering if anyone has a way or code to identify any un-used functions 
and commands in a set of stacks?



Best,
Steve MacLean


___
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





___
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: DocuSign lib

2019-11-25 Thread Sean Cole (Pi) via use-livecode
It wasn't designed to be for use on mobile but it would. In fact, all it
does is generate the document as a pdf with special references in the eSign
APIs which get replaced with Signature boxes, etc. These then get emailed
via our app and AdobeSign to the customer who signs it within the eSign
website or app (not ours).

If you are interested, once I've put the DocuSign one together I will be
able to make them available for sale/download from the LC Store.

Sean Cole
*Pi Digital Productions Ltd*
www.pidigital.co.uk
+44(1634)402193
+44(7702)116447
'Don't try to think outside the box. Just remember the truth: There is no
box!'
'For then you realise it is not the box you are trying to look outside of,
but it is yourself!'

eMail Ts & Cs    Pi Digital
Productions Ltd is a UK registered limited company, no. 5255609


On Mon, 25 Nov 2019 at 17:31, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Oh brilliant! We have a need for eSigned documents in locations where for
> one reason or other we do not have access to any of their printing devices.
> Also none of our service technicians (as opposed to IT technicians) connect
> to our customer's networks, and an eSign solution on tablets would be a
> great help.
>
> Bob S
>
>
> > On Nov 25, 2019, at 09:28 , Pi Digital via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I know. That’s what I’m writing the library for :)
> > It’s a way of getting pdf documents signed via email. Our clients use
> Adobe Sign currently but it’s stupid expensive in comparison to others out
> there. So we’re giving our clients more options.
> >
> > Sean Cole
> > Pi Digital Prod Ltd
>
> ___
> 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: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
Hi.
This was posted a couple of weeks ago, no?
I suggested then that you could write a short handler that loops through all 
the scripts in all the controls on all the cards, and isolate words that are 
not preceded by either "command", "on" or "function". In this way you might 
see, for example, that "myGadget3" may be present in scripts here and there, 
but there is no "on myGadget3" anywhere. Then you will have found an unused 
handler call.
This may require tweaking. For example, LC will compile, say:
"on         myGadget3"  -- spaces galore

Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Nov 25, 2019 12:29 pm
Subject: Re: Identifying Un-used functions and commands

Since there is code in the script editor that knows the location of any command 
or function you right click on, if you found out how they do that, you would be 
well on your way to developing a way to grok it. Also, GLX2 has a 
"clairvoyance" (Auto-Complete) function that is handler aware. I suspect Mark 
Wieder developed a method for getting a list of all handlers in a stack that is 
opened. That would probably help too. 

Bob S


> On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
>  wrote:
> 
> Hi All,
> 
> I’m wondering if anyone has a way or code to identify any un-used functions 
> and commands in a set of stacks?
> 
> Best,
> Steve MacLean
> 
> ___
> 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: Mobile development android vs ios

2019-11-25 Thread Bob Sneidar via use-livecode
I'm still working on my first time flawless build! :-)

Bob S


> On Nov 9, 2019, at 16:32 , Tom Glod via use-livecode 
>  wrote:
> 
> I don't expect 100% first time flawlessness.  But is there anything I
> should keep in mind as I do this?


___
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: DocuSign lib

2019-11-25 Thread Bob Sneidar via use-livecode
Oh brilliant! We have a need for eSigned documents in locations where for one 
reason or other we do not have access to any of their printing devices. Also 
none of our service technicians (as opposed to IT technicians) connect to our 
customer's networks, and an eSign solution on tablets would be a great help. 

Bob S


> On Nov 25, 2019, at 09:28 , Pi Digital via use-livecode 
>  wrote:
> 
> I know. That’s what I’m writing the library for :)
> It’s a way of getting pdf documents signed via email. Our clients use Adobe 
> Sign currently but it’s stupid expensive in comparison to others out there. 
> So we’re giving our clients more options. 
> 
> Sean Cole
> Pi Digital Prod Ltd

___
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: DocuSign lib

2019-11-25 Thread Pi Digital via use-livecode
I know. That’s what I’m writing the library for :)
It’s a way of getting pdf documents signed via email. Our clients use Adobe 
Sign currently but it’s stupid expensive in comparison to others out there. So 
we’re giving our clients more options. 

Sean Cole
Pi Digital Prod Ltd

> On 25 Nov 2019, at 16:37, Bob Sneidar via use-livecode 
>  wrote:
> 
> Just be aware there is an actual product called DocuSign. 
> 
> Bob S
> 
> 
>> On Nov 24, 2019, at 11:59 , Pi Digital via use-livecode 
>>  wrote:
>> 
>> Before I plough on, has anyone else created a DocuSign library for LiveCode? 
>> I don’t want to reinvent the wheelie-bin. 
>> 
>> We’d already made one for Adobe Sign but looking to give our clients a more 
>> affordable option. 
>> 
>> Thanks. 
>> Sean Cole
>> Pi Digital Prod Ltd
>> ___
>> 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: Identifying Un-used functions and commands

2019-11-25 Thread Bob Sneidar via use-livecode
Since there is code in the script editor that knows the location of any command 
or function you right click on, if you found out how they do that, you would be 
well on your way to developing a way to grok it. Also, GLX2 has a 
"clairvoyance" (Auto-Complete) function that is handler aware. I suspect Mark 
Wieder developed a method for getting a list of all handlers in a stack that is 
opened. That would probably help too. 

Bob S


> On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
>  wrote:
> 
> Hi All,
> 
> I’m wondering if anyone has a way or code to identify any un-used functions 
> and commands in a set of stacks?
> 
> Best,
> Steve MacLean
> 
> ___
> 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: Push notification to all user

2019-11-25 Thread Bob Sneidar via use-livecode
What is FCM?

Bob S


> On Nov 14, 2019, at 10:24 , JJS via use-livecode 
>  wrote:
> 
> You need to use FCM


___
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: macOS, is my app active?

2019-11-25 Thread Bob Sneidar via use-livecode
on mouseUp
   put "tell application " & quote & "System Events" & quote & cr after 
tApplescript
   put "set activeApp to name of first application process whose frontmost is 
true" & cr after tApplescript
   put "return activeApp" & cr after tApplescript
   put "end tell" & cr after tApplescript
   do tAppleScript as appleScript
   put the result
end mouseUp

works for me

Bob S


> On Nov 23, 2019, at 06:11 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Trevor,
> 
>> Am 23.11.2019 um 15:06 schrieb Trevor DeVore via use-livecode 
>> :
>> 
>> On Sat, Nov 23, 2019 at 6:24 AM Klaus major-k via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi friends,
>>> 
>>> can we check if our standalone is currently active, means in
>>> the "foreground" or if it is not active? Know what I mean?
>>> If yes, how can we do that? LC? AppleScript?
>>> 
>>> I want to alert the user if the app is active, but not if the app
>>> is not active.
>> Apple provides API calls to do this and wrapping Objective-C APIs is pretty
>> straightforward. The APIs you are interested in:
>> ...
>> Regarding step 6 - If you don't want to store your extension externally to
>> your application you can also use the "+" button in the EB to install the
>> extension in your LC environment. Now the extension will load whenever you
>> launch LC and you can select "NSWorkspace" in the Standalone Builder
>> Inclusions tab so that the extension is bundled with your executable.
>> 
>> -- 
>> Trevor DeVore
> 
> wow, lots of infos, thank you very much, but maybe a little overkill for me.
> 
> It would suffice for me to get this little snippet to work:
> -
> tell application "System Events"
>   set activeApp to name of first application process whose frontmost is 
> true
>   return activeApp
> end tell
> 
> Works fine in the AppleScript Editor, but I get "execution error" when DOing 
> this in LC!?
> Any hints appreciated!
> 
> Thanks a lot!
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> https://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


___
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


[ANN] This Week in LiveCode 203

2019-11-25 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 #203 here: http://bit.ly/2OHOI2X

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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: DocuSign lib

2019-11-25 Thread Bob Sneidar via use-livecode
Just be aware there is an actual product called DocuSign. 

Bob S


> On Nov 24, 2019, at 11:59 , Pi Digital via use-livecode 
>  wrote:
> 
> Before I plough on, has anyone else created a DocuSign library for LiveCode? 
> I don’t want to reinvent the wheelie-bin. 
> 
> We’d already made one for Adobe Sign but looking to give our clients a more 
> affordable option. 
> 
> Thanks. 
> Sean Cole
> Pi Digital Prod Ltd
> ___
> 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