Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread [-hh]
A few words in defense of the LC dev team: We have the first stable release, a dot-dot-release ... And I couldn't even find in 5 minutes an arrowkey on one of the available mobiles around! Not sent from an iPhone. -- View this message in context: http://runtime-revolution.278305.n4.nabble.com

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
I assume (???) a lot of these "oversights" are the result of the 'fact' (?) that the Livecode people have gone back to square one and virtually recreated Livecode /ad novum/ rather than adding incrementally on top of Livecode 7. I don't know whether this is true. But it seems the 'kindest' exp

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Scott Rossi
The arrowKey code has nothing to do with a change in language -- the lack of arrowKey functionality in the IDE is just an oversight on the part of LiveCode Ltd. (at least, I hope it is). Regards, Scott Rossi Creative Director Tactile Media, UX/UI Design On 5/7/16, 12:24 PM, "use-livecode on b

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Mike Bonner
I didn't file it, just went looking for one and there it was. On Sat, May 7, 2016 at 1:39 PM, RM wrote: > Glad you filed that bug report, as arrowKeys not being sent to a card would > be a real B*mmer. Thanks. > > Richmond. > > On 7.05.2016 22:30, Mike Bonner wrote: > >> If there isn't a focused

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
Glad you filed that bug report, as arrowKeys not being sent to a card would be a real B*mmer. Thanks. Richmond. On 7.05.2016 22:30, Mike Bonner wrote: If there isn't a focused object, arrowkey is supposed to be sent to the card. This isn't happening in 8. If you place an additional object (lik

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Mike Bonner
If there isn't a focused object, arrowkey is supposed to be sent to the card. This isn't happening in 8. If you place an additional object (like a scrolling list field) onto the card and click it so that it has focus, and then hit the arrow keys, your object to move will behave as you expect. arr

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
I am beginning to wonder exactly HOW MUCH of the language has been changed, and what justifies such change. Richmond. On 7.05.2016 21:56, Scott Rossi wrote: If you want to recreate the behavior of previous versions of LC, you can do something like this: on arrowKey theKey if the selObj is

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread Scott Rossi
If you want to recreate the behavior of previous versions of LC, you can do something like this: on arrowKey theKey if the selObj is empty then pass arrowKey put loc of the selObj into theLoc put 1 into D if the shiftkey is down then multiply D by 10 switch theKey case "left"

Re: ArrowKey Handler in LiveCode 8?

2016-05-07 Thread RM
NBG: Stack here: http://forums.livecode.com/viewtopic.php?f=6&t=27225 on arrowKey AWK switch AWK case "left" put item 1 of the loc of img "eight" into IT1 put item 2 of the loc of img "eight" into IT2 put (IT1 - 10) into IT1 move img "eight" to IT1, I

Re: arrowKey 'up' and 'down'

2016-04-24 Thread Mike Bonner
Heres my take on it. Moved most of the code to the graphic. Game loops work so much better for this type of thing because you avoid the "arrowkey" repeat problem entirely. All it does is loop, look at what keys are down, and acts appropriately. Changed the move distance to 5, and increment a coun

Re: arrowKey 'up' and 'down'

2016-04-24 Thread Mike Bonner
OOps, heres the link. https://dl.dropboxusercontent.com/u/11957935/ANIMATION%209.5.livecode On Sun, Apr 24, 2016 at 8:41 AM, Mike Bonner wrote: > Heres my take on it. Moved most of the code to the graphic. Game loops > work so much better for this type of thing because you avoid the "arrowkey"

Re: arrowKey 'up' and 'down'

2016-04-24 Thread RM
Of course my next problem is how, when a punter presses the arrowKey to have it "fire" only once: i.e. then chummy keeps his/her finger on the key it doesn't continue sending arrowKey signals after the first one. Richmond. ___ use-livecode mailing list

Re: arrowKey 'up' and 'down'

2016-04-24 Thread RM
"pass arrowKey" sorted things out rather well: thanks a lot! https://www.dropbox.com/s/5ym1zrzebsfrbyy/ANIMATION%209.5.livecode.zip?dl=0 Richmond. On 24.04.2016 08:44, Peter Bogdanoff wrote: Also, you might include “pass arrowKey” at the end of the script Peter On Apr 23, 2016, at 12:49 PM,

Re: arrowKey 'up' and 'down'

2016-04-23 Thread Peter Bogdanoff
Also, you might include “pass arrowKey” at the end of the script Peter On Apr 23, 2016, at 12:49 PM, RM wrote: > Thanks for those recommendations; will try them tomorrow as it is almost my > bedtime > over here in Bulgaria. > > Richmond. > > On 23.04.2016 22:31, J. Landman Gay wrote: >> On 4

Re: arrowKey 'up' and 'down'

2016-04-23 Thread RM
Thanks for those recommendations; will try them tomorrow as it is almost my bedtime over here in Bulgaria. Richmond. On 23.04.2016 22:31, J. Landman Gay wrote: On 4/23/2016 1:00 PM, RM wrote: (pseudocode) on arrowKey ArKey if ArKey = "right" then move object in some way this line defin

Re: arrowKey 'up' and 'down'

2016-04-23 Thread J. Landman Gay
On 4/23/2016 1:00 PM, RM wrote: (pseudocode) on arrowKey ArKey if ArKey = "right" then move object in some way this line defines send signal to object to initiate animation script within object end if end arrowKey when I hit my right arrow key ONCE the object moves and then animates

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
Nope, it's mine. I hope at least it got to you *after* it went through my wash cycle If not, I apologize. I'm definitely putting in an enhancement request to the QC to extend the find command to socks. I bet Scott Raney anticipated the need and built it into an obscure corner of the engine s

Re: arrowKey

2011-12-20 Thread J. Landman Gay
On 12/20/11 10:07 AM, Bob Sneidar wrote: Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. I found it in my sock drawer. I thought it was yours. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://w

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
Is there some reason not to do it this way?: on arrowkey which put the loc of button "square" into tRect switch which case "left" subtract 1 from item 1 of tRect break case "right" add 1 to item 1 of tRect break case "up" subtrac

Re: arrowKey

2011-12-20 Thread Bob Sneidar
Jacque was wearing it yesterday, along with a white kneehigh with blue and red stripes. Bob On Dec 20, 2011, at 6:31 AM, Peter M. Brigham, MD wrote: > Yeah, me too -- as one of my patients once said to me, "I have a mind like a > steel sieve." I save lots of tips from this list in a stack I'

Re: arrowKey

2011-12-20 Thread paolo mazza
Thank you Bob. Thank you Mike.. Here it is my code to move a button using the arrow keys. local tSTARTCONTROL on StartControl put "true" into tSTARTCONTROL ControlKeys end StartControl on StopControl put "false" into tSTARTCONTROL end StopControl on ControlKeys if keysDown() is "653

Re: arrowKey

2011-12-20 Thread Mike Bonner
I gave up on socks years ago. They're not worth the temporal disturbance. On Tue, Dec 20, 2011 at 7:31 AM, Peter M. Brigham, MD wrote: > On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: > > > I saw the other input for this problem, I'm thinking that checking > > "keysdown()" for the arrow keycodes

Re: arrowKey

2011-12-20 Thread Peter M. Brigham, MD
On Dec 20, 2011, at 7:04 AM, Mike Bonner wrote: > I saw the other input for this problem, I'm thinking that checking > "keysdown()" for the arrow keycodes would be a more reliable solution > depending on your needs. > > I swear I keep learning new things on this list and in the forums. Luckily >

Re: arrowKey

2011-12-20 Thread Mike Bonner
I saw the other input for this problem, I'm thinking that checking "keysdown()" for the arrow keycodes would be a more reliable solution depending on your needs. I swear I keep learning new things on this list and in the forums. Luckily I have a horrible memory so I get the bonus of relearning the

Re: arrowKey

2011-12-20 Thread paolo mazza
Thank you Mike, I was able to use your script. I realize that getting the arrows key is not as trivial as "get the mouse" or "get the optionKey". However your script works fine. Thanks a lot Paolo On Mon, Dec 19, 2011 at 5:28 PM, Mike Bonner wrote: > I'm sure this doesn't cover every possibility

Re: arrowKey

2011-12-19 Thread Bob Sneidar
On Dec 19, 2011, at 6:51 AM, paolo mazza wrote: > Hi All, > how can I check if the "arrowKey up" is down or is up ? > > For example, for the option Key I can write .. if the optioKey is down > then..., for the mouse I can write ... if the mouse is down then ... > > What about the arrow keys ?

Re: arrowKey

2011-12-19 Thread Mike Bonner
I'm sure this doesn't cover every possibility but will something like the following work? -- in the card I put on arrowKey pKey set the cKeyDown of this stack to pKey pass arrowKey end arrowKey on rawKeyUp pKey if pKey is among the items of "65361,65362,65363,65364" then if the cKe