lock/unlock screen

Richmond richmondmathewson at gmail.com
Sat Sep 22 12:42:08 EDT 2012


On 09/22/2012 05:49 PM, dunbarx at aol.com wrote:
> Kay.
>
>
> Any single command to unlock the screen will only undo one of the number of locks already set.
>
>
> You have to do the whole thing:
>
>
> repeat until the lockScreen = "false"
> unlock screen
> end repeat
>
>
> try this in a button:
>
>
> on mouseup
> lock screen
> lock screen
> lock screen
> repeat until the mouseClick
> put random(99)
> end repeat
> if the lockscreen = "true" then unlock screen
> answer the lockscreen
> end mouseup
>
>
> You get "true"
> Craig
>
>
>
> -----Original Message-----
> From: Kay C Lan <lan.kc.macmail at gmail.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Sent: Fri, Sep 21, 2012 11:43 pm
> Subject: Re: lock/unlock screen
>
>
> On Fri, Sep 21, 2012 at 5:47 AM, Bob Sneidar <bobs at twft.com> wrote:
>
>> Face it Richmond. It's you and me against the world. ;-)
>
> If you can't sleep at night

I haven't been sleeping very well recently, but, largely owing to my 
cat's tendency to gnaw my toes
at 3 or 4 in the morning because she wants an early breakfast: NOT 
because of bl**dy LOCKSCREEN.

Yours, in 'programliness'  . . . LOL

Richmond.


> because you're worried about multiple lock
> screen, or keeping track of pairs, why not:
>
> if the lockScreen is false then lock screen
>
> If you only ever use this, when you absolutely need the screen to be
> locked, then the count will only ever be 1. For those instances where you
> absolutely need the screen to be unlocked:
>
> if the lockScreen is true then unlock screen
>
> Then you don't have to bother about keeping track of pairs and can rest
> easy at nights knowing that if left to the engine it only has to unlock
> once when it goes idle - rather than having to wait a millisecond longer if
> you had dozens piled up.
> _______________________________________________
> use-livecode mailing list
> use-livecode at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list