Flipping graphic with a Key

James Hurley jhurley0305 at sbcglobal.net
Thu Oct 14 00:10:20 EDT 2010


>
> Message: 29
> Date: Wed, 13 Oct 2010 23:33:06 +0200
> From: Michael Kristensen <michael-kristensen at dsa-net.dk>
> Subject: Re: Flipping graphic with a Key
> To: use-revolution at lists.runrev.com
> Message-ID: <AB1F63A3-A590-4343-B014-0E2AF700703C at dsa-net.dk>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi
>
> Thanks for the reply's
>
> I m sorry to report that neither
>
>  flushEvents("autoKey")
>  flushEvents("all")
>
> or
>
> Jacquelines script:
>
> on keydown pkey
>   if pkey = "f" then
>     doTheFlipping
>     send "checkKey" to me in 0
>   else
>     pass keydown
>   end if
> end keydown
>
> command checkKey
>   if "102" is in keysdown() then -- 102 is the keycode for "f"
>     send "checkKey" to me in 250 milliseconds -- adjust timing here
>   else
>     doTheFlipping
>   end if
> end checkKey
>
>
> .......did have any effect on stopping the repeated keyDown.
>
>
> Mic

How about:

    put the pendingmessages into tPendingMsgs
    repeat for each line tLine in tPendingMsgs
       cancel item 1 of tLine
    end repeat

Jim Hurley






More information about the Use-livecode mailing list