Re: script interruption (suite)

2010-11-17 Thread Ian McKnight
How about sending another send in time message to change the global after 5 seconds? I haven't tried itand there may be a more efficient way to code this but I think it should work. The only thing is you will have quite a number of unneeded calls of the secondTimer. To overcome this you need to

Re: script interruption (suite)

2010-11-17 Thread Yves COPPE
Le 17 nov. 2010 à 19:45, Ian McKnight a écrit : How about sending another send in time message to change the global after 5 seconds? I haven't tried itand there may be a more efficient way to code this but I think it should work. The only thing is you will have quite a number of unneeded

Re: script interruption (suite)

2010-11-17 Thread Ian McKnight
Hi Yves Try moving the lines send secondTimer to me in 5 Sec -- record the message ID put the resultcr after myPendingMessages out of the handler altogether, placing it immediately before the place where the main call to toggleexercice is made. This should mean that a timer is started as soon

Re: script interruption (suite)

2010-11-17 Thread Yves COPPE
Le 17 nov. 2010 à 21:26, Ian McKnight a écrit : Hi Yves Try moving the lines send secondTimer to me in 5 Sec -- record the message ID put the resultcr after myPendingMessages out of the handler altogether, placing it immediately before the place where the main call to toggleexercice

Re: script interruption (suite)

2010-11-17 Thread Yves COPPE
Le 17 nov. 2010 à 21:26, Ian McKnight a écrit : Hi Yves Hi Ian, I have noticed that command secondTimer global gEndFlag if gFlagEnd is false then put True into gFlagEnd end secondTimer this command is well activated after 5 secs but the fld doesn't disappear something misses !

Re: script interruption (suite)

2010-11-17 Thread Yves COPPE
Le 17 nov. 2010 à 21:26, Ian McKnight a écrit : Hi Yves Try moving the lines send secondTimer to me in 5 Sec -- record the message ID put the resultcr after myPendingMessages out of the handler altogether, placing it immediately before the place where the main call to toggleexercice

Re: script interruption (suite)

2010-11-17 Thread Ian McKnight
Glad to be of help. On 17 November 2010 21:25, Yves COPPE yvesco...@skynet.be wrote: Le 17 nov. 2010 à 21:26, Ian McKnight a écrit : Hi Yves Try moving the lines send secondTimer to me in 5 Sec -- record the message ID put the resultcr after myPendingMessages out of the

Re: script interruption

2010-11-16 Thread David Bovill
Hi Yves, You could use if the mouse is Down inside the repeat loop - which works pretty well. Or if you need more control, and the field is locked, you can trap a mouse event say mouseUp and set a flag that the repeat loop checks? On 16 November 2010 20:43, Yves COPPE yvesco...@skynet.be

Re: script interruption

2010-11-16 Thread Ian McKnight
Hi Yves I did the following which I think gives you the behaviour you want: Create a stack with a scrolling field and a button. Lock the text of the field so that it can respond to mouse clicks. Put this in the script of the field (called Display) global gEndFlag on mouseup put true into

Re: script interruption

2010-11-16 Thread Yves COPPE
Le 16 nov. 2010 à 22:25, Ian McKnight a écrit : Hi Yves I did the following which I think gives you the behaviour you want: Create a stack with a scrolling field and a button. Lock the text of the field so that it can respond to mouse clicks. Put this in the script of the field