Hiding code in a button in a commercial version of LiveCode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Hiding code in a button in a commercial version of LiveCode

Post by bogs » Sun Jul 05, 2020 3:49 pm

Heh, I know my post was long-windy Craig, but right there at the top, just below what you quoted, you *might* have at least glanced at this line -
bogs wrote:
Sun Jul 05, 2020 11:54 am
The italic/underlined part would be better (but still not impossible to read), however, if any of these kids are precocious in the least, I wouldn't count on that either.
- which of course referred to -
Craigs wrote:
Sun Jul 05, 2020 11:54 am
And you can go further. Have the action button load the code from a custom property into the script of that graphic, execute it, and then delete it. Sounds like fun to me.
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Hiding code in a button in a commercial version of LiveCode

Post by richmond62 » Sun Jul 05, 2020 8:29 pm

anyone using the PB will see that code
Most of the kids attending my online courses tend to be preteens who do as they are told and turn off the PB from the start
as I generally teach without any reference to it.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Hiding code in a button in a commercial version of LiveCode

Post by bogs » Sun Jul 05, 2020 10:57 pm

All I can say is "WOW!"

You teach pre-teens, and they do what you tell them too? They are unlike any pre-teens I ever knew or heard of...
Image
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Hiding code in a button in a commercial version of LiveCode

Post by FourthWorld » Sun Jul 05, 2020 11:30 pm

richmond62 wrote:
Sun Jul 05, 2020 8:35 am
SparkOut wrote:
Sun Jul 05, 2020 12:00 am
Ah, then that's a problem for you then Richmond. Sorry, no bright ideas.
I own an INDY licence, so I'm not sure if 'that' is the problem.
Probably not. If you're deploying under proprietary license the solutions offered here for password-protecting a substack would suffice.

The inability of Community Edition to read protected stacks would only come info play if, instead of deploying a standalone, you want the recipient to be able to open the stack file in Community.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Hiding code in a button in a commercial version of LiveCode

Post by richmond62 » Mon Jul 06, 2020 6:51 am

You teach pre-teens, and they do what you tell them too? They are unlike any pre-teens I ever knew or heard of...
So do the teens I teach.

Unfortunately teachers in this country depise the kids they teach, and show it.

I just treat the kids I teach as if they are my equals (which some of them are; most
are way ahead of me) and very quickly a feeling of mutual respect develops.

Also, if some kids mess around and they look at me expecting a reaction they get one, "I don't care, my English/Programming is
far better than yours, so if you want to piss around it's your loss not mine."

jiml
Posts: 339
Joined: Sat Dec 09, 2006 1:27 am

Re: Hiding code in a button in a commercial version of LiveCode

Post by jiml » Mon Jul 06, 2020 5:07 pm

My aim is to present learners with a stack with a button which, when they click on it,
runs a script, but they are prevented from being able to see the script.

At a certain point learners need to get away from being spoon-fed and start working out
how to effect functionality: a stack with a button that functions but the script cannot be seen
allows end users to script their own button to try to imitate the functionality of the older button
and have access to all the resources in that stack might just serve that purpose.
Bogs suggestion of a complete standalone exemplar sounds as if it would accomplish your goal.
Perhaps in conjunction with a separate student stack that has all the resources except the button in question.

You show them a completed house. You give them a roofless house and all the materials and tools to build a roof.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Hiding code in a button in a commercial version of LiveCode

Post by bogs » Mon Jul 06, 2020 5:39 pm

Actually, that was spun off of ajperks thoughts...
ajperks wrote:
Sun Jul 05, 2020 11:32 am
I wonder if this suggestion might work?
Years ago, I developed a large programme in modules. The main part was effectively buttons that triggered the called exe module. Nothing wonderful, but perhaps your script could become an ex, called by your button?
Image

Post Reply