Functionkey
Larry Litton
llitton at littontech.com
Tue Jul 9 18:14:01 EDT 2002
Hello,
I have a simple script that doesn't seem to work in OSX! I'm using the
"Functionkey" function to intercept the function keys. I use a group of
60 cards to allow outputting up to 32000+ characters depending on the
function key pushed. If the F10 key or above is pushed, it becomes a 2
stroke function, giving me 60 Fkeys. The functionkey function seems to
be skipped and works for the default OSX function. Anyone using the
functionkey routine?
on functionKey whichKey
global fkeyopt,Foffset
put the number of cds in background keyboardcd into gnum
if whichkey = 11 then
put 10 into foffset
else if whichkey = 12 then
put 20 into foffset
else if whichkey = 13 then
put 30 into foffset
else if whichkey = 14 then
put 40 into foffset
else if whichkey = 15 then
put 50 into foffset
else if gnum < (whichkey + foffset) then
beep
put (whichkey + foffset)
put empty into foffset
exit functionkey
else if whichKey < 11 then
put fld fkeys of cd (whichkey + foffset) of bkgnd keyboardcd into
packet
SendCommand packet
put 0 into foffset
end if
end functionKey
________________________________________________
Larry E. Litton
Litton Technologies
USA: Mexico:
Home - 530-265-2799 Home - 011-52-315-35-15155
FAX - 530-470-0810 FAX: - 011-52-315-35-15137
Cell - 530-906-1806 Cell - 011-52-314-35-30906
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1664 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020709/03cc17f6/attachment.bin>
More information about the use-livecode
mailing list