I have a script that sends a mouseup to a button on a card in another stack. Then it runs around the stack gathering up data. I push the card and pop the card. I have put "set lockscreen to true" at the beginning and "set lockscreen to false" at the end of the script, but I still see one flash of the other stack each time I put the button. It isn't locked for the whole time apparently. Is this because my script hops between stacks? What's the key to making lockscreen truly stop changes from being seen on the screen? It only flashes once with a quick view of one card on the other stack.
Thanks
Tom
LOCKSCREEN
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9579
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: LOCKSCREEN
Make two stacks, "xxx" and "zzz". On stack "xxx", place a button that contains:
In stack "zzz" make a button and one field. The field has seven lines of random data. The button contains
No need to lock anything, no flashing. You never need to "leave" stack "xxx".
Craig Newman
Code: Select all
on mouseUp
send "mouseUp" to button 1 of stack "zzz"
end mouseUp
Code: Select all
on mouseUp
get line random(7) of fld 1
put it
end mouseUp
Craig Newman
Re: LOCKSCREEN
This is a great improvement. I get a tiny flash, but it's the same screen; not the other stack. I think it's my scripting which is like something out of a drug addict's nightmare that makes it go the slightest bit wrong. I don't know why this would work, but you know I guess I have LEFT the stack because on the button over there, I have it go to other cards to get the data and thus I do need the lockscreen. If I had just written script to get the data off of a card instead of saying "go to this card and gather up the data" I think there would be no need for a lockscreen.
Thanks very much for this. The only flash I get is vary occasionally and as I said I don't see a flash from the other stack.
Tom
Thanks very much for this. The only flash I get is vary occasionally and as I said I don't see a flash from the other stack.
Tom