Re: SHIFTy thoughts

2010-10-11 Thread J. Landman Gay
On 10/11/10 1:56 PM, Richmond wrote: Thank you all for your suggestions, although they all seem rather abstruse for simply toggling the visibility of an image. At present I am toggling with F-12 (which puts some people's noses out of joint, hence proposal to use SHIFT): By default, OS X usurps

Re: SHIFTy thoughts

2010-10-11 Thread Colin Holgate
On Oct 11, 2010, at 2:56 PM, Richmond wrote: > as you can see; fairly pedestrian stuff, which is why I get all > moist and sweaty when I think about the Shift key. Could you use the space bar? If you can't because people are entering words in a field, then shift would be a problem too for anyo

Re: SHIFTy thoughts

2010-10-11 Thread Richmond
Thank you all for your suggestions, although they all seem rather abstruse for simply toggling the visibility of an image. At present I am toggling with F-12 (which puts some people's noses out of joint, hence proposal to use SHIFT): on rawKeyDown ---socking great, mind-bogglingly tedious swit

Re: SHIFTy thoughts

2010-10-11 Thread Scott Rossi
Recently, Colin Holgate wrote: >> Sorry, I'm not following -- the shift state is constantly polled/stored, so >> why does the script need to care about the state at all? >> > He wants to have an action happen when the user presses the shift key. Your > variable knows whether the shift is down, bu

Re: SHIFTy thoughts

2010-10-11 Thread Colin Holgate
On Oct 11, 2010, at 2:03 PM, Scott Rossi wrote: > Sorry, I'm not following -- the shift state is constantly polled/stored, so > why does the script need to care about the state at all? > He wants to have an action happen when the user presses the shift key. Your variable knows whether the shi

Re: SHIFTy thoughts

2010-10-11 Thread Scott Rossi
Recently, Colin Holgate wrote: >> Or maybe this: > > > Your two approaches are basically the same idea as mine, only in yours there > is still no way for the rest of the script to know that the shift was pressed. > You might also need an idle check, or another send, to then inspect the state > o

Re: SHIFTy thoughts

2010-10-11 Thread Colin Holgate
On Oct 11, 2010, at 1:43 PM, Scott Rossi wrote: > Or maybe this: Your two approaches are basically the same idea as mine, only in yours there is still no way for the rest of the script to know that the shift was pressed. You might also need an idle check, or another send, to then inspect the

Re: SHIFTy thoughts

2010-10-11 Thread Scott Rossi
Or maybe this: on openCard if "trackKeys" is not in pendingMessages() then trackKeys end openCard on trackKeys set the shiftKeyPressed of me to (shiftKey() = down) send "trackKeys" to me in 50 millisecs end trackKeys Recently, I wrote: > Here's one way to do what you ask: > > [in th

Re: SHIFTy thoughts

2010-10-11 Thread Scott Rossi
Here's one way to do what you ask: [in the card script] on openCard if "trackKeys" is not in pendingMessages() then trackKeys end openCard on trackKeys set the shiftKeyPressed of me to (65505 is among the lines of keysDown()) send "trackKeys" to me in 50 millisecs end trackKeys This sc

Re: SHIFTy thoughts

2010-10-11 Thread Colin Holgate
This part: if the shiftkey and not shiftisdown then UserReleasedShiftKey end if should have been: if not the shiftkey and shiftisdown then UserReleasedShiftKey end if ___ use-revolution mailing list use-revolution@lists

Re: SHIFTy thoughts

2010-10-11 Thread Colin Holgate
On Oct 11, 2010, at 12:49 PM, Richmond wrote: > what I cannot work out how to do is find out if the SHIFT key is down without > having to plonk my fat fingers on some other key as well. You said this just now, with my solution that works still copied in the top of your message. Take another lo

Re: SHIFTy thoughts

2010-10-11 Thread Richmond
On 10/11/2010 02:06 PM, Colin Holgate wrote: This might give you an idea: on checkkeys send checkkeys to me in 100 milliseconds put shiftkey() end checkkeys _ This: on rawKeyDown if shiftkey() is down then put "DOWN" into fld "fSHIFT" end if end rawKeyDown on rawKeyUp

Re: SHIFTy thoughts

2010-10-11 Thread J. Landman Gay
On 10/11/10 6:27 AM, Len Morgan wrote: I think what Richmond was after was a message that get's sent when he presses the shift key, not detecting when it's down. The only way that comes to mind would be a front script that captured the keydown/keyup or rawkeys messages, check for the shift key s

Re: SHIFTy thoughts

2010-10-11 Thread Len Morgan
On 10/11/2010 6:16 AM, roger.e.el...@sealedair.com wrote: Richmond wroe: I would love to be able to trap when a modifier key is down like this: on shiftKeyDown do blah, blah, blah end shiftKeyDown but it seems that that is not possible in LievCode, unless, of course, I'm missing somethin

Re: SHIFTy thoughts

2010-10-11 Thread Roger . E . Eller
Richmond wroe: > I would love to be able to trap when a modifier key is down like this: > > on shiftKeyDown > do blah, blah, blah > end shiftKeyDown > > but it seems that that is not possible in LievCode, unless, of course, > I'm missing something . . . > > Richmond. I can only determine its s

Re: SHIFTy thoughts

2010-10-11 Thread Colin Holgate
This might give you an idea: on checkkeys send checkkeys to me in 100 milliseconds put shiftkey() end checkkeys ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subsc

SHIFTy thoughts

2010-10-11 Thread Richmond
I would love to be able to trap when a modifier key is down like this: on shiftKeyDown do blah, blah, blah end shiftKeyDown but it seems that that is not possible in LievCode, unless, of course, I'm missing something . . . Richmond. ___ use-revolu