Re: My sticky fingers

2019-06-13 Thread Dar Scott Consulting via use-livecode
This works for me on macOS Mojave 10.14.15 using LiveCode 9.0.4.  By "works", I 
mean it does some things that I think might be close to what you want.  I have 
a field named "test field" on a card and button to clear that. I hold down keys 
while the field does not have the focus.  I would guess you can extend this to 
backspace.

local keyIsUp = true

on arrowKey k
   if keyIsUp then
  doSomething k
   end if
   put false into keyIsUp
   log "arrowKey" && k 
end arrowKey

on keyDown k
   if keyIsUp then
  doSomething k
   end if
   put false into keyIsUp
   log "keyDown" && k
end keyDown

on rawKeyUp
   put true into keyIsUp
   log "rawKeyUp" 
end rawKeyUp


command doSomething k
   log "did" && k
end doSomething


command log s
   put s & tab & the long seconds & lf after field "test field" of me
end log




> On Jun 10, 2019, at 11:02 AM, Richmond via use-livecode 
>  wrote:
> 
> Many things may be worn out . . . certainly
> my patience is wearing a bit thin when I cannot
> stop a command repeating itself because an end-user has got his/her finger
> stuck on an arrowkey.
> 
> Richmond.
> 
> On 10.06.19 19:40, JB via use-livecode wrote:
>> The keyboard might be worn out.
>> 
>> JB
>> 
>> 
>>> On Jun 10, 2019, at 8:05 AM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> This sounds like the system's key repeat rate is set too fast.
>>> 
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On June 10, 2019 3:44:57 AM Richmond via use-livecode 
>>>  wrote:
>>> 
 Everyyytime I try to type
 someting m figerrs
 get stuuuck on the keys to
 long . . .
 
 Especially in LiveCode (!)
 
 So?
 
 on keyDown
  do something
  get me the hell out of this so it doesn't happen more than once
 end keyDown
 
 ?
 
 Richmond.
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-13 Thread Dar Scott Consulting via use-livecode
Perhaps this would need a delay after the pass. For example, wait until the key 
is up and then maybe wait a bit more. This would allow all of the events to 
come in before they are flushed. Maybe.

(I think my state-variable method is simpler, but simple is in the eye of the 
beholder.)

> On Jun 12, 2019, at 4:41 AM, FlexibleLearning.com via use-livecode 
>  wrote:
> 
> Straw grasping here...
> 
> on keyDown
>  do something
>  send "flush" to me in 0
>  pass keyDown
> end keyDown
> 
> on flush
> get flushEvents("all")
> end flush
> 
> Hugh Senior
> 
> On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Everyyytime I try to type someting 
>> m figerrs get stuuuck on the keys to 
>> long . . .
>> 
>> Especially in LiveCode (!)
>> 
>> So?
>> 
>> on keyDown
>>   do something
>>   get me the hell out of this so it doesn't happen more than once end 
>> keyDown
>> 
>> ?
>> 
>> Richmond.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-12 Thread Stephen Barncard via use-livecode
maybe you could tell us if it works...
perhaps

flush   AND
exit to top
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Wed, Jun 12, 2019 at 1:01 PM Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Possibly; but in the event of no hay showing up . . .
>
> On 12.06.19 13:41, FlexibleLearning.com via use-livecode wrote:
> > Straw grasping here...
> >
> > on keyDown
> >do something
> >send "flush" to me in 0
> >pass keyDown
> > end keyDown
> >
> > on flush
> >   get flushEvents("all")
> > end flush
> >
> > Hugh Senior
> >
> > On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> >> Everyyytime I try to type someting
> >> m figerrs get stuuuck on the keys to
> >> long . . .
> >>
> >> Especially in LiveCode (!)
> >>
> >> So?
> >>
> >> on keyDown
> >> do something
> >> get me the hell out of this so it doesn't happen more than once end
> >> keyDown
> >>
> >> ?
> >>
> >> Richmond.
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-12 Thread Richmond via use-livecode

Possibly; but in the event of no hay showing up . . .

On 12.06.19 13:41, FlexibleLearning.com via use-livecode wrote:

Straw grasping here...

on keyDown
   do something
   send "flush" to me in 0
   pass keyDown
end keyDown

on flush
  get flushEvents("all")
end flush

Hugh Senior

On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:


Everyyytime I try to type someting
m figerrs get stuuuck on the keys to
long . . .

Especially in LiveCode (!)

So?

on keyDown
do something
get me the hell out of this so it doesn't happen more than once end
keyDown

?

Richmond.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-12 Thread Dar Scott Consulting via use-livecode
Maybe something like this? (I used raw, so adjust as you need.)

local wasUp = true


on rawKeyDown
   if wasUp then
  doSomething
   end if
   put false into wasUp
end rawKeyDown


on rawKeyUp
   put true into wasUp
end rawKeyUp


command doSomething
   put "x" after me
end doSomething





> On Jun 10, 2019, at 11:02 AM, Richmond via use-livecode 
>  wrote:
> 
> Many things may be worn out . . . certainly
> my patience is wearing a bit thin when I cannot
> stop a command repeating itself because an end-user has got his/her finger
> stuck on an arrowkey.
> 
> Richmond.
> 
> On 10.06.19 19:40, JB via use-livecode wrote:
>> The keyboard might be worn out.
>> 
>> JB
>> 
>> 
>>> On Jun 10, 2019, at 8:05 AM, J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> This sounds like the system's key repeat rate is set too fast.
>>> 
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On June 10, 2019 3:44:57 AM Richmond via use-livecode 
>>>  wrote:
>>> 
 Everyyytime I try to type
 someting m figerrs
 get stuuuck on the keys to
 long . . .
 
 Especially in LiveCode (!)
 
 So?
 
 on keyDown
  do something
  get me the hell out of this so it doesn't happen more than once
 end keyDown
 
 ?
 
 Richmond.
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-12 Thread FlexibleLearning.com via use-livecode
Straw grasping here...

on keyDown
  do something
  send "flush" to me in 0
  pass keyDown
end keyDown

on flush
 get flushEvents("all")
end flush

Hugh Senior

On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Everyyytime I try to type someting 
> m figerrs get stuuuck on the keys to 
> long . . .
>
> Especially in LiveCode (!)
>
> So?
>
> on keyDown
>do something
>get me the hell out of this so it doesn't happen more than once end 
> keyDown
>
> ?
>
> Richmond.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-10 Thread Richmond via use-livecode

Many things may be worn out . . . certainly
my patience is wearing a bit thin when I cannot
stop a command repeating itself because an end-user has got his/her finger
stuck on an arrowkey.

Richmond.

On 10.06.19 19:40, JB via use-livecode wrote:

The keyboard might be worn out.

JB



On Jun 10, 2019, at 8:05 AM, J. Landman Gay via use-livecode 
 wrote:

This sounds like the system's key repeat rate is set too fast.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On June 10, 2019 3:44:57 AM Richmond via use-livecode 
 wrote:


Everyyytime I try to type
someting m figerrs
get stuuuck on the keys to
long . . .

Especially in LiveCode (!)

So?

on keyDown
  do something
  get me the hell out of this so it doesn't happen more than once
end keyDown

?

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-10 Thread Richmond via use-livecode

This looks like Richmond was being "artistic" to make a point.

Richmond.

On 10.06.19 18:05, J. Landman Gay via use-livecode wrote:

This sounds like the system's key repeat rate is set too fast.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On June 10, 2019 3:44:57 AM Richmond via use-livecode 
 wrote:



Everyyytime I try to type
someting m figerrs
get stuuuck on the keys to
long . . .

Especially in LiveCode (!)

So?

on keyDown
  do something
  get me the hell out of this so it doesn't happen more than once
end keyDown

?

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: My sticky fingers

2019-06-10 Thread Richmond via use-livecode

*Exit to top* did not work inside a switch statement.

Richmond.

On 10.06.19 16:52, Stephen Barncard via use-livecode wrote:

Exit to top

On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:


Everyyytime I try to type
someting m figerrs
get stuuuck on the keys to
long . . .

Especially in LiveCode (!)

So?

on keyDown
do something
get me the hell out of this so it doesn't happen more than once
end keyDown

?

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-10 Thread JB via use-livecode
The keyboard might be worn out.

JB


> On Jun 10, 2019, at 8:05 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> This sounds like the system's key repeat rate is set too fast.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> On June 10, 2019 3:44:57 AM Richmond via use-livecode 
>  wrote:
> 
>> Everyyytime I try to type
>> someting m figerrs
>> get stuuuck on the keys to
>> long . . .
>> 
>> Especially in LiveCode (!)
>> 
>> So?
>> 
>> on keyDown
>>  do something
>>  get me the hell out of this so it doesn't happen more than once
>> end keyDown
>> 
>> ?
>> 
>> Richmond.
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-10 Thread J. Landman Gay via use-livecode

This sounds like the system's key repeat rate is set too fast.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On June 10, 2019 3:44:57 AM Richmond via use-livecode 
 wrote:



Everyyytime I try to type
someting m figerrs
get stuuuck on the keys to
long . . .

Especially in LiveCode (!)

So?

on keyDown
  do something
  get me the hell out of this so it doesn't happen more than once
end keyDown

?

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: My sticky fingers

2019-06-10 Thread Stephen Barncard via use-livecode
Exit to top

On Mon, Jun 10, 2019 at 01:43 Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Everyyytime I try to type
> someting m figerrs
> get stuuuck on the keys to
> long . . .
>
> Especially in LiveCode (!)
>
> So?
>
> on keyDown
>do something
>get me the hell out of this so it doesn't happen more than once
> end keyDown
>
> ?
>
> Richmond.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


My sticky fingers

2019-06-10 Thread Richmond via use-livecode

Everyyytime I try to type
someting m figerrs
get stuuuck on the keys to
long . . .

Especially in LiveCode (!)

So?

on keyDown
  do something
  get me the hell out of this so it doesn't happen more than once
end keyDown

?

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode