arrowkey bug?

Robert Brenstein rjb at rz.uni-potsdam.de
Fri Dec 3 13:30:33 EST 2004


>>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? Duplicate buttons? Messages passed 
on?

Have you tried using message watcher?

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?


More information about the use-livecode mailing list