Re: Offtopic: Can anybody create a small DLL for me?

2021-04-13 Thread Andre Garzia via use-livecode
Tiemo, Maybe it is possible to parse the result of shell(“ipconfig /all”) To get the same information. I’m not sure which information you’re collecting but I just run that on my windows and I could see every interface and the info about them. Best A > On 12 Apr 2021, at 10:43, Tiemo via

Re: Offtopic: Can anybody create a small DLL for me?

2021-04-13 Thread Bob Sneidar via use-livecode
Plus sudo will require authentication, yes? That would not be automated. The purpose of my function is to be able to detect the default adapter and compare it to a stored last known adapter to see if it has changed. If it has, I have my app re-authenticate. Bob S On Apr 13, 2021, at 9:06 PM,

Re: Offtopic: Can anybody create a small DLL for me?

2021-04-13 Thread Mark Wieder via use-livecode
On linux it's very easy sudo arp-scan -l will give you a nice sorted list. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Mobile Scroller Advice

2021-04-13 Thread Brian Milby via use-livecode
Greetings on this lovely Tuesday evening. I'm in need of a little mobile scroller wisdom. I'm working on an app that runs on mobile devices (Apple and Android). We are presenting an image and have enabled the ability for the user to tap on the image to zoom in. Everything is working except the

Re: Offtopic: Can anybody create a small DLL for me?

2021-04-13 Thread Bob Sneidar via use-livecode
How do you tell which is the default adapter? Bob S > On Apr 13, 2021, at 8:00 PM, Mark Wieder via use-livecode > wrote: > > On linux it's very easy > > sudo arp-scan -l > > will give you a nice sorted list. > > -- > Mark Wieder > ahsoftw...@gmail.com > >

On the dangers of automated refactoring

2021-04-13 Thread Andre Garzia via use-livecode
Hi Folks, I’ve recently read that long thread that almost got people banned and will not comment on it. What I want to comment on is about the kernel of the activity that was mentioned there: refactoring. Often in LiveCode (and most programming languages to be honest) we go coding for a long

Re: On the dangers of automated refactoring

2021-04-13 Thread Mark Smith via use-livecode
I can't speak for others, but I can personally vouch for the authenticity of that statement  On 2021-04-13, 12:12 PM, "use-livecode on behalf of Andre Garzia via use-livecode" wrote: I bet many here never used a unit testing library. ___

Re: On the dangers of automated refactoring

2021-04-13 Thread David Bovill via use-livecode
Hence the value of crowd-funding a version of the LiveCode language for the Graalvm. I spend a great deal of my time in LiveCode refactoring and renaming handlers. I’ve done this not so much because it is useful to my productivity, but because I see a method in the madness of spaghetti code

Re: On the dangers of automated refactoring

2021-04-13 Thread Andre Garzia via use-livecode
Peter, This is neat! I also have a small test library, but mine is way less complete than yours. I never released it because it was quite incomplete. Maybe writing a tutorial or doing a small screencast showing it working might help people understand why it is important. I bet many here never

AW: Offtopic: Can anybody create a small DLL for me?

2021-04-13 Thread Tiemo via use-livecode
Thanks Matthias and Andre for pointing out for these options Tiemo -Ursprüngliche Nachricht- Von: use-livecode Im Auftrag von Andre Garzia via use-livecode Gesendet: Dienstag, 13. April 2021 11:38 An: How to use LiveCode Cc: Andre Garzia Betreff: Re: Offtopic: Can anybody create a

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread Mark Waddingham via use-livecode
On 2021-04-13 16:15, Mark Wieder via use-livecode wrote: Do the release notes need updating? Hah! Yes - we've had a 64-bit windows build (separate installer) available since 9.5. Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread Mark Wieder via use-livecode
On 4/13/21 4:48 AM, Mark Waddingham via use-livecode wrote: No - its either running as a 32-bit app (if you have installed the 32-bit version of LC) or as a 64-bit app (if you have installed the 64-bit version of LC) - there's no emulation going on - the difference is the processor mode the

Re: On the dangers of automated refactoring

2021-04-13 Thread Mark Wieder via use-livecode
On 4/13/21 3:05 AM, Andre Garzia via use-livecode wrote: What I didn’t realise was that there was variable shadowing happening in which handler arguments were named with the same name as script-local variables Ouch. Don't do that. I end up spending most of my coding life refactoring

Re: Intermittent typing delay in script editor.

2021-04-13 Thread Bob Sneidar via use-livecode
Long scripts seems to be the recipe, at least for me. Bob S > On Apr 13, 2021, at 03:11 , Andre Garzia via use-livecode > wrote: > > I see it on my two windows machine but never on the mac…. It is intermittent > and I’m yet to find a recipe, but it is real. > >> On 8 Apr 2021, at 18:17,

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread Ken Ray via use-livecode
> On Apr 13, 2021, at 5:28 AM, Andre Garzia via use-livecode > wrote: > > I like all that I read here. There are things that are really hard when > building standalone apps that I don’t think should be handled by LC HQ, such > as “adding AppleScript dictionary” to your app. This is harder

Re: On the dangers of automated refactoring

2021-04-13 Thread Brian Milby via use-livecode
There is a test framework in the GitHub repository: https://github.com/livecode/livecode/tree/develop/tests Didn’t really see documentation on it, but I’m sure it could be documented and used to generate a robust unit test of our own projects. Plenty of examples there on use, just nothing on

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread Andre Garzia via use-livecode
I like all that I read here. There are things that are really hard when building standalone apps that I don’t think should be handled by LC HQ, such as “adding AppleScript dictionary” to your app. This is harder than it seems and it involves plist manipulation, fancy sdef xml creation, etc.

Re: On the dangers of automated refactoring

2021-04-13 Thread Paul Dupuis via use-livecode
I find revRefactor (which adds a Refactoring sub-menu under the Edit menu of the IDE Script Editor) to be a tool that I personally would like to see better integrated into the IDE. This plugin was done by Mark Wieder and is not an official part of the LiveCode IDE, but it is one place, I would

Re: Offtopic: Can anybody create a small DLL for me?

2021-04-13 Thread Bob Sneidar via use-livecode
On Windows it's pretty easy. On MacOS it's a little trickier. Here's a function I wrote to get the default connection, which contains methods for getting the network adapters for Windows and MacOS. Enjoy: FUNCTION getDefaultNetwork pMode -- leave pMode empty for just IP and MAC info. Pass

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread Bob Sneidar via use-livecode
Hi Mark. I downloaded LC 9.6.2 for Windows and installed it on a Server 2012 VM. It installed in the Program Files (x86) folder. I was under the impression that only happens when the app is a 32 bit app. Are you implying the standalones are 64 bit but the LC app is 32? If that were the

Re: On the dangers of automated refactoring

2021-04-13 Thread Bob Sneidar via use-livecode
How do you find that? Github? Bob S > On Apr 13, 2021, at 08:59 , Paul Dupuis via use-livecode > wrote: > > On 4/13/2021 11:52 AM, Bob Sneidar via use-livecode wrote: >> We should have a contest: Who has the biggest code base. Mine's pretty big, >> but I doubt it's the biggest.:-) >> > ~

RE: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread chipsm themartinz.com via use-livecode
Hi everyone. I am totally confused by this topic. I know that I downloaded the LC 9.6.2 RC4 64 bit windows version and Windows 10 ,latest update, refuses to run the installer. I have been watching the list and decided to just wait and see if there would be a fix for this. I have turned off my

Re: On the dangers of automated refactoring

2021-04-13 Thread Bob Sneidar via use-livecode
It's nothing short of a miracle that the shot didn't go INTO your foot. :-) Bob S > On Apr 13, 2021, at 03:05 , Andre Garzia via use-livecode > wrote: > > Let me tell you folks a recent story in which I tried to do exactly that and > shot myself on the foot.

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread Mark Waddingham via use-livecode
On 2021-04-13 16:46, Bob Sneidar via use-livecode wrote: Hi Mark. I downloaded LC 9.6.2 for Windows and installed it on a Server 2012 VM. It installed in the Program Files (x86) folder. I was under the impression that only happens when the app is a 32 bit app. Then you downloaded the 32-bit

Re: On the dangers of automated refactoring

2021-04-13 Thread Brian Milby via use-livecode
It was actually more the mis-application of Hungarian-lite. I think it compiled with strict enabled. Sent from my iPhone > On Apr 13, 2021, at 12:50 PM, Richard Gaskin via use-livecode > wrote: > > Andre Garzia wrote: > > > What I didn’t realise was that there was variable shadowing

Re: On the dangers of automated refactoring

2021-04-13 Thread Bob Sneidar via use-livecode
We should have a contest: Who has the biggest code base. Mine's pretty big, but I doubt it's the biggest. :-) Bob S > On Apr 13, 2021, at 03:48 , David Bovill via use-livecode > wrote: > > I’d be interested to understand the nature of the gazillion stack project to > see how it compares to

Re: On the dangers of automated refactoring

2021-04-13 Thread Richard Gaskin via use-livecode
Andre Garzia wrote: > What I didn’t realise was that there was variable shadowing happening > in which handler arguments were named with the same name as script- > local variables, my smart replacing removed those arguments because > there was no need to redeclare the script-local vars. I didn’t

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread Keith Martin via use-livecode
> On 13 Apr 2021, at 11:28, Andre Garzia via use-livecode > wrote: > > On the other hand, I think that the SB should create standalones that can > actually be deployed, this means that it should be able to handle > notarisation on the mac out-of-the-box. Oh boy, THIS! And everything

Re: On the dangers of automated refactoring

2021-04-13 Thread Paul Dupuis via use-livecode
On 4/13/2021 11:52 AM, Bob Sneidar via use-livecode wrote: We should have a contest: Who has the biggest code base. Mine's pretty big, but I doubt it's the biggest.:-) ~ 83,000 lines of Livecode script, not counting 3rd party library stacks (Wordlib, Spreadlib, lclSpell, ChartMaker) and some

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread JeeJeeStudio via use-livecode
Many thanks mark for explaining. So the IDE is a real 32 bit or a real 64bit application. Am I understanding it correct that it is the same for the executable an LC user/devbuilds for Windows? the build of a stack is a real 64bit? Op di 13 apr. 2021 om 18:09 schreef Mark Waddingham via

Re: On the dangers of automated refactoring

2021-04-13 Thread Paul Dupuis via use-livecode
On 4/13/2021 12:06 PM, Bob Sneidar via use-livecode wrote: How do you find that? Github? Don't remember how I found it - I think an announcement by Mark to the list, but, yup, Github: https://github.com/mwieder/revRefactor ___ use-livecode

Re: On the dangers of automated refactoring

2021-04-13 Thread Mark Wieder via use-livecode
On 4/13/21 9:48 AM, Richard Gaskin via use-livecode wrote: Andre Garzia wrote: > What I didn’t realise was that there was variable shadowing happening > in which handler arguments were named with the same name as script- > local variables, my smart replacing removed those arguments because

Re: How do I change the textcolor of the selected text in a native iOS field?

2021-04-13 Thread J. Landman Gay via use-livecode
On 4/13/21 6:15 AM, William de Smet via use-livecode wrote: Hi there, How do I get the selectedText of a native iOS field? I want to change the color of the text selection in the field. I think you want "selectedRange" which returns the start index and the length of the text selected.

Re: On the dangers of automated refactoring

2021-04-13 Thread Mark Wieder via use-livecode
On 4/13/21 8:37 AM, Paul Dupuis via use-livecode wrote: I find revRefactor (which adds a Refactoring sub-menu under the Edit menu of the IDE Script Editor) to be a tool that I personally would like to see better integrated into the IDE. Paul - thanks for the kind words there. I took most of

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread J. Landman Gay via use-livecode
On 4/13/21 10:43 AM, Keith Martin via use-livecode wrote: On 13 Apr 2021, at 11:28, Andre Garzia via use-livecode wrote: On the other hand, I think that the SB should create standalones that can actually be deployed, this means that it should be able to handle notarisation on the mac

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread matthias rebbe via use-livecode
Jacque, and if put the that NotarizerHelperStack into the plugins folder and if you add the below code to your stack script then you can directly code sign and notarize the created macOS standalone right after it was built. ;) on standaloneSaved pFolderSavedIn if the

Re: On the dangers of automated refactoring

2021-04-13 Thread Paul Dupuis via use-livecode
On 4/13/2021 2:39 PM, Mark Wieder via use-livecode wrote: On 4/13/21 8:37 AM, Paul Dupuis via use-livecode wrote: I find revRefactor (which adds a Refactoring sub-menu under the Edit menu of the IDE Script Editor) to be a tool that I personally would like to see better integrated into the IDE.

Re: On the dangers of automated refactoring

2021-04-13 Thread Curry Kenworthy via use-livecode
Andre: > Often in LiveCode (and most programming languages to be honest) > we go coding for a long while and then realise that our code > need extensive refactoring. We may have repeated a pattern over > and over again and discovered that we need to change every > instance of them, or

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread Andre Garzia via use-livecode
> On 9 Apr 2021, at 20:49, JeeJeeStudio via use-livecode > wrote: > > Of course it's 32bits, even the builds are 32bits on windows except they are > packed in a 64bit container. I’m not sure about that because my Surface Pro X can only run x86-32 apps and it can run LiveCode. If it was

How do I change the textcolor of the selected text in a native iOS field?

2021-04-13 Thread William de Smet via use-livecode
Hi there, How do I get the selectedText of a native iOS field? I want to change the color of the text selection in the field. How do I adapt this code I made? (this obviously only returns the first char of the text in red) - on changeColor mobileControlDo "field1", "focus", true put

Re: [ANN] Release 9.6.2 RC-4

2021-04-13 Thread Mark Waddingham via use-livecode
On 2021-04-09 22:25, Bob Sneidar via use-livecode wrote: Ya so LC for Windows is basically running in an emulator. No - its either running as a 32-bit app (if you have installed the 32-bit version of LC) or as a 64-bit app (if you have installed the 64-bit version of LC) - there's no

Re: Intermittent typing delay in script editor.

2021-04-13 Thread Andre Garzia via use-livecode
I see it on my two windows machine but never on the mac…. It is intermittent and I’m yet to find a recipe, but it is real. > On 8 Apr 2021, at 18:17, Mark Wieder via use-livecode > wrote: > > On 4/8/21 9:52 AM, thompsonmichael--- via use-livecode wrote: > >> LC normally works lightning fast

Re: On the dangers of automated refactoring

2021-04-13 Thread Peter W A Wood via use-livecode
Hi Andre > On 13 Apr 2021, at 18:05, Andre Garzia via use-livecode > wrote: > > We don’t even have unit testing libraries so that we can make sure our code > works as expected. I published a simple unit testing library on GitHub but it din’t get any traction -

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread matthias rebbe via use-livecode
Couldn't you search for the ASC provider in the helper stack pressing the "Loupe" icon in the general settings? - Matthias Rebbe Life Is Too Short For Boring Code > Am 14.04.2021 um 01:12 schrieb J. Landman Gay via use-livecode > : > > Cool. Thanks. I do keep NotarizationHelper in my

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread J. Landman Gay via use-livecode
I tried that but I don't keep Xcode in the root of the Applications folder and the stack gave a warning. When I moved it there, the Xcode commands couldn't find it because I'd set the Xcode default to a copy in a subfolder. Maybe a future update can determine the user's Xcode location. I have

Re: We don't need a Player (was Re: New(?) Idea for Standalones)

2021-04-13 Thread J. Landman Gay via use-livecode
Cool. Thanks. I do keep NotarizationHelper in my plugins folder since I use it frequently. I probably will continue with the manual method for a while though, since I have three different apps to notarize and I have to update the General settings each time. Maybe later I'll revise your script