home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / IsCmdPeriod.c < prev    next >
MacBinary  |  1996-06-06  |  5.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jun 6 07:56:38 1996, modified Thu Jun 6 07:56:38 1996, creator 'CWIE', type ASCII, 4720 bytes "IsCmdPeriod.c" , at 0x12f0 810 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 49 73 43 6d 64 50 | 65 72 69 6f 64 2e 63 00 |..IsCmdP|eriod.c.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 12 70 00 | 00 03 2a ad dc 77 f6 ad |......p.|..*..w..|
|00000060| dc 77 f6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.w......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 de 93 00 00 |........|........|
|00000080| 2f 2a 0d 49 73 43 6d 64 | 50 65 72 69 6f 64 2e 63 |/*.IsCmd|Period.c|
|00000090| 0d 59 6f 75 20 70 61 73 | 73 20 69 74 20 61 6e 20 |.You pas|s it an |
|000000a0| 65 76 65 6e 74 20 72 65 | 63 6f 72 64 20 61 6e 64 |event re|cord and|
|000000b0| 20 69 74 20 74 65 6c 6c | 73 20 79 6f 75 20 77 68 | it tell|s you wh|
|000000c0| 65 74 68 65 72 20 6f 72 | 20 6e 6f 74 20 74 68 65 |ether or| not the|
|000000d0| 20 75 73 65 72 20 68 61 | 73 20 68 69 74 0d 63 6f | user ha|s hit.co|
|000000e0| 6d 6d 61 6e 64 2d 70 65 | 72 69 6f 64 20 28 69 2e |mmand-pe|riod (i.|
|000000f0| 65 2e 20 22 63 61 6e 63 | 65 6c 22 29 2e 20 54 68 |e. "canc|el"). Th|
|00000100| 69 73 20 6d 65 74 68 6f | 64 20 73 68 6f 75 6c 64 |is metho|d should|
|00000110| 20 77 6f 72 6b 20 6f 6e | 20 61 6c 6c 20 4d 61 63 | work on| all Mac|
|00000120| 73 2c 20 69 6e 63 6c 75 | 64 69 6e 67 0d 69 6e 74 |s, inclu|ding.int|
|00000130| 65 72 6e 61 74 69 6f 6e | 61 6c 20 4d 61 63 4f 53 |ernation|al MacOS|
|00000140| 20 74 68 61 74 20 72 65 | 6d 61 70 20 74 68 65 20 | that re|map the |
|00000150| 6b 65 79 62 6f 61 72 64 | 2e 0d 0d 57 41 52 4e 49 |keyboard|...WARNI|
|00000160| 4e 47 3a 0d 54 68 65 20 | 73 69 6d 70 6c 65 20 63 |NG:.The |simple c|
|00000170| 61 6c 6c 20 70 72 6f 62 | 61 62 6c 79 20 77 6f 72 |all prob|ably wor|
|00000180| 6b 73 20 66 69 6e 65 2c | 20 62 75 74 20 49 20 68 |ks fine,| but I h|
|00000190| 61 76 65 6e 27 74 20 74 | 65 73 74 65 64 20 69 74 |aven't t|ested it|
|000001a0| 2e 0d 4e 6f 72 20 68 61 | 76 65 20 49 20 74 65 73 |..Nor ha|ve I tes|
|000001b0| 74 65 64 20 74 68 65 20 | 65 6c 61 62 6f 72 61 74 |ted the |elaborat|
|000001c0| 65 20 73 63 68 65 6d 65 | 2e 20 49 20 68 61 76 65 |e scheme|. I have|
|000001d0| 6e 27 74 20 72 65 61 64 | 20 74 68 65 20 53 63 72 |n't read| the Scr|
|000001e0| 69 70 74 20 4d 61 6e 61 | 67 65 72 20 63 68 61 70 |ipt Mana|ger chap|
|000001f0| 74 65 72 2e 20 54 68 65 | 20 63 61 63 68 69 6e 67 |ter. The| caching|
|00000200| 0d 73 63 68 65 6d 65 20 | 28 73 61 76 69 6e 67 20 |.scheme |(saving |
|00000210| 22 70 65 72 69 6f 64 22 | 29 20 6d 69 67 68 74 20 |"period"|) might |
|00000220| 66 61 69 6c 20 69 66 20 | 79 6f 75 20 63 68 61 6e |fail if |you chan|
|00000230| 67 65 20 73 63 72 69 70 | 74 20 73 79 73 74 65 6d |ge scrip|t system|
|00000240| 73 20 62 65 74 77 65 65 | 6e 20 63 61 6c 6c 73 0d |s betwee|n calls.|
|00000250| 74 6f 20 49 73 43 6d 64 | 50 65 72 69 6f 64 2e 0d |to IsCmd|Period..|
|00000260| 0d 43 6f 70 69 65 64 20 | 66 72 6f 6d 20 63 6f 6d |.Copied |from com|
|00000270| 70 2e 73 79 73 2e 6d 61 | 63 2e 70 72 6f 67 72 61 |p.sys.ma|c.progra|
|00000280| 6d 6d 69 6e 67 3a 0d 0d | 46 72 6f 6d 3a 20 6b 30 |mming:..|From: k0|
|00000290| 34 34 34 37 37 40 68 6f | 62 62 65 73 2e 6b 7a 6f |44477@ho|bbes.kzo|
|000002a0| 6f 2e 65 64 75 20 28 4a | 61 6d 69 65 20 52 2e 20 |o.edu (J|amie R. |
|000002b0| 4d 63 43 61 72 74 68 79 | 29 0d 44 61 74 65 3a 20 |McCarthy|).Date: |
|000002c0| 31 33 20 4d 61 79 20 39 | 33 20 31 39 3a 34 31 3a |13 May 9|3 19:41:|
|000002d0| 33 38 20 47 4d 54 0d 4f | 72 67 61 6e 69 7a 61 74 |38 GMT.O|rganizat|
|000002e0| 69 6f 6e 3a 20 4b 61 6c | 61 6d 61 7a 6f 6f 20 43 |ion: Kal|amazoo C|
|000002f0| 6f 6c 6c 65 67 65 0d 0d | 3e 50 4c 45 41 53 45 20 |ollege..|>PLEASE |
|00000300| 65 76 65 72 79 62 6f 64 | 79 20 72 65 61 64 20 74 |everybod|y read t|
|00000310| 68 65 20 22 49 6e 74 65 | 72 6e 61 74 69 6f 6e 61 |he "Inte|rnationa|
|00000320| 6c 20 43 61 6e 63 65 6c | 69 6e 67 22 20 74 65 63 |l Cancel|ing" tec|
|00000330| 68 20 6e 6f 74 65 20 28 | 69 6e 0d 3e 22 54 65 78 |h note (|in.>"Tex|
|00000340| 74 22 29 2c 20 6f 72 20 | 69 6e 20 74 68 65 20 6f |t"), or |in the o|
|00000350| 66 66 69 63 69 61 6c 20 | 6a 61 72 67 6f 6e 3a 20 |fficial |jargon: |
|00000360| 4d 2e 54 45 2e 49 6e 74 | 65 72 6e 61 74 69 6f 6e |M.TE.Int|ernation|
|00000370| 61 6c 43 61 6e 63 65 6c | 20 28 79 65 63 68 29 2e |alCancel| (yech).|
|00000380| 0d 3e 0d 3e 49 74 20 65 | 78 70 6c 61 69 6e 73 20 |.>.>It e|xplains |
|00000390| 74 68 61 74 20 43 6f 6d | 6d 61 6e 64 20 6b 65 79 |that Com|mand key|
|000003a0| 20 63 6f 6d 62 69 6e 61 | 74 69 6f 6e 73 20 77 69 | combina|tions wi|
|000003b0| 74 68 20 6e 6f 6e 2d 6c | 65 74 74 65 72 20 6b 65 |th non-l|etter ke|
|000003c0| 79 73 20 6d 61 79 0d 3e | 6d 61 70 20 74 6f 20 43 |ys may.>|map to C|
|000003d0| 6f 6d 6d 61 6e 64 2d 53 | 68 69 66 74 20 6b 65 79 |ommand-S|hift key|
|000003e0| 20 63 6f 64 65 73 20 6f | 6e 20 69 6e 74 65 72 6e | codes o|n intern|
|000003f0| 61 74 69 6f 6e 61 6c 20 | 6b 65 79 62 6f 61 72 64 |ational |keyboard|
|00000400| 73 2e 20 41 6e 64 20 77 | 65 0d 3e 61 6c 6c 20 6b |s. And w|e.>all k|
|00000410| 6e 6f 77 20 74 68 61 74 | 20 43 6f 6d 6d 61 6e 64 |now that| Command|
|00000420| 2d 53 68 69 66 74 20 67 | 65 74 73 20 69 6e 74 65 |-Shift g|ets inte|
|00000430| 72 63 65 70 74 65 64 20 | 62 79 20 74 68 65 20 6f |rcepted |by the o|
|00000440| 70 65 72 61 74 69 6e 67 | 20 73 79 73 74 65 6d 2e |perating| system.|
|00000450| 0d 3e 54 68 69 73 20 69 | 73 20 61 20 70 61 69 6e |.>This i|s a pain|
|00000460| 2c 20 62 65 63 61 75 73 | 65 20 69 74 20 6d 65 61 |, becaus|e it mea|
|00000470| 6e 73 20 79 6f 75 20 77 | 6f 6e 27 74 20 62 65 20 |ns you w|on't be |
|00000480| 61 62 6c 65 20 74 6f 20 | 63 61 6e 63 65 6c 20 6f |able to |cancel o|
|00000490| 70 65 72 61 74 69 6f 6e | 73 2c 0d 3e 6f 72 20 68 |peration|s,.>or h|
|000004a0| 61 76 65 20 61 63 63 65 | 73 73 20 74 6f 20 73 69 |ave acce|ss to si|
|000004b0| 6d 69 6c 61 72 20 6b 65 | 79 62 6f 61 72 64 20 73 |milar ke|yboard s|
|000004c0| 68 6f 72 74 63 75 74 73 | 2e 0d 20 0d 48 65 72 65 |hortcuts|.. .Here|
|000004d0| 27 73 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |'s the f|unction |
|000004e0| 49 20 75 73 65 2e 20 20 | 49 20 74 68 69 6e 6b 20 |I use. |I think |
|000004f0| 49 20 74 6f 6f 6b 20 69 | 74 20 70 72 65 74 74 79 |I took i|t pretty|
|00000500| 20 6d 75 63 68 20 73 74 | 72 61 69 67 68 74 20 66 | much st|raight f|
|00000510| 72 6f 6d 0d 74 68 65 20 | 54 4e 2c 20 62 75 74 20 |rom.the |TN, but |
|00000520| 49 20 6d 69 67 68 74 20 | 68 61 76 65 20 6d 61 64 |I might |have mad|
|00000530| 65 20 73 6f 6d 65 20 6d | 69 6e 6f 72 20 69 6d 70 |e some m|inor imp|
|00000540| 72 6f 76 65 6d 65 6e 74 | 2c 20 49 20 64 6f 6e 27 |rovement|, I don'|
|00000550| 74 20 72 65 63 61 6c 6c | 0d 77 68 61 74 2e 20 20 |t recall|.what. |
|00000560| 41 6e 79 77 61 79 2c 20 | 6d 61 79 62 65 20 74 68 |Anyway, |maybe th|
|00000570| 69 73 27 6c 6c 20 73 61 | 76 65 20 73 6f 6d 65 6f |is'll sa|ve someo|
|00000580| 6e 65 20 61 20 66 65 77 | 20 6d 69 6e 75 74 65 73 |ne a few| minutes|
|00000590| 27 20 77 6f 72 74 68 20 | 6f 66 0d 74 79 70 69 6e |' worth |of.typin|
|000005a0| 67 3a 0d 2d 20 2d 2d 20 | 0d 20 4a 61 6d 69 65 20 |g:.- -- |. Jamie |
|000005b0| 4d 63 43 61 72 74 68 79 | 20 09 49 6e 74 65 72 6e |McCarthy| .Intern|
|000005c0| 65 74 3a 20 6b 30 34 34 | 34 37 37 40 6b 7a 6f 6f |et: k044|477@kzoo|
|000005d0| 2e 65 64 75 09 41 70 70 | 6c 65 4c 69 6e 6b 3a 20 |.edu.App|leLink: |
|000005e0| 6a 2e 6d 63 63 61 72 74 | 68 79 0d 0d 48 49 53 54 |j.mccart|hy..HIST|
|000005f0| 4f 52 59 3a 0d 31 33 20 | 4d 61 79 20 39 33 20 4a |ORY:.13 |May 93 J|
|00000600| 61 6d 69 65 20 4d 63 43 | 61 72 74 68 79 20 70 6f |amie McC|arthy po|
|00000610| 73 74 65 64 20 69 74 20 | 6f 6e 20 63 6f 6d 70 2e |sted it |on comp.|
|00000620| 73 79 73 2e 6d 61 63 2e | 70 72 6f 67 72 61 6d 6d |sys.mac.|programm|
|00000630| 69 6e 67 0d 36 2f 32 33 | 2f 39 33 09 64 67 70 20 |ing.6/23|/93.dgp |
|00000640| 63 6f 72 72 65 63 74 65 | 64 20 62 75 67 20 6f 66 |correcte|d bug of|
|00000650| 20 75 73 69 6e 67 20 22 | 3d 22 20 69 6e 73 74 65 | using "|=" inste|
|00000660| 61 64 20 6f 66 20 22 3d | 3d 22 20 69 6e 20 61 6e |ad of "=|=" in an|
|00000670| 20 69 66 20 73 74 61 74 | 65 6d 65 6e 74 2e 0d 09 | if stat|ement...|
|00000680| 43 68 65 63 6b 20 66 6f | 72 20 76 61 6c 69 64 20 |Check fo|r valid |
|00000690| 68 61 6e 64 6c 65 20 62 | 65 66 6f 72 65 20 64 65 |handle b|efore de|
|000006a0| 72 65 66 65 72 65 6e 63 | 69 6e 67 2e 20 54 69 67 |referenc|ing. Tig|
|000006b0| 68 74 65 6e 65 64 20 75 | 70 20 63 6f 64 65 20 61 |htened u|p code a|
|000006c0| 20 62 69 74 2e 0d 09 4e | 6f 74 20 74 65 73 74 65 | bit...N|ot teste|
|000006d0| 64 2e 20 0d 36 2f 33 30 | 2f 39 33 09 64 67 70 20 |d. .6/30|/93.dgp |
|000006e0| 54 68 65 20 65 6c 61 62 | 6f 72 61 74 65 20 6d 65 |The elab|orate me|
|000006f0| 74 68 6f 64 20 72 65 71 | 75 69 72 65 64 20 66 6f |thod req|uired fo|
|00000700| 72 20 69 6e 74 65 72 6e | 61 74 69 6f 6e 61 6c 20 |r intern|ational |
|00000710| 73 79 73 74 65 6d 73 20 | 73 65 65 6d 73 0d 65 78 |systems |seems.ex|
|00000720| 63 65 73 73 69 76 65 20 | 66 6f 72 20 72 6f 75 74 |cessive |for rout|
|00000730| 69 6e 65 20 75 73 65 2c | 20 73 6f 20 49 20 61 64 |ine use,| so I ad|
|00000740| 64 65 64 20 61 20 73 68 | 6f 72 74 63 75 74 2e 20 |ded a sh|ortcut. |
|00000750| 57 65 20 67 6f 20 74 68 | 72 6f 75 67 68 20 74 68 |We go th|rough th|
|00000760| 65 20 77 68 6f 6c 65 20 | 0d 72 69 67 61 6d 61 72 |e whole |.rigamar|
|00000770| 6f 6c 65 20 6f 6e 63 65 | 2c 20 61 6e 64 20 6e 6f |ole once|, and no|
|00000780| 74 65 20 77 68 61 74 20 | 74 68 65 20 43 6d 64 2d |te what |the Cmd-|
|00000790| 70 65 72 69 6f 64 20 6b | 65 79 20 70 72 65 73 73 |period k|ey press|
|000007a0| 65 73 20 77 65 72 65 20 | 74 72 61 6e 73 6c 61 74 |es were |translat|
|000007b0| 65 64 20 74 6f 2e 0d 4f | 6e 20 73 75 62 73 65 71 |ed to..O|n subseq|
|000007c0| 75 65 6e 74 20 6f 63 63 | 61 73 69 6f 6e 73 20 77 |uent occ|asions w|
|000007d0| 65 20 6a 75 73 74 20 28 | 71 75 69 63 6b 6c 79 29 |e just (|quickly)|
|000007e0| 20 63 68 65 63 6b 20 66 | 6f 72 20 74 68 61 74 2e | check f|or that.|
|000007f0| 20 0d 35 2f 32 32 2f 39 | 35 20 64 67 70 20 41 70 | .5/22/9|5 dgp Ap|
|00000800| 70 6c 65 20 63 68 61 6e | 67 65 64 20 74 68 65 20 |ple chan|ged the |
|00000810| 70 72 6f 74 6f 74 79 70 | 65 20 66 72 6f 6d 20 4b |prototyp|e from K|
|00000820| 65 79 54 72 61 6e 73 28 | 2e 2e 2e 2c 6c 6f 6e 67 |eyTrans(|...,long|
|00000830| 20 2a 73 74 61 74 65 29 | 20 0d 09 09 74 6f 20 4b | *state)| ...to K|
|00000840| 65 79 54 72 61 6e 73 6c | 61 74 65 28 2e 2e 2e 2c |eyTransl|ate(...,|
|00000850| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 2a 73 |unsigned| long *s|
|00000860| 74 61 74 65 29 2e 20 54 | 6f 20 6d 61 6b 65 20 74 |tate). T|o make t|
|00000870| 68 65 20 63 6f 64 65 20 | 63 6f 6d 70 61 74 69 62 |he code |compatib|
|00000880| 6c 65 0d 09 09 77 69 74 | 68 20 62 6f 74 68 20 76 |le...wit|h both v|
|00000890| 65 72 73 69 6f 6e 73 2c | 20 49 20 63 61 73 74 20 |ersions,| I cast |
|000008a0| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 20 61 73 20 |the argu|ment as |
|000008b0| 28 76 6f 69 64 20 2a 29 | 2e 0d 31 31 2f 31 30 2f |(void *)|..11/10/|
|000008c0| 39 35 20 64 67 70 20 44 | 61 6e 69 65 6c 20 53 65 |95 dgp D|aniel Se|
|000008d0| 61 72 73 2c 20 73 65 61 | 72 73 40 6e 65 74 63 6f |ars, sea|rs@netco|
|000008e0| 6d 2e 63 6f 6d 2c 20 77 | 72 69 74 65 73 20 22 49 |m.com, w|rites "I|
|000008f0| 73 43 6d 64 50 65 72 69 | 6f 64 2e 63 20 73 68 6f |sCmdPeri|od.c sho|
|00000900| 75 6c 64 20 74 61 6b 65 | 20 61 64 76 61 6e 74 61 |uld take| advanta|
|00000910| 67 65 20 6f 66 0d 49 73 | 43 6d 64 43 68 61 72 28 |ge of.Is|CmdChar(|
|00000920| 65 76 65 6e 74 2c 20 27 | 2e 27 29 2c 20 77 68 69 |event, '|.'), whi|
|00000930| 63 68 20 69 73 20 69 6e | 74 65 72 6e 61 74 69 6f |ch is in|ternatio|
|00000940| 6e 61 6c 20 61 6e 64 20 | 77 61 73 20 64 69 76 75 |nal and |was divu|
|00000950| 6c 67 65 64 20 69 6e 20 | 61 20 44 65 76 65 6c 6f |lged in |a Develo|
|00000960| 70 20 51 2f 41 2e 22 0d | 49 20 6c 6f 6f 6b 65 64 |p Q/A.".|I looked|
|00000970| 20 66 6f 72 20 74 68 69 | 73 20 6f 6e 20 74 68 65 | for thi|s on the|
|00000980| 20 63 75 72 72 65 6e 74 | 20 41 70 70 6c 65 20 44 | current| Apple D|
|00000990| 65 76 65 6c 6f 70 65 72 | 20 43 44 20 28 4e 6f 76 |eveloper| CD (Nov|
|000009a0| 65 6d 62 65 72 20 27 39 | 35 29 20 61 6e 64 20 74 |ember '9|5) and t|
|000009b0| 68 65 20 74 77 6f 20 70 | 72 65 63 65 64 69 6e 67 |he two p|receding|
|000009c0| 20 6f 6e 65 73 2c 0d 61 | 6e 64 20 63 61 6e 27 74 | ones,.a|nd can't|
|000009d0| 20 66 69 6e 64 20 69 74 | 2e 49 20 64 69 64 20 66 | find it|.I did f|
|000009e0| 69 6e 64 20 54 65 63 68 | 20 4e 6f 74 65 20 54 45 |ind Tech| Note TE|
|000009f0| 20 32 33 20 49 6e 74 65 | 72 6e 61 74 69 6f 6e 61 | 23 Inte|rnationa|
|00000a00| 6c 20 43 61 6e 63 65 6c | 69 6e 67 2c 20 64 61 74 |l Cancel|ing, dat|
|00000a10| 65 64 20 31 39 39 30 2c | 20 77 68 69 63 68 20 0d |ed 1990,| which .|
|00000a20| 63 6c 65 61 72 6c 79 20 | 70 72 65 64 61 74 65 73 |clearly |predates|
|00000a30| 20 74 68 65 20 65 78 69 | 73 74 65 6e 63 65 20 6f | the exi|stence o|
|00000a40| 66 20 49 73 43 6d 64 43 | 68 61 72 20 61 6e 64 20 |f IsCmdC|har and |
|00000a50| 67 6f 65 73 20 69 6e 74 | 6f 20 61 20 6c 6f 6e 67 |goes int|o a long|
|00000a60| 0d 65 78 70 6c 61 6e 61 | 74 69 6f 6e 20 61 6e 64 |.explana|tion and|
|00000a70| 20 73 75 70 70 6c 69 65 | 73 20 73 61 6d 70 6c 65 | supplie|s sample|
|00000a80| 20 63 6f 64 65 2c 20 77 | 68 69 63 68 20 49 20 73 | code, w|hich I s|
|00000a90| 75 70 70 6f 73 65 20 69 | 73 20 74 68 65 20 62 61 |uppose i|s the ba|
|00000aa0| 73 69 73 20 6f 66 20 77 | 68 61 74 27 73 20 62 65 |sis of w|hat's be|
|00000ab0| 6c 6f 77 2c 20 74 68 6f | 75 67 68 0d 49 20 68 61 |low, tho|ugh.I ha|
|00000ac0| 76 65 6e 27 74 20 63 68 | 65 63 6b 65 64 2e 20 49 |ven't ch|ecked. I|
|00000ad0| 20 64 69 64 20 66 69 6e | 64 20 74 68 65 20 70 72 | did fin|d the pr|
|00000ae0| 6f 74 6f 74 79 70 65 20 | 66 6f 72 20 49 73 43 6d |ototype |for IsCm|
|00000af0| 64 43 68 61 72 20 69 6e | 20 53 63 72 69 70 74 2e |dChar in| Script.|
|00000b00| 68 20 74 68 6f 75 67 68 | 2c 20 61 6e 64 20 77 65 |h though|, and we|
|00000b10| 6e 74 20 61 68 65 61 64 | 20 61 6e 64 20 6d 61 64 |nt ahead| and mad|
|00000b20| 65 0d 74 68 65 20 63 68 | 61 6e 67 65 2c 20 61 73 |e.the ch|ange, as|
|00000b30| 20 73 75 67 67 65 73 74 | 65 64 20 62 79 20 44 61 | suggest|ed by Da|
|00000b40| 6e 2e 0d 2a 2f 0d 23 69 | 6e 63 6c 75 64 65 20 22 |n..*/.#i|nclude "|
|00000b50| 56 69 64 65 6f 54 6f 6f | 6c 62 6f 78 2e 68 22 20 |VideoToo|lbox.h" |
|00000b60| 0d 2f 2f 23 69 6e 63 6c | 75 64 65 20 3c 54 79 70 |.//#incl|ude <Typ|
|00000b70| 65 73 2e 68 3e 0d 2f 2f | 23 69 6e 63 6c 75 64 65 |es.h>.//|#include|
|00000b80| 20 3c 53 63 72 69 70 74 | 2e 68 3e 0d 2f 2f 23 69 | <Script|.h>.//#i|
|00000b90| 6e 63 6c 75 64 65 20 3c | 4f 53 55 74 69 6c 73 2e |nclude <|OSUtils.|
|00000ba0| 68 3e 0d 23 69 66 20 21 | 55 4e 49 56 45 52 53 41 |h>.#if !|UNIVERSA|
|00000bb0| 4c 5f 48 45 41 44 45 52 | 53 0d 09 65 78 74 65 72 |L_HEADER|S..exter|
|00000bc0| 6e 20 70 61 73 63 61 6c | 20 42 6f 6f 6c 65 61 6e |n pascal| Boolean|
|00000bd0| 20 49 73 43 6d 64 43 68 | 61 72 28 63 6f 6e 73 74 | IsCmdCh|ar(const|
|00000be0| 20 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 65 76 | EventRe|cord *ev|
|00000bf0| 65 6e 74 2c 20 73 68 6f | 72 74 20 74 65 73 74 29 |ent, sho|rt test)|
|00000c00| 3d 7b 30 78 32 46 33 43 | 2c 30 78 38 32 30 36 2c |={0x2F3C|,0x8206,|
|00000c10| 30 78 46 46 44 30 2c 30 | 78 41 38 42 35 7d 3b 0d |0xFFD0,0|xA8B5};.|
|00000c20| 23 65 6e 64 69 66 0d 0d | 42 6f 6f 6c 65 61 6e 20 |#endif..|Boolean |
|00000c30| 49 73 43 6d 64 50 65 72 | 69 6f 64 28 72 65 67 69 |IsCmdPer|iod(regi|
|00000c40| 73 74 65 72 20 45 76 65 | 6e 74 52 65 63 6f 72 64 |ster Eve|ntRecord|
|00000c50| 20 2a 65 76 65 6e 74 29 | 0d 7b 0d 09 73 74 61 74 | *event)|.{..stat|
|00000c60| 69 63 20 63 68 61 72 20 | 70 65 72 69 6f 64 3d 30 |ic char |period=0|
|00000c70| 3b 09 2f 2f 20 77 68 61 | 74 20 63 6d 64 2d 70 65 |;.// wha|t cmd-pe|
|00000c80| 72 69 6f 64 20 67 65 74 | 73 20 6d 61 70 70 65 64 |riod get|s mapped|
|00000c90| 20 74 6f 2e 0d 09 73 74 | 61 74 69 63 20 42 6f 6f | to...st|atic Boo|
|00000ca0| 6c 65 61 6e 20 66 69 72 | 73 74 54 69 6d 65 3d 31 |lean fir|stTime=1|
|00000cb0| 2c 74 72 61 70 41 76 61 | 69 6c 61 62 6c 65 3b 0d |,trapAva|ilable;.|
|00000cc0| 0d 09 69 66 28 66 69 72 | 73 74 54 69 6d 65 29 7b |..if(fir|stTime){|
|00000cd0| 0d 09 09 2f 2f 20 49 20 | 64 6f 6e 27 74 20 6b 6e |...// I |don't kn|
|00000ce0| 6f 77 20 77 68 65 74 68 | 65 72 20 74 68 69 73 20 |ow wheth|er this |
|00000cf0| 74 65 73 74 20 69 73 20 | 73 75 66 66 69 63 69 65 |test is |sufficie|
|00000d00| 6e 74 20 74 6f 20 67 75 | 61 72 61 6e 74 65 65 20 |nt to gu|arantee |
|00000d10| 70 72 65 73 65 6e 63 65 | 20 6f 66 20 49 73 43 6d |presence| of IsCm|
|00000d20| 64 43 68 61 72 28 29 2e | 0d 09 09 23 64 65 66 69 |dChar().|...#defi|
|00000d30| 6e 65 20 5f 53 63 72 69 | 70 74 55 74 69 6c 20 30 |ne _Scri|ptUtil 0|
|00000d40| 78 41 38 42 35 0d 09 09 | 74 72 61 70 41 76 61 69 |xA8B5...|trapAvai|
|00000d50| 6c 61 62 6c 65 3d 54 72 | 61 70 41 76 61 69 6c 61 |lable=Tr|apAvaila|
|00000d60| 62 6c 65 28 5f 53 63 72 | 69 70 74 55 74 69 6c 29 |ble(_Scr|iptUtil)|
|00000d70| 3b 0d 09 09 66 69 72 73 | 74 54 69 6d 65 3d 30 3b |;...firs|tTime=0;|
|00000d80| 0d 09 7d 0d 09 69 66 28 | 74 72 61 70 41 76 61 69 |..}..if(|trapAvai|
|00000d90| 6c 61 62 6c 65 29 0d 09 | 09 72 65 74 75 72 6e 20 |lable)..|.return |
|00000da0| 49 73 43 6d 64 43 68 61 | 72 28 65 76 65 6e 74 2c |IsCmdCha|r(event,|
|00000db0| 27 2e 27 29 3b 09 2f 2f | 20 70 72 6f 74 6f 74 79 |'.');.//| prototy|
|00000dc0| 70 65 20 69 6e 20 53 63 | 72 69 70 74 2e 68 2e 20 |pe in Sc|ript.h. |
|00000dd0| 44 6f 63 75 6d 65 6e 74 | 65 64 20 69 6e 20 4d 61 |Document|ed in Ma|
|00000de0| 63 20 54 65 63 68 20 51 | 26 41 3f 3f 0d 09 65 6c |c Tech Q|&A??..el|
|00000df0| 73 65 7b 0d 09 09 69 66 | 28 70 65 72 69 6f 64 21 |se{...if|(period!|
|00000e00| 3d 30 29 20 72 65 74 75 | 72 6e 20 28 65 76 65 6e |=0) retu|rn (even|
|00000e10| 74 2d 3e 77 68 61 74 20 | 3d 3d 20 6b 65 79 44 6f |t->what |== keyDo|
|00000e20| 77 6e 20 7c 7c 20 65 76 | 65 6e 74 2d 3e 77 68 61 |wn || ev|ent->wha|
|00000e30| 74 20 3d 3d 20 61 75 74 | 6f 4b 65 79 29 0d 09 09 |t == aut|oKey)...|
|00000e40| 09 26 26 20 28 65 76 65 | 6e 74 2d 3e 6d 6f 64 69 |.&& (eve|nt->modi|
|00000e50| 66 69 65 72 73 20 26 20 | 63 6d 64 4b 65 79 29 0d |fiers & |cmdKey).|
|00000e60| 09 09 09 26 26 20 28 65 | 76 65 6e 74 2d 3e 6d 65 |...&& (e|vent->me|
|00000e70| 73 73 61 67 65 20 26 20 | 63 68 61 72 43 6f 64 65 |ssage & |charCode|
|00000e80| 4d 61 73 6b 29 20 3d 3d | 20 70 65 72 69 6f 64 3b |Mask) ==| period;|
|00000e90| 0d 09 09 65 6c 73 65 7b | 0d 09 09 09 42 6f 6f 6c |...else{|....Bool|
|00000ea0| 65 61 6e 20 69 73 43 6d | 64 50 65 72 69 6f 64 3d |ean isCm|dPeriod=|
|00000eb0| 46 41 4c 53 45 3b 0d 09 | 09 09 73 68 6f 72 74 20 |FALSE;..|..short |
|00000ec0| 6b 65 79 43 6f 64 65 3b | 0d 09 09 09 6c 6f 6e 67 |keyCode;|....long|
|00000ed0| 20 6b 65 79 49 6e 66 6f | 2c 6b 65 79 43 49 44 3b | keyInfo|,keyCID;|
|00000ee0| 0d 09 09 09 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |....unsi|gned lon|
|00000ef0| 67 20 73 74 61 74 65 3b | 0d 09 09 09 48 61 6e 64 |g state;|....Hand|
|00000f00| 6c 65 20 68 4b 43 48 52 | 3b 0d 09 09 09 50 74 72 |le hKCHR|;....Ptr|
|00000f10| 20 70 4b 43 48 52 3b 0d | 09 09 09 0d 09 09 09 69 | pKCHR;.|.......i|
|00000f20| 66 20 28 28 65 76 65 6e | 74 2d 3e 6d 6f 64 69 66 |f ((even|t->modif|
|00000f30| 69 65 72 73 20 26 20 63 | 6d 64 4b 65 79 29 0d 09 |iers & c|mdKey)..|
|00000f40| 09 09 09 26 26 20 28 65 | 76 65 6e 74 2d 3e 77 68 |...&& (e|vent->wh|
|00000f50| 61 74 20 3d 3d 20 6b 65 | 79 44 6f 77 6e 20 7c 7c |at == ke|yDown |||
|00000f60| 20 65 76 65 6e 74 2d 3e | 77 68 61 74 20 3d 3d 20 | event->|what == |
|00000f70| 61 75 74 6f 4b 65 79 29 | 29 7b 0d 09 09 09 09 70 |autoKey)|){.....p|
|00000f80| 4b 43 48 52 3d 28 50 74 | 72 29 47 65 74 45 6e 76 |KCHR=(Pt|r)GetEnv|
|00000f90| 69 72 6f 6e 73 28 73 6d | 4b 43 48 52 43 61 63 68 |irons(sm|KCHRCach|
|00000fa0| 65 29 3b 09 2f 2f 20 72 | 65 74 75 72 6e 73 20 4e |e);.// r|eturns N|
|00000fb0| 55 4c 4c 20 75 6e 64 65 | 72 20 53 79 73 74 65 6d |ULL unde|r System|
|00000fc0| 20 36 0d 09 09 09 09 69 | 66 28 70 4b 43 48 52 20 | 6.....i|f(pKCHR |
|00000fd0| 3d 3d 20 4e 55 4c 4c 29 | 7b 0d 09 09 09 09 09 6b |== NULL)|{......k|
|00000fe0| 65 79 43 49 44 3d 47 65 | 74 53 63 72 69 70 74 28 |eyCID=Ge|tScript(|
|00000ff0| 47 65 74 45 6e 76 69 72 | 6f 6e 73 28 73 6d 4b 65 |GetEnvir|ons(smKe|
|00001000| 79 53 63 72 69 70 74 29 | 2c 73 6d 53 63 72 69 70 |yScript)|,smScrip|
|00001010| 74 4b 65 79 73 29 3b 0d | 09 09 09 09 09 68 4b 43 |tKeys);.|.....hKC|
|00001020| 48 52 3d 47 65 74 52 65 | 73 6f 75 72 63 65 28 27 |HR=GetRe|source('|
|00001030| 4b 43 48 52 27 2c 6b 65 | 79 43 49 44 29 3b 0d 09 |KCHR',ke|yCID);..|
|00001040| 09 09 09 09 69 66 28 68 | 4b 43 48 52 21 3d 4e 55 |....if(h|KCHR!=NU|
|00001050| 4c 4c 29 70 4b 43 48 52 | 3d 2a 68 4b 43 48 52 3b |LL)pKCHR|=*hKCHR;|
|00001060| 0d 09 09 09 09 7d 65 6c | 73 65 20 68 4b 43 48 52 |.....}el|se hKCHR|
|00001070| 3d 4e 55 4c 4c 3b 0d 09 | 09 09 09 69 66 28 70 4b |=NULL;..|...if(pK|
|00001080| 43 48 52 20 21 3d 20 4e | 55 4c 4c 29 7b 0d 09 09 |CHR != N|ULL){...|
|00001090| 09 09 09 2f 2f 20 72 65 | 2d 74 72 61 6e 73 6c 61 |...// re|-transla|
|000010a0| 74 65 20 74 68 65 20 76 | 69 72 74 75 61 6c 20 6b |te the v|irtual k|
|000010b0| 65 79 20 74 6f 20 61 20 | 63 68 61 72 2c 20 77 69 |ey to a |char, wi|
|000010c0| 74 68 6f 75 74 20 74 68 | 65 20 63 6f 6d 6d 61 6e |thout th|e comman|
|000010d0| 64 20 6d 6f 64 69 66 69 | 65 72 0d 09 09 09 09 09 |d modifi|er......|
|000010e0| 6b 65 79 43 6f 64 65 3d | 28 65 76 65 6e 74 2d 3e |keyCode=|(event->|
|000010f0| 6d 65 73 73 61 67 65 20 | 26 20 6b 65 79 43 6f 64 |message |& keyCod|
|00001100| 65 4d 61 73 6b 29 20 3e | 3e 20 38 3b 09 2f 2f 20 |eMask) >|> 8;.// |
|00001110| 74 68 65 20 76 69 72 74 | 75 61 6c 20 6b 65 79 0d |the virt|ual key.|
|00001120| 09 09 09 09 09 6b 65 79 | 43 6f 64 65 20 7c 3d 20 |.....key|Code |= |
|00001130| 65 76 65 6e 74 2d 3e 6d | 6f 64 69 66 69 65 72 73 |event->m|odifiers|
|00001140| 20 26 20 30 78 46 46 30 | 30 20 26 20 7e 63 6d 64 | & 0xFF0|0 & ~cmd|
|00001150| 4b 65 79 3b 0d 09 09 09 | 09 09 73 74 61 74 65 3d |Key;....|..state=|
|00001160| 30 3b 0d 09 09 09 09 09 | 6b 65 79 49 6e 66 6f 3d |0;......|keyInfo=|
|00001170| 4b 65 79 54 72 61 6e 73 | 28 70 4b 43 48 52 2c 6b |KeyTrans|(pKCHR,k|
|00001180| 65 79 43 6f 64 65 2c 28 | 76 6f 69 64 20 2a 29 26 |eyCode,(|void *)&|
|00001190| 73 74 61 74 65 29 3b 09 | 2f 2f 20 63 6f 6d 70 61 |state);.|// compa|
|000011a0| 74 69 62 6c 65 20 77 69 | 74 68 20 61 6c 6c 20 70 |tible wi|th all p|
|000011b0| 72 6f 74 6f 74 79 70 65 | 73 0d 09 09 09 09 09 69 |rototype|s......i|
|000011c0| 66 28 28 6b 65 79 49 6e | 66 6f 26 63 68 61 72 43 |f((keyIn|fo&charC|
|000011d0| 6f 64 65 4d 61 73 6b 29 | 20 3d 3d 20 27 2e 27 20 |odeMask)| == '.' |
|000011e0| 0d 09 09 09 09 09 09 7c | 7c 20 28 28 6b 65 79 49 |.......||| ((keyI|
|000011f0| 6e 66 6f 3e 3e 31 36 29 | 26 63 68 61 72 43 6f 64 |nfo>>16)|&charCod|
|00001200| 65 4d 61 73 6b 29 20 3d | 3d 20 27 2e 27 29 69 73 |eMask) =|= '.')is|
|00001210| 43 6d 64 50 65 72 69 6f | 64 3d 54 52 55 45 3b 0d |CmdPerio|d=TRUE;.|
|00001220| 09 09 09 09 09 69 66 20 | 28 68 4b 43 48 52 20 21 |.....if |(hKCHR !|
|00001230| 3d 20 4e 55 4c 4c 29 20 | 52 65 6c 65 61 73 65 52 |= NULL) |ReleaseR|
|00001240| 65 73 6f 75 72 63 65 28 | 68 4b 43 48 52 29 3b 0d |esource(|hKCHR);.|
|00001250| 09 09 09 09 7d 65 6c 73 | 65 20 69 66 28 28 65 76 |....}els|e if((ev|
|00001260| 65 6e 74 2d 3e 6d 65 73 | 73 61 67 65 26 63 68 61 |ent->mes|sage&cha|
|00001270| 72 43 6f 64 65 4d 61 73 | 6b 29 20 3d 3d 20 27 2e |rCodeMas|k) == '.|
|00001280| 27 29 69 73 43 6d 64 50 | 65 72 69 6f 64 3d 54 52 |')isCmdP|eriod=TR|
|00001290| 55 45 3b 0d 09 09 09 09 | 69 66 28 69 73 43 6d 64 |UE;.....|if(isCmd|
|000012a0| 50 65 72 69 6f 64 29 70 | 65 72 69 6f 64 3d 65 76 |Period)p|eriod=ev|
|000012b0| 65 6e 74 2d 3e 6d 65 73 | 73 61 67 65 26 63 68 61 |ent->mes|sage&cha|
|000012c0| 72 43 6f 64 65 4d 61 73 | 6b 3b 0d 09 09 09 7d 0d |rCodeMas|k;....}.|
|000012d0| 09 09 09 72 65 74 75 72 | 6e 20 69 73 43 6d 64 50 |...retur|n isCmdP|
|000012e0| 65 72 69 6f 64 3b 0d 09 | 09 7d 0d 09 7d 0d 7d 0d |eriod;..|.}..}.}.|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 01 00 00 00 02 c4 | 00 00 01 c4 00 00 00 66 |........|.......f|
|00001310| 20 f1 d4 ec 3c d0 02 b3 | 4a 2e fe 93 f0 84 b0 7f | ...<...|J.......|
|00001320| f1 c9 35 1e 50 4f 4e 40 | 01 d0 08 30 30 30 31 81 |..5.PON@|...0001.|
|00001330| 0d 49 73 43 6d 64 50 65 | 72 69 6f 64 2e 63 02 00 |.IsCmdPe|riod.c..|
|00001340| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 50 02 a0 |..TEXTCW|IE...P..|
|00001350| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 50 02 a0 |..TEXTCW|IE...P..|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 a8 4e 47 3e 00 00 | 12 70 00 00 03 2a 53 db |...NG>..|.p...*S.|
|00001380| 40 49 42 2d b3 63 59 4f | b1 5b 01 30 e6 ff ec d5 |@IB-.cYO|.[.0....|
|00001390| 57 fd d0 70 5a ac 49 15 | 00 40 c0 4a 10 61 67 08 |W..pZ.I.|.@.J.ag.|
|000013a0| 50 3a a7 00 1d 32 90 88 | d2 41 de fe ac a8 04 18 |P:...2..|.A......|
|000013b0| 80 10 b0 1a 53 00 66 16 | 55 4f 42 27 91 7a c7 97 |....S.f.|UOB'.z..|
|000013c0| 10 1f 44 18 49 00 67 7e | 50 2e e1 58 2e fe ac e5 |..D.I.g~|P..X....|
|000013d0| 46 fd d6 39 66 fc d0 90 | 7a e0 f3 a8 10 76 f0 24 |F..9f...|z....v.$|
|000013e0| fb d0 50 19 20 4e a3 84 | 90 55 7a 00 6e a0 01 2c |..P. N..|.Uz.n..,|
|000013f0| 10 76 64 d0 1d 9a 53 06 | d0 23 2a 35 60 a1 9c fe |.vd...S.|.#*5`...|
|00001400| 00 00 01 52 00 28 00 1e | 02 21 01 3c 00 18 00 00 |...R.(..|.!.<....|
|00001410| 04 d7 00 00 04 e7 00 00 | 00 25 00 04 00 09 00 00 |........|.%......|
|00001420| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|00001430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 04 00 00 03 00 00 00 48 | 00 48 00 00 00 00 02 da |.......H|.H......|
|00001470| 02 28 ff e1 ff e2 02 f9 | 02 46 03 47 05 28 03 fc |.(......|.F.G.(..|
|00001480| 00 02 00 00 00 48 00 48 | 00 00 00 00 02 da 02 28 |.....H.H|.......(|
|00001490| 00 01 00 00 00 64 00 00 | 00 01 00 01 01 01 00 00 |.....d..|........|
|000014a0| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........|
|000014b0| 00 00 00 00 00 02 00 19 | 01 90 00 00 00 00 00 40 |........|.......@|
|000014c0| 00 00 00 00 00 00 00 00 | 00 01 00 00 00 00 00 00 |........|........|
|000014d0| 00 00 00 00 00 00 00 00 | 00 00 00 04 00 09 00 00 |........|........|
|000014e0| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001520| 00 04 01 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 16 00 01 00 00 07 d3 |........|........|
|00001560| 00 00 07 de 0b 49 73 43 | 6d 64 50 65 72 69 6f 64 |.....IsC|mdPeriod|
|00001570| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001590| 00 00 00 00 00 00 00 03 | 00 04 00 7c 00 60 02 65 |........|...|.`.e|
|000015a0| 02 ff 00 7c 00 60 02 65 | 02 ff ad dc 40 db 00 00 |...|.`.e|....@...|
|000015b0| 0d 82 00 00 0d 82 00 00 | 09 e1 00 00 00 00 00 04 |........|........|
|000015c0| 00 01 00 01 00 00 01 00 | 00 00 02 c4 00 00 01 c4 |........|........|
|000015d0| 00 00 00 66 01 0b 9a 98 | 3b dc 00 00 00 1c 00 66 |...f....|;......f|
|000015e0| 00 02 42 42 53 52 00 00 | 00 1a 4d 50 53 52 00 01 |..BBSR..|..MPSR..|
|000015f0| 00 26 4d 57 42 42 00 00 | 00 3e 01 03 ff ff 00 00 |.&MWBB..|.>......|
|00001600| 00 00 00 00 00 00 03 ef | ff ff 00 00 01 56 00 00 |........|.....V..|
|00001610| 00 00 03 ed ff ff 00 00 | 01 70 00 00 00 00 03 f0 |........|.p......|
|00001620| ff ff 00 00 01 bc 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+