Lock and Unlock Screen (was Refactoring. etc...)

Alex Tweedly alex at tweedly.net
Mon Dec 31 18:27:17 EST 2018


Yeah, that seems like it might work - but it doesn't.

> on mouseUp
>    put 1 && the lockscreen &CR after msg
>    set the lockscreen to true
>    put 2 && the lockscreen &CR after msg
>    wait 0 seconds with messages
>    put 3 && the lockscreen &CR after msg
> end mouseup
>
gives

> 1 false
>
> 2 true
>
> 3 true
>
I guess being in an 'active' wait doesn't count as idle...

Need to do the brute force loop as Craig suggested.

Alex.


On 31/12/2018 17:21, Bob Sneidar via use-livecode wrote:
> There IS a method for unlocking all. wait 0 seconds with messages. All screen locks are cleared when the idle message is sent.
>
> Bob S
>
>





More information about the use-livecode mailing list