Re: New user

2021-12-20 Thread Phil Davis via use-livecode

Welcome to the list, Alex!

There are people here who are a LOT more familiar with Windows <-> 
device communication than I am, but I can at least ask questions.


Are you familiar with the "open driver" command and 
"serialControlString" property? They might give you some of what you need.


I confess I haven't worked in a Windows environment in many years, so 
what I used to know may now be obsolete. Ahh, technology!


Best regards -
Phil Davis


On 12/20/21 8:33 PM, Alex Hughson via use-livecode wrote:

Hello all. I am a beginner user of LiveCode. I’ve managed to work my way 
through a project which I think I can complete. However the project has to be 
able to communicate with an I/O board (Numato 16 channel USB GPIO Module for 
example) from a Windows Standalone application. I have not been able to find 
any guidance or samples for how to do this. This has led me to wonder if it is 
even possible to creat some kind of serial communication using LC or whether I 
should start over with a different platform. I am doing the LC work using a 
Mac. Any help or advice would be much appreciated.

___
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


--
Phil Davis
503-307-4363


___
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


New user

2021-12-20 Thread Alex Hughson via use-livecode
Hello all. I am a beginner user of LiveCode. I’ve managed to work my way 
through a project which I think I can complete. However the project has to be 
able to communicate with an I/O board (Numato 16 channel USB GPIO Module for 
example) from a Windows Standalone application. I have not been able to find 
any guidance or samples for how to do this. This has led me to wonder if it is 
even possible to creat some kind of serial communication using LC or whether I 
should start over with a different platform. I am doing the LC work using a 
Mac. Any help or advice would be much appreciated.

___
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: Record audio on Mac

2021-12-20 Thread Paul McClernan via use-livecode
Yes and despite info to the contrary mergMicrophone does still work in a
standalone on macOS, but as a “heads up”, entitlements may be an issue
making a standalone that uses it because on newer macOS need user
permission to use the microphone. I entirely removed the signature on a
standalone and then it asked for pets mission as required.

On Fri, Dec 10, 2021 at 2:30 PM Klaus major-k via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi all,
>
> > Am 10.12.2021 um 14:02 schrieb Klaus major-k via use-livecode <
> use-livecode@lists.runrev.com>:
> >
> > Hi all,
> >
> > There is an entry in the dictionary -> record sound...
> > But that obviously relies on Quicktime.
> > And then there is this in the "Release Notes":
> > ...
> > 64-bit standalones for Mac OS X do not have support for audio recording.
> > ...
>
> almost forgot that we have all this wonderful MERG AV... and
> MERGmicrophone... stuff on the Mac! :-)
> So please remove that line from the Release Notes.
>
>
> Best
>
> Klaus
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> 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


Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-20 Thread Keith Clarke via use-livecode
I’m using the Tree View widget to provide a quick and dirty read-only display 
of the various arrays of information that can be extracted from the PDF Widget.

Each PDF page contains too much text to read & understand within the 
constraints of a single line in a Tree View control. So, on highlighting an 
element in the Tree View, I want to display its value - such as 
arrayData[“Pages”][“1”][“text”] - into a field to read the detail extracted. 
(Currently I’m putting it into the message box as an interim step, as I tend to 
build & debug my scripts line by line and this is as far as I’ve got!)

I may have misread the docs but it seems that when a Tree View element is 
hilited, one doesn’t get immediate access to the element’s value. Instead, one 
has to jump through hoops, by handling the hilitedElement, which returns the 
nested keys of the element. So, I’m simply trying to convert this 
comma-separated list to an array reference, so that I can get the value 
associated with this key.

If I’ve missed a simple means to access the Tree View element’s value directly 
‘on click', I’ll gladly change course!
Best,
Keith 

> On 20 Dec 2021, at 20:46, J. Landman Gay via use-livecode 
>  wrote:
> 
> I'm confused about what the goal is. The hilitedElement contains the text of 
> the selection. The array is already in place, so you don't really need to add 
> to it.
> 
> The reason you're seeing text in the message box is because the last line 
> contains an unspecified "put". Without a destination for the "put" it will go 
> automatically to the message box. If you want to work with it, you'd need to 
> put the value into a variable.
> 
> What's the purpose of the concatenation, and what do you want to do with the 
> selection?
> 
> On 12/20/21 11:11 AM, Keith Clarke via use-livecode wrote:
>> Hi folks,
>> I’m struggling to access the value from a Tree View widget’s data array as 
>> the hilitedElement changes - though I think my issue is more about working 
>> with arrays than the Tree View widget.
>> The following test script (on the Tree widget) successfully gets the Tree’s 
>> arrayData into tTreeData and creates a ‘correct-looking’ nested array key 
>> syntax for any changing tHilitedElement.
>> However, the last line displays the tHilitedElement variable string in the 
>> message box rather than concatenating it to tTreeData as the nested key to 
>> return the element’s value.
>> on hiliteChanged
>> put the hilitedElement of me into tHilitedElement
>> if char -1 of tHilitedElement is comma then delete char -1 of tHilitedElement
>> replace comma with quote & "][" & quote in tHilitedElement
>> put "[" & quote before tHilitedElement
>> put quote & "]" after tHilitedElement
>> put the arrayData of me into tTreeData
>> put tTreeData & tHilitedElement
>> end hiliteChanged
>> I’ve tried various forms of brackets around the tHilitedElement variable 
>> containing the nested key string with no success - what am I doing wrong?
>> TIA.
>> Best,
>> Keith
>> ___
>> 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


___
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 get a hilitedElement value from a Tree View's arrayData?

2021-12-20 Thread J. Landman Gay via use-livecode
I'm confused about what the goal is. The hilitedElement contains the text of the selection. The 
array is already in place, so you don't really need to add to it.


The reason you're seeing text in the message box is because the last line contains an 
unspecified "put". Without a destination for the "put" it will go automatically to the message 
box. If you want to work with it, you'd need to put the value into a variable.


What's the purpose of the concatenation, and what do you want to do with the 
selection?

On 12/20/21 11:11 AM, Keith Clarke via use-livecode wrote:

Hi folks,
I’m struggling to access the value from a Tree View widget’s data array as the 
hilitedElement changes - though I think my issue is more about working with 
arrays than the Tree View widget.

The following test script (on the Tree widget) successfully gets the Tree’s 
arrayData into tTreeData and creates a ‘correct-looking’ nested array key 
syntax for any changing tHilitedElement.

However, the last line displays the tHilitedElement variable string in the 
message box rather than concatenating it to tTreeData as the nested key to 
return the element’s value.

on hiliteChanged

put the hilitedElement of me into tHilitedElement

if char -1 of tHilitedElement is comma then delete char -1 of tHilitedElement

replace comma with quote & "][" & quote in tHilitedElement

put "[" & quote before tHilitedElement

put quote & "]" after tHilitedElement

put the arrayData of me into tTreeData

put tTreeData & tHilitedElement

end hiliteChanged

I’ve tried various forms of brackets around the tHilitedElement variable 
containing the nested key string with no success - what am I doing wrong?

TIA.
Best,
Keith
___
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


How to get a hilitedElement value from a Tree View's arrayData?

2021-12-20 Thread Keith Clarke via use-livecode
Hi folks,
I’m struggling to access the value from a Tree View widget’s data array as the 
hilitedElement changes - though I think my issue is more about working with 
arrays than the Tree View widget.

The following test script (on the Tree widget) successfully gets the Tree’s 
arrayData into tTreeData and creates a ‘correct-looking’ nested array key 
syntax for any changing tHilitedElement. 

However, the last line displays the tHilitedElement variable string in the 
message box rather than concatenating it to tTreeData as the nested key to 
return the element’s value.

on hiliteChanged

put the hilitedElement of me into tHilitedElement

if char -1 of tHilitedElement is comma then delete char -1 of tHilitedElement

replace comma with quote & "][" & quote in tHilitedElement

put "[" & quote before tHilitedElement

put quote & "]" after tHilitedElement

put the arrayData of me into tTreeData

put tTreeData & tHilitedElement

end hiliteChanged

I’ve tried various forms of brackets around the tHilitedElement variable 
containing the nested key string with no success - what am I doing wrong?

TIA.
Best,
Keith
___
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