I hadn't even realized that calling "answer" was what was slow. That
explains it. I've noticed that in other things now too. Thanks for pointing
it out.
I'm building an app that has all the common task done with "control this or
control that" so that your fingers don't need to leave the key board.
areas and given by the 'whos who' of
the Rev world and hosted by Jacqueline Landman Gay. There's a great
stack about MENUS there by Jeanne DeVoto.
http://support.runrev.com/scriptingconferences/
I'm doing the following and it is slow (takes a noticeable second or two)
*on
I'm doing the following and it is slow (takes a noticeable second or two)
> *on* controlKeyDown pKey
>
>*switch* pKey
>
> *case* "s"
>
> answer "s was selected"
>
> *break*
>
> *case* "c"
>
>
Finally I found two efficient structures :
on controlKeyDown LaClef
if LaClef = "T" then
MuThemes
else if LaClef = "F" then
beep
else if LaClef = "Y" then
beep
beep
else
pass controlkeydown
end if
end controlKeyDown
and :
on controlKeyDown LaClef
switc
>The following works for me:
>
>on controlKeyDown K
>if K = "T" then doMyTstuff
>if K = "F" then doMyFstuff
>end controlKeyDown
One note, Scott:
Unless your handler passes controlKeyDown for those values of K for which
it has no instructions, it e
As I understand it, when you use
on controlKeyDown T
you are using T as a variable name which will contain whatever key you have
actually pressed. You then need to check the value of your variable and see
it it matches any of the keys you want to respond to.
e.g.
on controlKeyDown pKey
On Wednesday, February 20, 2002, at 04:30 PM, Pierre Delain wrote:
> Sorry but when I use controlkeydown T (without the quotes, as you
> say), I
> get a result, but the result is the same whatever the key. I if press
> ctrl F
> or ctrl G, for example, the result is exactly the
Sorry but when I use controlkeydown T (without the quotes, as you say), I
get a result, but the result is the same whatever the key. I if press ctrl F
or ctrl G, for example, the result is exactly the same as ctrl T!!
So the question remains : how to use controlkeydown to get a different
result
>>I try to use the following handler to create a shortcut with the "T" :
>>
>>on controlkeydown "T"
>> DoSomeThing
>>end controlkeydown
>>
>>There is no reaction. What is wrong in my handler?
Moi:>
>Salut Pierre!
>
>
>I try to use the following handler to create a shortcut with the "T" :
>
>on controlkeydown "T"
> DoSomeThing
>end controlkeydown
>
>There is no reaction. What is wrong in my handler?
Salut Pierre!
Try this:
on controlKeyDown zaKey
Pierre
Get rid of the quotes, thus:
on controlKeyDown T
DoSomething
end controlKeyDown
I know the Transcript Dictionary for controlKeyDown shows "keyname" but
I got the clue from commandKeyDown where it just says keyname, without
the quotes. Probably one for Jeanne's list,
I try to use the following handler to create a shortcut with the "T" :
on controlkeydown "T"
DoSomeThing
end controlkeydown
There is no reaction. What is wrong in my handler?
Thanks
Pïerre
___
use-revolution mailing list
[E
12 matches
Mail list logo