arrowkey bug?

Klaus Major klaus at major-k.de
Fri Dec 3 14:00:59 EST 2004


Hi Robert,

>>> Any chance you could post the actual code?
>>
>> :-)
>>
>> on arrowkey was
>>   put was
>>  ## resulted in the correct arrowkey, and ONLY ONE
>>  switch was
>>   case "up"
>>     put "erste" into derbutton
>>     break
>>   case "right"
>>     put "naechste" into derbutton
>>     break
>>   case "down"
>>     put "letzte" into derbutton
>>     break
>>   case "left"
>>     put "vorige" into derbutton
>>     break
>>  end switch
>>  send "mouseup" to btn derbutton of cd 1 of stack (the navistack of 
>> me)
>> end arrowkey
>>
>> This script work with key "left" and "right" as exspected...
>>
>> With "up" the "left" with "down" the "right" is also executed 
>> immediately...
>
> I somehow doubt that the problem is with the above script. Have you 
> checked the destination buttons?

Yes.

> Duplicate buttons?

No.

> Messages passed on?

??? Sorry, don't get this one...

You mean that "mouseup" might not make it to the buttons at all?
See below -> "rawkeydown"

> Have you tried using message watcher?

Not yet.

> Robert
>
> PS Not that this has any relation to your problem but have you thought 
> to reduce the above script to
>
> on arrowkey was
>  send "mouseup" to btn ("der" & was) of cd 1 of stack (the navistack 
> of me)
> end arrowkey
>
> by renaming your four buttons?

No.

But sinde i have a working solution with "rawkeydown" i do not want to 
spend more time on this
phenomenon, understandably ;-)


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list