Re: on controlkeydown very slow

2008-09-23 Thread william humphrey
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.

Re: on controlkeydown very slow

2008-09-22 Thread Stephen Barncard
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

on controlkeydown very slow

2008-09-22 Thread william humphrey
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" > >

controlkeydown

2002-02-21 Thread Pierre Delain
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

Re: controlkeydown

2002-02-20 Thread Rob Cozens
>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

Re: controlkeydown

2002-02-20 Thread Sarah Reichelt
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

Re: controlkeydown

2002-02-20 Thread Scott Rossi
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

controlkeydown

2002-02-20 Thread Pierre Delain
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

Re: controlkeydown

2002-02-20 Thread Rob Cozens
>>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! > >

Re: controlkeydown

2002-02-20 Thread Rob Cozens
>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

Re: controlkeydown

2002-02-20 Thread David Vaughan
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,

controlkeydown

2002-02-20 Thread Pierre Delain
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