Re: Tab Button Colors

2020-01-23 Thread dunbarx--- via use-livecode
Hi.
If you set the foregroundColor to, say, red, and the backgroundColor to, say, 
yellow, the text of the tabs will show one or the other as each tab is 
"selected".
Is this what you are seeing? Or did you mean that the entirety of the tab is 
colored? For me, each tab, when selected, is blue.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Thu, Jan 23, 2020 6:59 pm
Subject: Tab Button Colors

Hi all. 

I n a tab button on a Mac, for some reason in the IDE, the text of the first 
tab is green and subsequent tabs are red. In a standalone, the text of the 
first button is YELLOW! No colors or effects are applied. 

Obviously not a show stopper, but people are asking me what the significance 
is. I have not found a property where I could change that (which might actually 
be cool!) 

Bob S


___
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 app crashes on launch

2020-01-23 Thread Ralph DiMola via use-livecode
J,

High Sierra
Xcode 10.1 build tools
LC 9.6.0 dp2

Confirm crash on 9.3.6
Works fine on 12.4.2
 
LC 9.5.1 works OK on 9.3.6

I don't have an iOS 11 device to test but we now know that 9 and 10 CTD.

Dinner is ready could you add this to QCC report?
Thanks!

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 J. Landman Gay via use-livecode
Sent: Thursday, January 23, 2020 5:44 PM
To: How to use LiveCode
Cc: J. Landman Gay
Subject: Re: iOS app crashes on launch

So I think I found my problem, I was testing on an ancient iPhone running
iOS 10.x. When I borrow my husband's phone on iOS 13 the app works.

So the new question is: does LC 9.6 have a minimum required iOS version? 
The dropdown goes all the way back to iOS 8 but that doesn't seem to be the
case. Does anyone know?

On 1/23/20 2:47 PM, J. Landman Gay via use-livecode wrote:
> I can build a test app but it crashes on launch.
> 
> I first built with 9.6dp2, it ran fine but there were other bugs. So I 
> built with 9.5.1 and it worked fine too but crashes all over the place.
> 
> Now I want to go back to 9.6dp2. I used Terminal to: sudo xcode-select 
> -s 
> 
> The correct XCode is set in LC prefs and the square is green.
> 
> The correct command line version is selected in XCode->Locations
> 
> The app builds and crashes on launch. This shouldn't be so hard.
> 


-- 
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: LC Server survey

2020-01-23 Thread Richard Gaskin via use-livecode
If you're signed in at the Forums the survey will show checkboxes next 
to the options.  If you don't see them double-check that you're signed 
in.  Thanks for helping to round out those survey results.

--
Richard Gaskin
Fourth World Systems


Alex Tweedly wrote:


OK, now I fell really dumb :-)

How do I cast a vote ?  I'm not generally a forum user (don't have time 
or patience for that appalling UIX), so maybe I'm just missing the 
background info on how to cast votes in surveys.


I wondered if I was supposed to simply post a reply, and then someone 
would add that in to the totals - but you have 84 responses, and only 59 
pots - so that doesn't seem right.


Anyway - I'm a

  - C2  - I run it on multiples shared servers

and a

  - AB (intend to run it on dedicated server, but not done so yet :-)

Alex.

On 22/01/2020 01:35, Richard Gaskin via use-livecode wrote:
I've been running a survey of LC Server use in the forums for some 
time now:


https://forums.livecode.com/viewtopic.php?f=15=26772

If you haven't cast your vote it would be helpful if you could take a 
moment to do so.


I've been thinking of making some tools for LC Server deployment and 
monitoring, but with just 76 total participants in that poll it's 
difficult to discern just how useful such things would be.


Thanks in advance for helping to broaden all of our understanding of 
how LC Server is used.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 Ambassador at FourthWorld.com http://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: Autofill Utility

2020-01-23 Thread Richard Gaskin via use-livecode

Nicely done, Bob.  Thanks for posting that.
--
Richard Gaskin
Fourth World Systems


Bob Sneidar wrote:

Hi all. 

These scripts may help you if you want to autofill text in a field from a list of prior values. The rawKeyUp handler goes in the field, and the autofill can go anywhere in the message path. You can see how simple this is. 

The prerequisite is to have a uniquevalues propery in the field. I have another handler if anyone is interested, which upon openCard queries a database for unique values for a list of fields, and then populates each field's uniquevalues property with the results, but I hesitate to put that handler here because it uses calls to sqlYoga, and some don't use that. 

Enjoy! 


Bob S

ON rawKeyUp
   IF the text of me is not empty THEN
  autoFill the long id of me
  exit to top
  -- focus on me
   END IF
   
   pass rawKeyUp

END rawKeyUp

on autoFill pTargetID
   put the text of pTargetID into tText
   put the number of chars of tText into tCharCount
   put the uniqueValues of pTargetID into tValueList
   put lineOffset(tText, tValueList) into tOffset
   if tOffset = 0 then exit autoFill
   put line tOffset of tValueList into tNewValue
   if tText is tNewValue then exit autoFill -- in case we tabbed
   set the text of pTargetID to line tOffset of tValueList
   select char tCharCount +1 to -1 of pTargetID
end autoFill



___
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: LC Server survey

2020-01-23 Thread Ralph DiMola via use-livecode
When you sign in there are check boxes and a submit button.

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 
Alex Tweedly via use-livecode
Sent: Thursday, January 23, 2020 8:20 PM
To: use-livecode@lists.runrev.com
Cc: Alex Tweedly
Subject: Re: LC Server survey

OK, now I fell really dumb :-)

How do I cast a vote ?  I'm not generally a forum user (don't have time or 
patience for that appalling UIX), so maybe I'm just missing the background info 
on how to cast votes in surveys.

I wondered if I was supposed to simply post a reply, and then someone would add 
that in to the totals - but you have 84 responses, and only 59 pots - so that 
doesn't seem right.

Anyway - I'm a

  - C2  - I run it on multiples shared servers

and a

  - AB (intend to run it on dedicated server, but not done so yet :-)

Alex.

On 22/01/2020 01:35, Richard Gaskin via use-livecode wrote:
> I've been running a survey of LC Server use in the forums for some 
> time now:
>
> https://forums.livecode.com/viewtopic.php?f=15=26772
>
> If you haven't cast your vote it would be helpful if you could take a 
> moment to do so.
>
> I've been thinking of making some tools for LC Server deployment and 
> monitoring, but with just 76 total participants in that poll it's 
> difficult to discern just how useful such things would be.
>
> Thanks in advance for helping to broaden all of our understanding of 
> how LC Server is used.
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.com http://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


___
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: LC Server survey

2020-01-23 Thread Alex Tweedly via use-livecode

OK, now I fell really dumb :-)

How do I cast a vote ?  I'm not generally a forum user (don't have time 
or patience for that appalling UIX), so maybe I'm just missing the 
background info on how to cast votes in surveys.


I wondered if I was supposed to simply post a reply, and then someone 
would add that in to the totals - but you have 84 responses, and only 59 
pots - so that doesn't seem right.


Anyway - I'm a

 - C2  - I run it on multiples shared servers

and a

 - AB (intend to run it on dedicated server, but not done so yet :-)

Alex.

On 22/01/2020 01:35, Richard Gaskin via use-livecode wrote:
I've been running a survey of LC Server use in the forums for some 
time now:


https://forums.livecode.com/viewtopic.php?f=15=26772

If you haven't cast your vote it would be helpful if you could take a 
moment to do so.


I've been thinking of making some tools for LC Server deployment and 
monitoring, but with just 76 total participants in that poll it's 
difficult to discern just how useful such things would be.


Thanks in advance for helping to broaden all of our understanding of 
how LC Server is used.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.com http://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: Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread Scott Morrow via use-livecode
I was under the impression that the original post was about Mac desktop. In 
which case JLG’s answer seemed To the point. If it isn’t in the MacAppStore 
then my understanding is that you just can’t code sign new builds but that 
existing apps continue to work as usual. On mobile it is different as several 
have pointed out

--
Scott Morrow

> On Jan 23, 2020, at 2:54 PM, Pi Digital via use-livecode 
>  wrote:
> 
> If it is an enterprise app then it will run as long as the Profile is still 
> valid (which is usually a year from its creation). 
> 
> If it is AdHoc test copy, again it will run as long as the profile is valid. 
> 
> From the store (I know that wasn’t your question) it runs out once the user 
> removes it from their device or a device OS upgrade renders the app build 
> inexecutable.
> 
> When the certificate expires the app simply won’t load. For enterprise apps 
> it will inform you that no relevant profile could be found.  
> 
> Sean Cole
> Pi Digital Prod Ltd
> 
>> On 23 Jan 2020, at 22:01, Devin Asay via use-livecode 
>>  wrote:
>> 
>> I’ve done lots of test deployments to devices that are registered in my 
>> wildcard provisioning profile. After the cert expires the app no longer runs 
>> on the test devices. You have to renew the cert and provisioning profile, 
>> re-save and reinstall the app on the device if you want it to work again.
>> 
>> I don’t know if it is different if you are distributing with an app-specific 
>> provisioning profile, since I haven’t tried that.
>> 
>> Devin
>> 
>>> On Jan 23, 2020, at 2:25 PM, Tony Trivia via use-livecode 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> Anyone know what happens if you let a Mac Developer ID Application cert
>>> expire? (I'm thinking of apps that are NOT in the Mac app store, but are
>>> distributed directly to users.)
>>> 
>>> I've heard if this cert is revoked, that can block any apps from running
>>> that were signed with that cert. Just wondering what the effect is if the
>>> cert just expires.
>>> 
>>> Thanks.
>>> Tony
>>> ___
>>> 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
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> 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


Tab Button Colors

2020-01-23 Thread Bob Sneidar via use-livecode
Hi all. 

I n a tab button on a Mac, for some reason in the IDE, the text of the first 
tab is green and subsequent tabs are red. In a standalone, the text of the 
first button is YELLOW! No colors or effects are applied. 

Obviously not a show stopper, but people are asking me what the significance 
is. I have not found a property where I could change that (which might actually 
be cool!) 

Bob S


___
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: Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread Pi Digital via use-livecode
If it is an enterprise app then it will run as long as the Profile is still 
valid (which is usually a year from its creation). 

If it is AdHoc test copy, again it will run as long as the profile is valid. 

From the store (I know that wasn’t your question) it runs out once the user 
removes it from their device or a device OS upgrade renders the app build 
inexecutable.

When the certificate expires the app simply won’t load. For enterprise apps it 
will inform you that no relevant profile could be found.  

Sean Cole
Pi Digital Prod Ltd

> On 23 Jan 2020, at 22:01, Devin Asay via use-livecode 
>  wrote:
> 
> I’ve done lots of test deployments to devices that are registered in my 
> wildcard provisioning profile. After the cert expires the app no longer runs 
> on the test devices. You have to renew the cert and provisioning profile, 
> re-save and reinstall the app on the device if you want it to work again.
> 
> I don’t know if it is different if you are distributing with an app-specific 
> provisioning profile, since I haven’t tried that.
> 
> Devin
> 
>> On Jan 23, 2020, at 2:25 PM, Tony Trivia via use-livecode 
>>  wrote:
>> 
>> Hi,
>> 
>> Anyone know what happens if you let a Mac Developer ID Application cert
>> expire? (I'm thinking of apps that are NOT in the Mac app store, but are
>> distributed directly to users.)
>> 
>> I've heard if this cert is revoked, that can block any apps from running
>> that were signed with that cert. Just wondering what the effect is if the
>> cert just expires.
>> 
>> Thanks.
>> Tony
>> ___
>> 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
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> 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 app crashes on launch

2020-01-23 Thread J. Landman Gay via use-livecode
So I think I found my problem, I was testing on an ancient iPhone 
running iOS 10.x. When I borrow my husband's phone on iOS 13 the app works.


So the new question is: does LC 9.6 have a minimum required iOS version? 
The dropdown goes all the way back to iOS 8 but that doesn't seem to be 
the case. Does anyone know?


On 1/23/20 2:47 PM, J. Landman Gay via use-livecode wrote:

I can build a test app but it crashes on launch.

I first built with 9.6dp2, it ran fine but there were other bugs. So I 
built with 9.5.1 and it worked fine too but crashes all over the place.


Now I want to go back to 9.6dp2. I used Terminal to: sudo xcode-select 
-s 


The correct XCode is set in LC prefs and the square is green.

The correct command line version is selected in XCode->Locations

The app builds and crashes on launch. This shouldn't be so hard.




--
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: Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread Devin Asay via use-livecode
I’ve done lots of test deployments to devices that are registered in my 
wildcard provisioning profile. After the cert expires the app no longer runs on 
the test devices. You have to renew the cert and provisioning profile, re-save 
and reinstall the app on the device if you want it to work again.

I don’t know if it is different if you are distributing with an app-specific 
provisioning profile, since I haven’t tried that.

Devin

> On Jan 23, 2020, at 2:25 PM, Tony Trivia via use-livecode 
>  wrote:
> 
> Hi,
> 
> Anyone know what happens if you let a Mac Developer ID Application cert
> expire? (I'm thinking of apps that are NOT in the Mac app store, but are
> distributed directly to users.)
> 
> I've heard if this cert is revoked, that can block any apps from running
> that were signed with that cert. Just wondering what the effect is if the
> cert just expires.
> 
> Thanks.
> Tony
> ___
> 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

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
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: Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread J. Landman Gay via use-livecode

It should keep running. You just can't build any new apps.

On 1/23/20 3:25 PM, Tony Trivia via use-livecode wrote:

Hi,

Anyone know what happens if you let a Mac Developer ID Application cert
expire? (I'm thinking of apps that are NOT in the Mac app store, but are
distributed directly to users.)

I've heard if this cert is revoked, that can block any apps from running
that were signed with that cert. Just wondering what the effect is if the
cert just expires.

Thanks.
Tony
___
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: Autofill Utility

2020-01-23 Thread Bob Sneidar via use-livecode
Couple updates. I added a closeField handler to optionally add new entries to 
the uniqueValues property. Also rawKeyUp needs a delay so things like 
backspacing can work. 

on closeField
   put me into tValue
   put the uniqueValues of me into tUniqueValues
   
   if tValue is not among the lines of tUniqueValues then
  answer question "Add " & tValue & " to the Autofill list?" with "Cancel" 
or "Add"
  if it is "Add" then
 put cr & tValue after tUniqueValues
 sort lines of tUniqueValues
 set the uniqueValues of me to tUniqueValues
  end if
   end if
end closeField

ON rawKeyUp
  IF the text of me is not empty THEN
 wait 30 ticks with messages -- adjust to your liking
 autoFill the long id of me
 exit to top
  END IF

  pass rawKeyUp
END rawKeyUp

Bob S


> On Jan 23, 2020, at 11:50 , Bob Sneidar  wrote:
> 
> Hi all. 
> 
> These scripts may help you if you want to autofill text in a field from a 
> list of prior values. The rawKeyUp handler goes in the field, and the 
> autofill can go anywhere in the message path. You can see how simple this is. 
> 
> The prerequisite is to have a uniquevalues propery in the field. I have 
> another handler if anyone is interested, which upon openCard queries a 
> database for unique values for a list of fields, and then populates each 
> field's uniquevalues property with the results, but I hesitate to put that 
> handler here because it uses calls to sqlYoga, and some don't use that. 
> 
> Enjoy! 
> 
> Bob S
> 
> ON rawKeyUp
>   IF the text of me is not empty THEN
>  autoFill the long id of me
>  exit to top
>  -- focus on me
>   END IF
> 
>   pass rawKeyUp
> END rawKeyUp
> 
> on autoFill pTargetID
>   put the text of pTargetID into tText
>   put the number of chars of tText into tCharCount
>   put the uniqueValues of pTargetID into tValueList
>   put lineOffset(tText, tValueList) into tOffset
>   if tOffset = 0 then exit autoFill
>   put line tOffset of tValueList into tNewValue
>   if tText is tNewValue then exit autoFill -- in case we tabbed
>   set the text of pTargetID to line tOffset of tValueList
>   select char tCharCount +1 to -1 of pTargetID
> end autoFill


___
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


Do Mac OS apps stop working if your Mac Developer ID Application cert expires?

2020-01-23 Thread Tony Trivia via use-livecode
Hi,

Anyone know what happens if you let a Mac Developer ID Application cert
expire? (I'm thinking of apps that are NOT in the Mac app store, but are
distributed directly to users.)

I've heard if this cert is revoked, that can block any apps from running
that were signed with that cert. Just wondering what the effect is if the
cert just expires.

Thanks.
Tony
___
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 app crashes on launch

2020-01-23 Thread J. Landman Gay via use-livecode

I can build a test app but it crashes on launch.

I first built with 9.6dp2, it ran fine but there were other bugs. So I 
built with 9.5.1 and it worked fine too but crashes all over the place.


Now I want to go back to 9.6dp2. I used Terminal to: sudo xcode-select 
-s 


The correct XCode is set in LC prefs and the square is green.

The correct command line version is selected in XCode->Locations

The app builds and crashes on launch. This shouldn't be so hard.

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


Autofill Utility

2020-01-23 Thread Bob Sneidar via use-livecode
Hi all. 

These scripts may help you if you want to autofill text in a field from a list 
of prior values. The rawKeyUp handler goes in the field, and the autofill can 
go anywhere in the message path. You can see how simple this is. 

The prerequisite is to have a uniquevalues propery in the field. I have another 
handler if anyone is interested, which upon openCard queries a database for 
unique values for a list of fields, and then populates each field's 
uniquevalues property with the results, but I hesitate to put that handler here 
because it uses calls to sqlYoga, and some don't use that. 

Enjoy! 

Bob S

ON rawKeyUp
   IF the text of me is not empty THEN
  autoFill the long id of me
  exit to top
  -- focus on me
   END IF
   
   pass rawKeyUp
END rawKeyUp

on autoFill pTargetID
   put the text of pTargetID into tText
   put the number of chars of tText into tCharCount
   put the uniqueValues of pTargetID into tValueList
   put lineOffset(tText, tValueList) into tOffset
   if tOffset = 0 then exit autoFill
   put line tOffset of tValueList into tNewValue
   if tText is tNewValue then exit autoFill -- in case we tabbed
   set the text of pTargetID to line tOffset of tValueList
   select char tCharCount +1 to -1 of pTargetID
end autoFill
___
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: Raspberry Pi 4

2020-01-23 Thread jbv via use-livecode

Hi,

Did they fix the USB-C issue they had last summer on the first release 
of the Pi 4 ?


Best,

Le 2020-01-22 14:34, Kevin via use-livecode a écrit :

I’ve had my push notification server running on a Pi 3 for some years.
Just bought a Pi 4, 4gb, will try installing live code on that.

Always found the biggest overhead on the Pi is running the monitor.
Seems quicker via VNC




___
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: No support for 24bit/96kHz audio file?

2020-01-23 Thread Jjs via use-livecode
I use wav and when i change it to 16bit/44.1kHz it plays ok. So for this usage 
it maybe is ok. But higher resolutions is better and more crisp. I'm building a 
drumpad for fun on mobile(Android for now) and use the play command. It has to 
respond fast so the player will be probably too slow, also ut just has to play 
quickly multiple samples without the player UI coming to front. 
Apart from this, when using music it would be nice to have Opus support (free 
codec and getting more popular on many platforms, see Wikipedia about it) and 
much higher resolutions.

Mark Waddingham via use-livecode  schreef op 23 
januari 2020 11:27:08 CET:
>On 2020-01-23 10:00, Stephen Barncard via use-livecode wrote:
>> Mark,
>> My experience with the built in player in the past has been difficult
>
>> and
>> it never served files greater than 16 bit up to 48k. In 2006 I
>reverse
>> engineered (hacked) the player object to EXPORT audio files and 
>> required a
>> lot of convoluted code to reassemble as a wav or aiff file, building 
>> the
>> binary jump table was a trip.  I gave up after that.
>
>Well it probably would have been easier just to use QT APIs direct and 
>write
>an external to export the audio data from the file (not that that was 
>ever
>necessarily easy, media frameworks tend to be skewed towards playback 
>rather
>than authoring - and QT was never particularly well documented for 
>anything
>other than playback!).
>
>> Has it ever really been improved? Player vs "Player control"  ?
>> It used to depend on Quicktime which is now doornail.
>
>Audioclips have always been restricted in what they can do - they are 
>essentially
>just simple raw audio storage/playback things.
>
>Players used QT on Mac/Win until QT died - now they use 
>AVFoundation/DirectShow
>(for at least the last 2-3 years). The formats they support are what 
>those
>frameworks support.
>
>Warmest Regards,
>
>Mark.
>
>-- 
>Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
>LiveCode: 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

-- 
Verstuurd vanaf mijn Android apparaat met K-9 Mail.
___
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: No support for 24bit/96kHz audio file?

2020-01-23 Thread Mark Waddingham via use-livecode

On 2020-01-23 10:00, Stephen Barncard via use-livecode wrote:

Mark,
My experience with the built in player in the past has been difficult 
and

it never served files greater than 16 bit up to 48k. In 2006 I reverse
engineered (hacked) the player object to EXPORT audio files and 
required a
lot of convoluted code to reassemble as a wav or aiff file, building 
the

binary jump table was a trip.  I gave up after that.


Well it probably would have been easier just to use QT APIs direct and 
write
an external to export the audio data from the file (not that that was 
ever
necessarily easy, media frameworks tend to be skewed towards playback 
rather
than authoring - and QT was never particularly well documented for 
anything

other than playback!).


Has it ever really been improved? Player vs "Player control"  ?
It used to depend on Quicktime which is now doornail.


Audioclips have always been restricted in what they can do - they are 
essentially

just simple raw audio storage/playback things.

Players used QT on Mac/Win until QT died - now they use 
AVFoundation/DirectShow
(for at least the last 2-3 years). The formats they support are what 
those

frameworks support.

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: 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: No support for 24bit/96kHz audio file?

2020-01-23 Thread Stephen Barncard via use-livecode
Mark,
My experience with the built in player in the past has been difficult and
it never served files greater than 16 bit up to 48k. In 2006 I reverse
engineered (hacked) the player object to EXPORT audio files and required a
lot of convoluted code to reassemble as a wav or aiff file, building the
binary jump table was a trip.  I gave up after that.

Has it ever really been improved? Player vs "Player control"  ?
It used to depend on Quicktime which is now doornail.

sqb
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Thu, Jan 23, 2020 at 12:45 AM Håkan Liljegren via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I kind of never use the built-in sound player other than small short sound
> effects and often not even at then, as the build in player is so limited. I
> instead use the player control. It can play kind of every file. (96kHz/
> 24bit Flac among them). On top of that you can play several sounds at once,
> you can control the volume individually, you can keep the files external,
> etc.
>
> Would it be nice to have an overhaul of the built-in player? Yes, of
> course! Is it a big problem? For me it isn’t!
>
> :-Håkan
> On 23 Jan 2020, 03:00 +0100, Stephen Barncard via use-livecode <
> use-livecode@lists.runrev.com>, wrote:
> > No and my biggest gripe about live code right now.
> >
> > On Wed, Jan 22, 2020 at 16:43 Sannyasin Brahmanathaswami via
> use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > aiff or wav?
> > >
> > > Hi,
> > >
> > > i imprted some short audiofiles 24bit/96kHz but it seems LC does some
> > > kind of downsampling or changes the frequency.
> > >
> > > As it plays now very looow.
> > >
> > > Is the max 16bit/44.1kHz ?
> > >
> > > Any idea?
> > >
> > >
> > > Thanks,
> > >
> > > Jerry
> > >
> > >
> > > ___
> > > 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
> > >
> > --
> > --
> > Stephen Barncard - Sebastopol Ca. USA -
> > mixstream.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
>
___
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: No support for 24bit/96kHz audio file?

2020-01-23 Thread Håkan Liljegren via use-livecode
I kind of never use the built-in sound player other than small short sound 
effects and often not even at then, as the build in player is so limited. I 
instead use the player control. It can play kind of every file. (96kHz/ 24bit 
Flac among them). On top of that you can play several sounds at once, you can 
control the volume individually, you can keep the files external, etc.

Would it be nice to have an overhaul of the built-in player? Yes, of course! Is 
it a big problem? For me it isn’t!

:-Håkan
On 23 Jan 2020, 03:00 +0100, Stephen Barncard via use-livecode 
, wrote:
> No and my biggest gripe about live code right now.
>
> On Wed, Jan 22, 2020 at 16:43 Sannyasin Brahmanathaswami via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > aiff or wav?
> >
> > Hi,
> >
> > i imprted some short audiofiles 24bit/96kHz but it seems LC does some
> > kind of downsampling or changes the frequency.
> >
> > As it plays now very looow.
> >
> > Is the max 16bit/44.1kHz ?
> >
> > Any idea?
> >
> >
> > Thanks,
> >
> > Jerry
> >
> >
> > ___
> > 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
> >
> --
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.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


Re: No support for 24bit/96kHz audio file?

2020-01-23 Thread Mark Waddingham via use-livecode

On 2020-01-22 19:17, JJS via use-livecode wrote:

Hi,

i imprted some short audiofiles 24bit/96kHz but it seems LC does some
kind of downsampling or changes the frequency.


When you say 'import' do you mean as audioclips?

I don't think audioclips (nor the APIs used to playback their sounds) 
support

24-bit audio.

Have you tried using a player?

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: 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