[futurebasic] Re: [FB] Test of alt key

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Wed, 6 Jun 2001 13:17:36 -0400
>Here's a politically correct and Apple-blessed method that should continue
>to work even under the forthcoming MacOS XI    :-)
>
>local fn IsOptKeyDown
>// _zTrue if option (alt) key is pressed, else _false
>dim keys(7) as short
>call GetKeys( keys(0) )
>end fn = ( (keys(3) and 4) == 4 )
>
>Robert P.


RP,

What is needed to have this also indicate Command key, Control Key, etc?
Caps lock too? Shift Key?  This is one area that I have found many fn's
for, but none of them work consistently for all cases.  Drives me bonkers.

Gracias,

Robert Other Robert