Re: opencard and visual effect

2023-05-04 Thread Klaus major-k via use-livecode
Hi Jim,

> Am 04.05.2023 um 19:35 schrieb Jim Lambert via use-livecode 
> :
>> 
>> you may have missed this in my last posting:
> 
> Klaus,
> 
> Indeed I did.
> 
> JimL
> 
> P.S. Another possibility you could also fake a transition. Then start your 
> timer in the openCard handler of your destination card. 
> 
> In starting card:
> on fakeTransition
>   lock screen
>   import snapshot from rectangle (the rect of next card) of next card
>   put it into tempImage
>   set the blendlevel of tempImage to 100
>   unlock screen
>   repeat with x = 100 down to 0 step -10
>   set the blendlevel of tempImage to x
>   wait 10 ticks with messages
>   end repeat
>   lock screen
>   delete tempImage
>   go next
> end fakeTransition
> 
> In destination card:
> on openCard
>   startTimer
> end openCard

thanks, but now I will navigate to the "timer" card without visual effect (real 
or fake).
My customer said that is OK. :-)


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-04 Thread Jim Lambert via use-livecode
> 
> you may have missed this in my last posting:

Klaus,

Indeed I did.

JimL

P.S. Another possibility you could also fake a transition. Then start your 
timer in the openCard handler of your destination card. 

In starting card:

on fakeTransition
lock screen
import snapshot from rectangle (the rect of next card) of next card
put it into tempImage
set the blendlevel of tempImage to 100
unlock screen

repeat with x = 100 down to 0 step -10
set the blendlevel of tempImage to x
wait 10 ticks with messages
end repeat

lock screen
delete tempImage
go next
end fakeTransition

In destination card:

on openCard
startTimer
end openCard
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Klaus major-k via use-livecode
Hi Pauil,

> Am 03.05.2023 um 22:24 schrieb Paul Dupuis via use-livecode 
> :
> 
> If I have followed this thread:
> 1) Klaus executes a go to  with a visual effect using an effect rate of 
> X millisecs
> 2) Klaus need to start a time on how long the user of the app has to answer a 
> question once the card is displayed
> I believe the order is:
> 1) preOpencard handler (if one) is executed
> 2) card is rendered in the window using the visual effect but the openCard 
> handler (if one) is executed starting effectively at the same time as the 
> visual effect based rendering of the card in the window takes place.
> So starting the timer at the time "openCard" starts + the length of the 
> effectRate of the visual effect used in the GO would represent when the user 
> can expect to see the whole card.
> So if the user has 5 seconds to answer the question and the effectRate was 
> set to 500 millisecs then the start time of openCard + 500ms is when to start 
> the counter for a  second reply.
> Disclaimers: Depending upon the specific effect chosen and the placement of 
> the question on the card, the user may be able to read the question a few 
> millisec before the effect is done or even many millisec before the effect is 
> done.

thank you for your explanation, makes a lot of sense!

> I don't think there is any way to have absolutely precise timing.

Yep, I leave this oit and go directly to the card now.


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Paul Dupuis via use-livecode

If I have followed this thread:
1) Klaus executes a go to  with a visual effect using an effect 
rate of X millisecs
2) Klaus need to start a time on how long the user of the app has to 
answer a question once the card is displayed


I believe the order is:
1) preOpencard handler (if one) is executed
2) card is rendered in the window using the visual effect but the 
openCard handler (if one) is executed starting effectively at the same 
time as the visual effect based rendering of the card in the window 
takes place.


So starting the timer at the time "openCard" starts + the length of the 
effectRate of the visual effect used in the GO would represent when the 
user can expect to see the whole card.


So if the user has 5 seconds to answer the question and the effectRate 
was set to 500 millisecs then the start time of openCard + 500ms is when 
to start the counter for a  second reply.


Disclaimers: Depending upon the specific effect chosen and the placement 
of the question on the card, the user may be able to read the question a 
few millisec before the effect is done or even many millisec before the 
effect is done.


I don't think there is any way to have absolutely precise timing.




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Craig Newman via use-livecode
Klaus.

I never use visual effects, though I played with them a lot in about 1988. They 
are “blocking” in some sense, so I think you are beat served by losing them 
entirely in your planning.

Craig

> On May 3, 2023, at 2:59 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Jim,
> 
>> Am 03.05.2023 um 20:18 schrieb Jim Lambert via use-livecode 
>> :
>> 
>>> Problem for me ist to measure the time until the user hits a key after a 
>>> question 
>>> appears on the screen on the card. 
>>> And I start this on "opencard", so the VISUAL effect, what the user really 
>>> sees,
>>> MUST have been terminated, but obviously "opencard" does not respect this.
>> If the visual effect may be compromising your very critical timing perhaps 
>> you should eliminate the visual effect.
>> Just go card and start timing upon opencard.
> 
> you may have missed this in my last posting:
> ...
> As a workaround I'll leave the visual effect out, temporarily.
> ...
> :-)
> 
>> Jim Lambert
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Klaus major-k via use-livecode
Hi Jim,

> Am 03.05.2023 um 20:18 schrieb Jim Lambert via use-livecode 
> :
> 
>> Problem for me ist to measure the time until the user hits a key after a 
>> question 
>> appears on the screen on the card. 
>> And I start this on "opencard", so the VISUAL effect, what the user really 
>> sees,
>> MUST have been terminated, but obviously "opencard" does not respect this.
> If the visual effect may be compromising your very critical timing perhaps 
> you should eliminate the visual effect.
> Just go card and start timing upon opencard.

you may have missed this in my last posting:
...
As a workaround I'll leave the visual effect out, temporarily.
...
:-)

> Jim Lambert

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Jim Lambert via use-livecode
> Problem for me ist to measure the time until the user hits a key after a 
> question 
> appears on the screen on the card. 
> And I start this on "opencard", so the VISUAL effect, what the user really 
> sees,
> MUST have been terminated, but obviously "opencard" does not respect this.

If the visual effect may be compromising your very critical timing perhaps you 
should eliminate the visual effect.
Just go card and start timing upon opencard.

Jim Lambert
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Klaus major-k via use-livecode
Hi Craig,

> Am 03.05.2023 um 15:29 schrieb Craig Newman via use-livecode 
> :
> 
> Klaus.
> 
> That was fun.

WAS? :-D

> Oh yes, the point of this thread.  To me it seems that preOpenCard is sent 
> before, and openCard is sent after the effect terminates.

Obviously not, take another look at my results from the Message Watcher:
...
preopencard 7:01:46 PM (0)
opencard 7:01:46 (3)
...
Three milliseconds, not ticks, difference for a visual effect with the 
"effectrate" set to 300?
It LOOKS like 300 milliseconds, but definitively not like 3 millseconds.
That would be a tiny flashing, if at all.

So what is wrong here?
the effectrate?
the message watcher?
openCard is sent after the effect terminates? The above results show the 
opposite. 
Not?

Problem for me ist to measure the time until the user hits a key after a 
question 
appears on the screen on the card. 
And I start this on "opencard", so the VISUAL effect, what the user really sees,
MUST have been terminated, but obviously "opencard" does not respect this.
Or am I completely wrong here? Wouldn't be the first time...

As a workaround I'll leave the visual effect out, temporarily. 8-)

> The fact that you have 0 and 3 ticks

> is no different than having 0 and 125 ticks, The speed of the visual effect 
> is not pertinent.
> Well, except for the speed of the visual effect. -;)
> Note pitiful “wink” emoji above.

Nudge, nudge! :-D

> Craig

Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Craig Newman via use-livecode
Klaus.

That was fun.

Oh yes, the point of this thread.  To me it seems that preOpenCard is sent 
before, and openCard is sent after the effect terminates. The fact that you 
have 0 and 3 ticks is no different than having 0 and 125 ticks, The speed of 
the visual effect is not pertinent.

Well, except for the speed of the visual effect. -;)

Note pitiful “wink” emoji above.

Craig

> On May 3, 2023, at 8:25 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
>> 
>>> Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
>>> :
>>> 
>>> Open the message watcher and compare its report to what you see on screen. 
>>> That might help.
>> 
>> I did and see this:
>> ...
>> preopencard 7:01:46 PM (0)
>> opencard 7:01:46 (3)
>> ...
>> I may be a bit slow, but what does the three millisecs difference tell me? 
>> 8-)
>> That everyting (pre- and opencard) does in fact happen AFTER the visual 
>> effect?
> 
> any hints still welcome...
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Klaus major-k via use-livecode
Hi all,

> 
>> Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
>> :
>> 
>> Open the message watcher and compare its report to what you see on screen. 
>> That might help.
> 
> I did and see this:
> ...
> preopencard 7:01:46 PM (0)
> opencard 7:01:46 (3)
> ...
> I may be a bit slow, but what does the three millisecs difference tell me? 8-)
> That everyting (pre- and opencard) does in fact happen AFTER the visual 
> effect?

any hints still welcome...


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-03 Thread Mike Kerner via use-livecode
not on the forums.
the bigger brains are here.
less noise here
better behavior here

On Wed, May 3, 2023 at 12:27 AM J. Landman Gay via use-livecode <
use-livecode@lists.runrev.com> wrote:

> You and my husband should go have a drink together. ;)
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On May 2, 2023 5:58:07 PM Bob Sneidar via use-livecode
>  wrote:
>
> > I can attest that as an old timer, if I am not very careful, I can
> provide
> > a very wide pool. ;-)
>
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread J. Landman Gay via use-livecode

You and my husband should go have a drink together. ;)
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 2, 2023 5:58:07 PM Bob Sneidar via use-livecode 
 wrote:


I can attest that as an old timer, if I am not very careful, I can provide 
a very wide pool. ;-)





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Bob Sneidar via use-livecode
I can attest that as an old timer, if I am not very careful, I can provide a 
very wide pool. ;-)

Bob S

On May 2, 2023, at 15:52, J. Landman Gay via use-livecode 
 wrote:

Well, it works better for *you*. I want info to come to me, I don't want to 
search. My right hand doesn't like all that clicking, I have a brace for that, 
and you can't navigate the forum from the keyboard. I want the digest to appear 
in my email where I can scan quickly and immediately jump to a post when I want 
to respond.

I don't care about all the unnecessary images and almost never download stacks 
from the forum so I don't miss them here. But also, most of the old timers are 
here on the list which can provide a wider pool of expertise.
--
Jacqueline Landman Gay | 
jac...@hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread J. Landman Gay via use-livecode
Well, it works better for *you*. I want info to come to me, I don't want to 
search. My right hand doesn't like all that clicking, I have a brace for 
that, and you can't navigate the forum from the keyboard. I want the digest 
to appear in my email where I can scan quickly and immediately jump to a 
post when I want to respond.


I don't care about all the unnecessary images and almost never download 
stacks from the forum so I don't miss them here. But also, most of the old 
timers are here on the list which can provide a wider pool of expertise.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 2, 2023 4:03:10 PM Craig Newman via use-livecode 
 wrote:



Klaus.

It is a works-much-better thing. Script samples and quotes can be separated 
from the main body of text. One can attach stacks and, for Richmond at 
least, silly photos and art layouts. One can edit past posts, or even 
delete them.


One can search threads in many ways.  MANY.

I was going to attach an emoji, but, well, we are in the use-list.

Otherwise, nothing significant.

Craig

On May 2, 2023, at 1:28 PM, Klaus major-k via use-livecode 
 wrote:


Hi Craig,

Am 02.05.2023 um 19:17 schrieb Craig Newman via use-livecode 
:


Klaus.

Come back from the dark side.


I have no idea why you are so possessed by the forum, is it a fetish thing? :-D

Here on the list I already see more than 10 postings to my question, try to 
outgun

this with the forum. 8-)

If you do I will send you the stack I made that seems to indicate that 
“openCard” is sent after the visual effect terminates.


Thank you, but I do not need any other example stack, I want to know it 
with my stack and I also want to know
why there are differences between the two ways of going to the next card 
with a visual effect. See my last mails...



Craig
On May 2, 2023, at 1:08 PM, Klaus major-k via use-livecode 
 wrote:

Hi Jacque,
Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
:
Open the message watcher and compare its report to what you see on screen. 
That might help.

I did and see this:
...
preopencard 7:01:46 PM (0)
opencard 7:01:46 (3)
...
I may be a bit slow, but what does the three millisecs difference tell me? 8-)
That everyting (pre- and opencard) does in fact happen AFTER the visual effect?


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Craig Newman via use-livecode
Klaus.

It is a works-much-better thing. Script samples and quotes can be separated 
from the main body of text. One can attach stacks and, for Richmond at least, 
silly photos and art layouts. One can edit past posts, or even delete them.

One can search threads in many ways.  MANY.

I was going to attach an emoji, but, well, we are in the use-list.

Otherwise, nothing significant.

Craig

> On May 2, 2023, at 1:28 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 02.05.2023 um 19:17 schrieb Craig Newman via use-livecode 
>> :
>> 
>> Klaus.
>> 
>> Come back from the dark side.
> 
> I have no idea why you are so possessed by the forum, is it a fetish thing? 
> :-D
> 
> Here on the list I already see more than 10 postings to my question, try to 
> outgun
> this with the forum. 8-)
> 
>> If you do I will send you the stack I made that seems to indicate that 
>> “openCard” is sent after the visual effect terminates.
> 
> Thank you, but I do not need any other example stack, I want to know it with 
> my stack and I also want to know 
> why there are differences between the two ways of going to the next card with 
> a visual effect. See my last mails...
> 
>> Craig
>>> On May 2, 2023, at 1:08 PM, Klaus major-k via use-livecode 
>>>  wrote:
>>> Hi Jacque,
 Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
 :
 Open the message watcher and compare its report to what you see on screen. 
 That might help.
>>> I did and see this:
>>> ...
>>> preopencard 7:01:46 PM (0)
>>> opencard 7:01:46 (3)
>>> ...
>>> I may be a bit slow, but what does the three millisecs difference tell me? 
>>> 8-)
>>> That everyting (pre- and opencard) does in fact happen AFTER the visual 
>>> effect?
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Hi Craig,

> Am 02.05.2023 um 19:17 schrieb Craig Newman via use-livecode 
> :
> 
> Klaus.
> 
> Come back from the dark side.

I have no idea why you are so possessed by the forum, is it a fetish thing? :-D

Here on the list I already see more than 10 postings to my question, try to 
outgun
this with the forum. 8-)

> If you do I will send you the stack I made that seems to indicate that 
> “openCard” is sent after the visual effect terminates.

Thank you, but I do not need any other example stack, I want to know it with my 
stack and I also want to know 
why there are differences between the two ways of going to the next card with a 
visual effect. See my last mails...

> Craig
>> On May 2, 2023, at 1:08 PM, Klaus major-k via use-livecode 
>>  wrote:
>> Hi Jacque,
>>> Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
>>> :
>>> Open the message watcher and compare its report to what you see on screen. 
>>> That might help.
>> I did and see this:
>> ...
>> preopencard 7:01:46 PM (0)
>> opencard 7:01:46 (3)
>> ...
>> I may be a bit slow, but what does the three millisecs difference tell me? 
>> 8-)
>> That everyting (pre- and opencard) does in fact happen AFTER the visual 
>> effect?

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Craig Newman via use-livecode
Jacque.

Go to the forum. I did just that, and the “openCard” message appears in the 
message watcher exactly after the visual effect finishes.

Craig

> On May 2, 2023, at 1:08 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Jacque,
> 
>> Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
>> :
>> 
>> Open the message watcher and compare its report to what you see on screen. 
>> That might help.
> 
> I did and see this:
> ...
> preopencard 7:01:46 PM (0)
> opencard 7:01:46 (3)
> ...
> I may be a bit slow, but what does the three millisecs difference tell me? 8-)
> That everyting (pre- and opencard) does in fact happen AFTER the visual 
> effect?
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Craig Newman via use-livecode
Klaus.

Come back from the dark side. If you do I will send you the stack I made that 
seems to indicate that “openCard” is sent after the visual effect terminates.

Craig

> On May 2, 2023, at 1:08 PM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Jacque,
> 
>> Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
>> :
>> 
>> Open the message watcher and compare its report to what you see on screen. 
>> That might help.
> 
> I did and see this:
> ...
> preopencard 7:01:46 PM (0)
> opencard 7:01:46 (3)
> ...
> I may be a bit slow, but what does the three millisecs difference tell me? 8-)
> That everyting (pre- and opencard) does in fact happen AFTER the visual 
> effect?
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Hi Jacque,

> Am 02.05.2023 um 18:59 schrieb J. Landman Gay via use-livecode 
> :
> 
> Open the message watcher and compare its report to what you see on screen. 
> That might help.

I did and see this:
...
preopencard 7:01:46 PM (0)
opencard 7:01:46 (3)
...
I may be a bit slow, but what does the three millisecs difference tell me? 8-)
That everyting (pre- and opencard) does in fact happen AFTER the visual effect?


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread J. Landman Gay via use-livecode
Open the message watcher and compare its report to what you see on screen. 
That might help.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 2, 2023 11:19:41 AM Klaus major-k via use-livecode 
 wrote:


Someone knowing please chime in! :-)





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Craig,

> Am 02.05.2023 um 18:16 schrieb Craig Newman via use-livecode 
> :
> 
> Klaus.
> 
> Why aren’t you doing this in the forum???

this is a free country, I can do it whereever I like! :-D

> I made a stack with two cards. Card 1 has a button on it:
> 
> global tTime
> 
> on mouseUp
> put the ticks into tTime
> visual effect "checkerBoard" slow
> go cd 2
> end mouseUp
> 
> In the card 2 script:
> global tTime
> on openCard
> put the ticks - tTime into fld 2
> end openCard
> 
> I get about 60 ticks, so it seems the message is sent AFTER the visual effect 
> completes. Know that with “preOpenCard” I get 0 ticks; the message is sent 
> before the visual effect.
> 
> Craig

See my last mail, which is even more irritating...


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Hi all,

> Am 02.05.2023 um 18:07 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi Håkan
> 
>> Am 02.05.2023 um 17:56 schrieb Håkan Liljegren via use-livecode 
>> :
>> 
>> AFTER!
>> 
>> Create two cards
>> Add a button or something on the first card with the code
>> on mouseUp
>>  visual effect dissolve slow
>>  go to next card
>> end mouseUp
>> 
>> On the second card add a control and the hide it and add the script to the 
>> card:
>> on opencard
>>  show control 1
>> end opencard
>> 
>> You will then clearly see that the first card dissolves slowly and when the 
>> transition is done the control appears (no cross-dissolve) 
>> The preOpenCard is run before and the openCard is run after.
> 
> hm, not sure, I made a test here by myself.
> 
> Button to go to next cd with a visual effect:
> ...
> put the millisecs
> ## go_next is in the stack script and goes to the next card:
> ## lock screen for visual effect
> ## set the effectrate to 300
> ## go next cd
> ## unlock screen with visual wipe left very slow
> go_next
> ...
> Then on the "next" cd I scripted:
> ---
> on opencard
>  put the millisecs into tMillisecs
>  put CR & tMillisecs after msg
> end opencard
> ---
> And I ended with this in the msg:
> 1683043067873
> 1683043067877
> 
> Only 4 millisecs difference, but with the set effectrate the difference 
> should be at least 300!?
> So I guess "opencard" is already sent BEFORE the visual effect, at least 
> according to the above data, right?
> 
> Molto mysterioso... :-)
> 
> Someone knows exactly?

obviously there is a big difference by using:

lock screen for visual effect
go next
unlock screen...

And:

 visual effect ...
 go to next card

Using the latter I get this in the msg:
1683043997883
1683043998101

Not the full 300 millisecs difference as exspected by the effectrate, but more 
than in my first test.

Someone knowing please chime in! :-)


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: opencard and visual effect

2023-05-02 Thread Ralph DiMola via use-livecode
The rendering get done after preOpenCard completes. In preOpenCard you can set 
up your data and geometry before the card is displayed. Try timing from the 
start of preOpenCard to start the openCard handlers.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Klaus major-k via use-livecode
Sent: Tuesday, May 02, 2023 12:08 PM
To: How to use LiveCode
Cc: Klaus major-k
Subject: Re: opencard and visual effect

Hi Håkan

> Am 02.05.2023 um 17:56 schrieb Håkan Liljegren via use-livecode 
> :
> 
> AFTER!
> 
> Create two cards
> Add a button or something on the first card with the code on mouseUp
>   visual effect dissolve slow
>   go to next card
> end mouseUp
> 
> On the second card add a control and the hide it and add the script to the 
> card:
> on opencard
>   show control 1
> end opencard
> 
> You will then clearly see that the first card dissolves slowly and 
> when the transition is done the control appears (no cross-dissolve) The 
> preOpenCard is run before and the openCard is run after.

hm, not sure, I made a test here by myself.

Button to go to next cd with a visual effect:
...
put the millisecs
## go_next is in the stack script and goes to the next card:
## lock screen for visual effect
## set the effectrate to 300
## go next cd
## unlock screen with visual wipe left very slow go_next ...
Then on the "next" cd I scripted:
---
on opencard
  put the millisecs into tMillisecs
  put CR & tMillisecs after msg
end opencard
---
And I ended with this in the msg:
1683043067873
1683043067877

Only 4 millisecs difference, but with the set effectrate the difference should 
be at least 300!?
So I guess "opencard" is already sent BEFORE the visual effect, at least 
according to the above data, right?

Molto mysterioso... :-)

Someone knows exactly?

> :-Håkan
> 
>> On 2 May 2023, at 15:06, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi friends,
>> 
>> quick question:
>> Will "opencard" be sent to a card AFTER the card was navigated to 
>> with a visual effect or already during the effect?
>> I cannot tell actually in my stack.

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Craig Newman via use-livecode
Klaus.

Why aren’t you doing this in the forum???

I made a stack with two cards. Card 1 has a button on it:

global tTime

on mouseUp

put the ticks into tTime

visual effect "checkerBoard" slow

go cd 2

end mouseUp



In the card 2 script:

global tTime

on openCard

put the ticks - tTime into fld 2

end openCard



I get about 60 ticks, so it seems the message is sent AFTER the visual effect 
completes. Know that with “preOpenCard” I get 0 ticks; the message is sent 
before the visual effect.

Craig


> On May 2, 2023, at 10:21 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Craig,
> 
>> Am 02.05.2023 um 16:05 schrieb Craig Newman via use-livecode 
>> :
>> 
>> Klaus.
>> 
>> I would guess that as soon as the card was navigated to, that is, before any 
>> visual effect starts or finishes.
>> Not sure how to test this since I am not sure what messages or properties 
>> might be set before, during or after a visual effect runs.
>> 
>> Craig
> 
> thank you, but I need certainty! :-)
> 
> My scenario:
> ...
> lock screen for visual effect
> set the effectrate to 300
> go next cd
> unlock screen with visual wipe left very slow
> ...
> 
> and on the "next card"  I need to measure the time until the 
> user hits a certain key (1 or 2) on the keyboard like this:
> -
> ## Script of the "next" card:
> local tMillisecs
> 
> on opencard
>   put the millisecs into tMillisecs
> end opencard
> 
> on keydown tKey
> if tKey = 1 OR tKey = 2 then
>   put the millisecs - tMillisecs into tDuration
> ...
> 
> You get the picture, so I need to measure this precisely!
> 
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Hi Håkan

> Am 02.05.2023 um 17:56 schrieb Håkan Liljegren via use-livecode 
> :
> 
> AFTER!
> 
> Create two cards
> Add a button or something on the first card with the code
> on mouseUp
>   visual effect dissolve slow
>   go to next card
> end mouseUp
> 
> On the second card add a control and the hide it and add the script to the 
> card:
> on opencard
>   show control 1
> end opencard
> 
> You will then clearly see that the first card dissolves slowly and when the 
> transition is done the control appears (no cross-dissolve) 
> The preOpenCard is run before and the openCard is run after.

hm, not sure, I made a test here by myself.

Button to go to next cd with a visual effect:
...
put the millisecs
## go_next is in the stack script and goes to the next card:
## lock screen for visual effect
## set the effectrate to 300
## go next cd
## unlock screen with visual wipe left very slow
go_next
...
Then on the "next" cd I scripted:
---
on opencard
  put the millisecs into tMillisecs
  put CR & tMillisecs after msg
end opencard
---
And I ended with this in the msg:
1683043067873
1683043067877

Only 4 millisecs difference, but with the set effectrate the difference should 
be at least 300!?
So I guess "opencard" is already sent BEFORE the visual effect, at least 
according to the above data, right?

Molto mysterioso... :-)

Someone knows exactly?

> :-Håkan
> 
>> On 2 May 2023, at 15:06, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi friends,
>> 
>> quick question:
>> Will "opencard" be sent to a card AFTER the card was navigated to
>> with a visual effect or already during the effect?
>> I cannot tell actually in my stack.

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Håkan Liljegren via use-livecode
AFTER!

Create two cards
Add a button or something on the first card with the code
on mouseUp
   visual effect dissolve slow
   go to next card
end mouseUp

On the second card add a control and the hide it and add the script to the card:
on opencard
   show control 1
end opencard

You will then clearly see that the first card dissolves slowly and when the 
transition is done the control appears (no cross-dissolve) 

The preOpenCard is run before and the openCard is run after.

:-Håkan

> On 2 May 2023, at 15:06, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> quick question:
> Will "opencard" be sent to a card AFTER the card was navigated to
> with a visual effect or already during the effect?
> 
> I cannot tell actually in my stack.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Hi Craig,

> Am 02.05.2023 um 16:05 schrieb Craig Newman via use-livecode 
> :
> 
> Klaus.
> 
> I would guess that as soon as the card was navigated to, that is, before any 
> visual effect starts or finishes.
> Not sure how to test this since I am not sure what messages or properties 
> might be set before, during or after a visual effect runs.
> 
> Craig

thank you, but I need certainty! :-)

My scenario:
...
lock screen for visual effect
set the effectrate to 300
go next cd
unlock screen with visual wipe left very slow
...

and on the "next card"  I need to measure the time until the 
user hits a certain key (1 or 2) on the keyboard like this:
-
## Script of the "next" card:
local tMillisecs

on opencard
   put the millisecs into tMillisecs
end opencard

on keydown tKey
if tKey = 1 OR tKey = 2 then
   put the millisecs - tMillisecs into tDuration
...

You get the picture, so I need to measure this precisely!



Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: opencard and visual effect

2023-05-02 Thread Craig Newman via use-livecode
Klaus.

I would guess that as soon as the card was navigated to, that is, before any 
visual effect starts or finishes.

Not sure how to test this since I am not sure what messages or properties might 
be set before, during or after a visual effect runs.

Craig

> On May 2, 2023, at 9:06 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> quick question:
> Will "opencard" be sent to a card AFTER the card was navigated to
> with a visual effect or already during the effect?
> 
> I cannot tell actually in my stack.
> 
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


opencard and visual effect

2023-05-02 Thread Klaus major-k via use-livecode
Hi friends,

quick question:
Will "opencard" be sent to a card AFTER the card was navigated to
with a visual effect or already during the effect?

I cannot tell actually in my stack.


Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode