home *** CD-ROM | disk | FTP | other *** search
/ Ultra Gameplayers 101 / Ultra Game Players Magazine, No. 101 - September 1997 (Imagine Publishing, Inc.)(1997).iso / mac / XTRAS / MasterApp XObject next >
MacBinary  |  1997-03-02  |  59.9 KB  |  [XOBJ/MD93]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: MasterApp XObject

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sat Mar 1 23:02:40 1997, modified Sat Mar 1 23:13:14 1997, creator 'MD93', type 'XOBJ' "MasterApp XObject", at 0x80 61173 bytes resource Mac OSX datafork font, 'vers', map offset 0xee99, map length 0x5c, data length 0xed99, nextResourceMap 0x2672484, fileRef 0x1bea, list offset 0x1c, name offset 0x52, 2 types, 0x76657273 'vers' * 2 resource offset 0x12 default (weak)
99% file Adobe Photoshop Color swatch, version 0, 256 colors; 1st RGB space (0), w 0xee99, x 0, y 0xed99, z 0 ; 2nd space (92), w 0, x 0, y 0, z 0 default (weak)
98% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[XOBJ]
macFileCreator[MD93]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 4d 61 73 74 65 72 | 41 70 70 20 58 4f 62 6a |..Master|App XObj|
|00000010| 65 63 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ect.....|........|
|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 58 4f 42 4a 4d 44 39 | 33 01 00 00 00 00 00 00 |.XOBJMD9|3.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 ee f5 af 3e ac 60 af |........|....>.`.|
|00000060| 3e ae da 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |>.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 81 39 00 00 |........|.....9..|
|00000080| 00 00 01 00 00 00 ee 99 | 00 00 ed 99 00 00 00 5c |........|.......\|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 11 4d 61 73 74 65 72 41 | 70 70 20 58 4f 62 6a 65 |.MasterA|pp XObje|
|000000c0| 63 74 02 00 00 00 58 4f | 42 4a 4d 44 39 33 01 00 |ct....XO|BJMD93..|
|000000d0| 00 00 58 4f 42 4a 4d 44 | 39 33 01 00 ff ff ff ff |..XOBJMD|93......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 af 3e ac 60 00 00 | 00 00 00 00 ee f5 00 00 |...>.`..|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 42 00 50 60 00 | 00 00 04 30 2e 35 30 36 |...B.P`.|...0.506|
|00000190| 30 2e 35 30 2c 20 a9 20 | 31 39 39 36 2d 31 39 39 |0.50, . |1996-199|
|000001a0| 37 20 47 6c 65 6e 6e 20 | 4d 2e 20 50 69 63 68 65 |7 Glenn |M. Piche|
|000001b0| 72 20 28 72 65 67 69 73 | 74 65 72 65 64 20 76 65 |r (regis|tered ve|
|000001c0| 72 73 69 6f 6e 29 00 00 | 00 23 00 50 60 00 00 00 |rsion)..|.#.P`...|
|000001d0| 04 30 2e 35 30 17 44 69 | 72 69 67 6f 20 4d 75 6c |.0.50.Di|rigo Mul|
|000001e0| 74 69 6d 65 64 69 61 20 | 74 6f 6f 6c 73 00 00 ed |timedia |tools...|
|000001f0| 28 60 00 6c 46 00 00 00 | 00 00 00 00 00 2a 2d 2d |(`.lF...|.....*--|
|00000200| 20 4d 61 73 74 65 72 41 | 70 70 20 58 4f 62 6a 65 | MasterA|pp XObje|
|00000210| 63 74 2c 20 76 65 72 73 | 69 6f 6e 20 30 2e 35 30 |ct, vers|ion 0.50|
|00000220| 2c 20 33 2f 31 2f 39 37 | 3c 2d 2d 20 43 6f 70 79 |, 3/1/97|<-- Copy|
|00000230| 72 69 67 68 74 20 a9 20 | 31 39 39 36 2d 31 39 39 |right . |1996-199|
|00000240| 37 2c 20 47 6c 65 6e 6e | 20 4d 2e 20 50 69 63 68 |7, Glenn| M. Pich|
|00000250| 65 72 2c 20 44 69 72 69 | 67 6f 20 4d 75 6c 74 69 |er, Diri|go Multi|
|00000260| 6d 65 64 69 61 47 2d 2d | 20 68 74 74 70 3a 2f 2f |mediaG--| http://|
|00000270| 77 77 77 2e 6d 61 69 6e | 65 2e 63 6f 6d 2f 73 68 |www.main|e.com/sh|
|00000280| 6f 70 73 2f 67 70 69 63 | 68 65 72 2c 20 67 70 69 |ops/gpic|her, gpi|
|00000290| 63 68 65 72 40 6d 61 69 | 6e 65 2e 63 6f 6d 2c 20 |cher@mai|ne.com, |
|000002a0| 28 32 30 37 29 37 36 37 | 2d 38 30 31 35 03 2d 2d |(207)767|-8015.--|
|000002b0| 20 51 2d 2d 20 52 65 6c | 65 61 73 61 62 6c 65 20 | Q-- Rel|easable |
|000002c0| 62 65 74 61 20 76 65 72 | 73 69 6f 6e 2e 20 43 6f |beta ver|sion. Co|
|000002d0| 6e 74 61 63 74 20 67 2f | 6d 61 74 74 65 72 2c 20 |ntact g/|matter, |
|000002e0| 69 6e 63 2e 20 66 6f 72 | 20 6c 69 63 65 6e 73 69 |inc. for| licensi|
|000002f0| 6e 67 20 6f 72 20 74 65 | 63 68 20 73 75 70 70 6f |ng or te|ch suppo|
|00000300| 72 74 3a 43 2d 2d 20 68 | 74 74 70 3a 2f 2f 77 77 |rt:C-- h|ttp://ww|
|00000310| 77 2e 67 6d 61 74 74 65 | 72 2e 63 6f 6d 2c 20 73 |w.gmatte|r.com, s|
|00000320| 61 6c 65 73 40 67 6d 61 | 74 74 65 72 2e 63 6f 6d |ales@gma|tter.com|
|00000330| 2c 20 73 75 70 70 6f 72 | 74 40 67 6d 61 74 74 65 |, suppor|t@gmatte|
|00000340| 72 2e 63 6f 6d 20 2e 02 | 2d 2d 06 49 20 6d 4e 65 |r.com ..|--.I mNe|
|00000350| 77 1b 2d 2d 20 53 74 61 | 6e 64 61 72 64 20 63 72 |w.-- Sta|ndard cr|
|00000360| 65 61 74 69 6f 6e 20 6d | 65 74 68 6f 64 02 2d 2d |eation m|ethod.--|
|00000370| 0a 58 20 6d 44 69 73 70 | 6f 73 65 1a 2d 2d 20 53 |.X mDisp|ose.-- S|
|00000380| 74 61 6e 64 61 72 64 20 | 64 69 73 70 6f 73 65 20 |tandard |dispose |
|00000390| 6d 65 74 68 6f 64 02 2d | 2d 40 2d 2d 20 4e 6f 74 |method.-|-@-- Not|
|000003a0| 65 3a 20 43 68 65 63 6b | 20 61 6c 6c 20 73 74 72 |e: Check| all str|
|000003b0| 69 6e 67 2d 72 65 74 75 | 72 6e 69 6e 67 20 6d 65 |ing-retu|rning me|
|000003c0| 74 68 6f 64 73 20 66 6f | 72 20 77 6f 72 64 20 31 |thods fo|r word 1|
|000003d0| 20 27 45 72 72 6f 72 3a | 27 2c 2c 2d 2d 20 66 6f | 'Error:|',,-- fo|
|000003e0| 6c 6c 6f 77 65 64 20 62 | 79 20 61 20 64 65 73 63 |llowed b|y a desc|
|000003f0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 70 |ription |of the p|
|00000400| 72 6f 62 6c 65 6d 2e 02 | 2d 2d 11 2d 2d 20 54 41 |roblem..|--.-- TA|
|00000410| 53 4b 20 46 55 4e 43 54 | 49 4f 4e 53 11 2d 2d 20 |SK FUNCT|IONS.-- |
|00000420| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 4d 2d |--------|------M-|
|00000430| 2d 20 4e 6f 74 65 3a 20 | 6f 6e 20 74 68 65 20 4d |- Note: |on the M|
|00000440| 61 63 2c 20 64 75 65 20 | 74 6f 20 61 72 63 68 69 |ac, due |to archi|
|00000450| 74 65 63 74 75 72 61 6c | 20 64 69 66 66 65 72 65 |tectural| differe|
|00000460| 6e 63 65 73 2c 20 74 61 | 73 6b 49 44 73 2c 20 6d |nces, ta|skIDs, m|
|00000470| 6f 64 75 6c 65 49 44 73 | 20 61 6e 64 55 2d 2d 20 |oduleIDs| andU-- |
|00000480| 69 6e 73 74 61 6e 63 65 | 49 44 73 20 61 72 65 20 |instance|IDs are |
|00000490| 69 6e 74 65 72 63 68 61 | 6e 67 65 61 62 6c 65 2e |intercha|ngeable.|
|000004a0| 20 54 68 65 79 20 61 72 | 65 20 64 69 73 74 69 6e | They ar|e distin|
|000004b0| 63 74 6c 79 20 64 69 66 | 66 65 72 65 6e 74 20 6e |ctly dif|ferent n|
|000004c0| 75 6d 62 65 72 73 20 6f | 6e 20 57 69 6e 64 6f 77 |umbers o|n Window|
|000004d0| 73 2e 02 2d 2d 0e 53 20 | 6d 47 65 74 54 61 73 6b |s..--.S |mGetTask|
|000004e0| 4c 69 73 74 46 2d 2d 20 | 52 65 74 75 72 6e 73 20 |ListF-- |Returns |
|000004f0| 61 20 73 74 72 69 6e 67 | 20 6f 66 20 61 6c 6c 20 |a string| of all |
|00000500| 63 75 72 72 65 6e 74 6c | 79 20 72 75 6e 6e 69 6e |currentl|y runnin|
|00000510| 67 20 74 61 73 6b 73 2c | 20 77 69 74 68 20 74 68 |g tasks,| with th|
|00000520| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 2a 2d 2d 20 69 |e follow|ing*-- i|
|00000530| 6e 66 6f 20 6f 6e 20 65 | 61 63 68 20 6c 69 6e 65 |nfo on e|ach line|
|00000540| 2c 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 63 |, separa|ted by c|
|00000550| 6f 6d 6d 61 73 3a 39 2d | 2d 20 20 20 74 61 73 6b |ommas:9-|- task|
|00000560| 4e 61 6d 65 2c 20 74 61 | 73 6b 49 44 2c 20 70 61 |Name, ta|skID, pa|
|00000570| 72 65 6e 74 54 61 73 6b | 49 44 2c 20 69 6e 73 74 |rentTask|ID, inst|
|00000580| 61 6e 63 65 49 44 2c 20 | 6d 6f 64 75 6c 65 49 44 |anceID, |moduleID|
|00000590| 3d 2d 2d 20 4f 6e 20 74 | 68 65 20 4d 61 63 2c 20 |=-- On t|he Mac, |
|000005a0| 74 61 73 6b 49 44 2c 20 | 69 6e 73 74 61 6e 63 65 |taskID, |instance|
|000005b0| 49 44 20 61 6e 64 20 6d | 6f 64 75 6c 65 49 44 20 |ID and m|oduleID |
|000005c0| 61 72 65 20 69 64 65 6e | 74 69 63 61 6c 2e 45 2d |are iden|tical.E-|
|000005d0| 2d 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 74 61 |- On the| Mac, ta|
|000005e0| 73 6b 49 44 73 20 61 72 | 65 20 75 6e 69 71 75 65 |skIDs ar|e unique|
|000005f0| 20 74 6f 20 65 61 63 68 | 20 4d 61 73 74 65 72 41 | to each| MasterA|
|00000600| 70 70 20 58 4f 62 6a 65 | 63 74 20 69 6e 73 74 61 |pp XObje|ct insta|
|00000610| 6e 63 65 2c 4b 2d 2d 20 | 62 65 63 61 75 73 65 20 |nce,K-- |because |
|00000620| 74 61 73 6b 49 44 73 20 | 61 72 65 20 6d 61 69 6e |taskIDs |are main|
|00000630| 74 61 69 6e 65 64 20 62 | 79 20 4d 61 73 74 65 72 |tained b|y Master|
|00000640| 41 70 70 2c 20 6e 6f 74 | 20 62 79 20 74 68 65 20 |App, not| by the |
|00000650| 73 79 73 74 65 6d 20 73 | 6f 66 74 77 61 72 65 2e |system s|oftware.|
|00000660| 3b 2d 2d 20 44 6f 20 6e | 6f 74 20 75 73 65 20 6f |;-- Do n|ot use o|
|00000670| 6e 65 20 69 6e 73 74 61 | 6e 63 65 27 73 20 74 61 |ne insta|nce's ta|
|00000680| 73 6b 49 44 73 20 77 69 | 74 68 20 61 6e 6f 74 68 |skIDs wi|th anoth|
|00000690| 65 72 20 69 6e 73 74 61 | 6e 63 65 2e 48 2d 2d 20 |er insta|nce.H-- |
|000006a0| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 6f 6e 6c 79 |On the M|ac, only|
|000006b0| 20 74 68 65 20 46 69 6e | 64 65 72 20 68 61 73 20 | the Fin|der has |
|000006c0| 30 20 66 6f 72 20 70 61 | 72 65 6e 74 54 61 73 6b |0 for pa|rentTask|
|000006d0| 49 44 2e 20 41 6c 6c 20 | 6f 74 68 65 72 20 74 61 |ID. All |other ta|
|000006e0| 73 6b 49 44 73 4a 2d 2d | 20 61 72 65 20 70 6f 73 |skIDsJ--| are pos|
|000006f0| 69 74 69 76 65 20 69 6e | 74 65 67 65 72 73 20 33 |itive in|tegers 3|
|00000700| 32 20 6f 72 20 68 69 67 | 68 65 72 3b 20 61 6e 79 |2 or hig|her; any|
|00000710| 20 6f 74 68 65 72 20 76 | 61 6c 75 65 20 69 6e 64 | other v|alue ind|
|00000720| 69 63 61 74 65 73 20 61 | 6e 20 65 72 72 6f 72 2e |icates a|n error.|
|00000730| 43 2d 2d 20 42 65 77 61 | 72 65 20 6f 66 20 74 61 |C-- Bewa|re of ta|
|00000740| 73 6b 4e 61 6d 65 73 20 | 63 6f 6e 74 61 69 6e 69 |skNames |containi|
|00000750| 6e 67 20 63 6f 6d 6d 61 | 73 20 77 68 65 6e 20 69 |ng comma|s when i|
|00000760| 6e 74 65 72 70 72 65 74 | 69 6e 67 20 72 65 73 75 |nterpret|ing resu|
|00000770| 6c 74 73 21 0d 53 20 6d | 47 65 74 54 61 73 6b 49 |lts!.S m|GetTaskI|
|00000780| 44 73 46 2d 2d 20 52 65 | 74 75 72 6e 73 20 61 20 |DsF-- Re|turns a |
|00000790| 73 74 72 69 6e 67 20 6f | 66 20 74 68 65 20 74 61 |string o|f the ta|
|000007a0| 73 6b 49 44 73 20 6f 66 | 20 61 6c 6c 20 63 75 72 |skIDs of| all cur|
|000007b0| 72 65 6e 74 6c 79 20 72 | 75 6e 6e 69 6e 67 20 74 |rently r|unning t|
|000007c0| 61 73 6b 73 2c 20 61 6c | 6c 4c 2d 2d 20 6f 6e 20 |asks, al|lL-- on |
|000007d0| 6f 6e 65 20 6c 69 6e 65 | 2c 20 73 65 70 61 72 61 |one line|, separa|
|000007e0| 74 65 64 20 62 79 20 73 | 70 61 63 65 73 2e 20 55 |ted by s|paces. U|
|000007f0| 73 65 20 27 77 6f 72 64 | 27 20 74 6f 20 77 61 6c |se 'word|' to wal|
|00000800| 6b 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 72 65 |k throug|h the re|
|00000810| 73 75 6c 74 73 2e 4a 2d | 2d 20 54 68 69 73 20 69 |sults.J-|- This i|
|00000820| 73 20 6d 6f 72 65 20 70 | 72 65 63 69 73 65 20 74 |s more p|recise t|
|00000830| 68 61 6e 20 6d 47 65 74 | 54 61 73 6b 4c 69 73 74 |han mGet|TaskList|
|00000840| 2c 20 62 65 63 61 75 73 | 65 20 61 20 74 61 73 6b |, becaus|e a task|
|00000850| 4e 61 6d 65 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |Name con|taining |
|00000860| 61 4c 2d 2d 20 63 6f 6d | 6d 61 20 77 6f 6e 27 74 |aL-- com|ma won't|
|00000870| 20 61 66 66 65 63 74 20 | 74 68 65 20 70 6f 73 69 | affect |the posi|
|00000880| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 72 65 73 75 |tion of |the resu|
|00000890| 6c 74 73 2e 20 53 65 65 | 20 6d 47 65 74 54 61 73 |lts. See| mGetTas|
|000008a0| 6b 4c 69 73 74 20 66 6f | 72 20 6d 6f 72 65 36 2d |kList fo|r more6-|
|000008b0| 2d 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |- inform|ation ab|
|000008c0| 6f 75 74 20 4d 61 63 2d | 73 70 65 63 69 66 69 63 |out Mac-|specific|
|000008d0| 20 69 73 73 75 65 73 20 | 77 69 74 68 20 74 61 73 | issues |with tas|
|000008e0| 6b 49 44 73 2e 14 53 49 | 20 6d 54 61 73 6b 4e 61 |kIDs..SI| mTaskNa|
|000008f0| 6d 65 2c 20 74 61 73 6b | 49 44 51 2d 2d 20 52 65 |me, task|IDQ-- Re|
|00000900| 74 75 72 6e 73 20 69 6e | 74 65 72 6e 61 6c 20 6e |turns in|ternal n|
|00000910| 61 6d 65 20 66 6f 72 20 | 61 20 74 61 73 6b 49 44 |ame for |a taskID|
|00000920| 2e 20 4f 6e 20 74 68 65 | 20 4d 61 63 2c 20 69 66 |. On the| Mac, if|
|00000930| 20 74 68 65 20 74 61 73 | 6b 20 69 73 20 61 6e 20 | the tas|k is an |
|00000940| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 4d 2d 2d 20 |applicat|ion,M-- |
|00000950| 74 68 69 73 20 69 73 20 | 74 68 65 20 73 61 6d 65 |this is |the same|
|00000960| 20 74 65 78 74 20 74 68 | 61 74 27 73 20 64 69 73 | text th|at's dis|
|00000970| 70 6c 61 79 65 64 20 6f | 6e 20 74 68 65 20 61 70 |played o|n the ap|
|00000980| 70 6c 69 63 61 74 69 6f | 6e 73 20 70 75 6c 6c 2d |plicatio|ns pull-|
|00000990| 64 6f 77 6e 20 6d 65 6e | 75 2e 3c 2d 2d 20 55 73 |down men|u.<-- Us|
|000009a0| 65 20 6d 4d 6f 64 75 6c | 65 46 69 6c 65 4e 61 6d |e mModul|eFileNam|
|000009b0| 65 20 74 6f 20 67 65 74 | 20 74 68 65 20 66 75 6c |e to get| the ful|
|000009c0| 6c 20 66 69 6c 65 6e 61 | 6d 65 20 6f 66 20 74 68 |l filena|me of th|
|000009d0| 65 20 74 61 73 6b 2e 16 | 49 49 20 6d 54 61 73 6b |e task..|II mTask|
|000009e0| 50 61 72 65 6e 74 2c 20 | 74 61 73 6b 49 44 22 2d |Parent, |taskID"-|
|000009f0| 2d 20 52 65 74 75 72 6e | 73 20 74 68 65 20 74 61 |- Return|s the ta|
|00000a00| 73 6b 27 73 20 70 61 72 | 65 6e 74 20 74 61 73 6b |sk's par|ent task|
|00000a10| 2e 18 49 49 20 6d 54 61 | 73 6b 49 6e 73 74 61 6e |..II mTa|skInstan|
|00000a20| 63 65 2c 20 74 61 73 6b | 49 44 53 2d 2d 20 52 65 |ce, task|IDS-- Re|
|00000a30| 74 75 72 6e 73 20 61 20 | 74 61 73 6b 27 73 20 69 |turns a |task's i|
|00000a40| 6e 73 74 61 6e 63 65 49 | 44 2e 20 4f 6e 20 74 68 |nstanceI|D. On th|
|00000a50| 65 20 4d 61 63 2c 20 74 | 68 65 20 74 61 73 6b 49 |e Mac, t|he taskI|
|00000a60| 44 20 61 6e 64 20 69 6e | 73 74 61 6e 63 65 49 44 |D and in|stanceID|
|00000a70| 20 61 72 65 20 74 68 65 | 20 73 61 6d 65 2e 47 2d | are the| same.G-|
|00000a80| 2d 20 52 65 74 75 72 6e | 73 20 74 68 65 20 73 61 |- Return|s the sa|
|00000a90| 6d 65 20 49 44 20 70 72 | 6f 76 69 64 65 64 2c 20 |me ID pr|ovided, |
|00000aa0| 6f 72 20 30 20 69 66 20 | 74 68 65 20 74 61 73 6b |or 0 if |the task|
|00000ab0| 49 44 20 69 73 20 6e 6f | 20 6c 6f 6e 67 65 72 20 |ID is no| longer |
|00000ac0| 76 61 6c 69 64 2e 16 49 | 49 20 6d 54 61 73 6b 4d |valid..I|I mTaskM|
|00000ad0| 6f 64 75 6c 65 2c 20 74 | 61 73 6b 49 44 4f 2d 2d |odule, t|askIDO--|
|00000ae0| 20 52 65 74 75 72 6e 73 | 20 61 20 74 61 73 6b 27 | Returns| a task'|
|00000af0| 73 20 6d 6f 64 75 6c 65 | 49 44 2e 20 4f 6e 20 74 |s module|ID. On t|
|00000b00| 68 65 20 4d 61 63 2c 20 | 74 68 65 20 74 61 73 6b |he Mac, |the task|
|00000b10| 49 44 20 61 6e 64 20 6d | 6f 64 75 6c 65 49 44 20 |ID and m|oduleID |
|00000b20| 61 72 65 20 74 68 65 20 | 73 61 6d 65 2e 47 2d 2d |are the |same.G--|
|00000b30| 20 52 65 74 75 72 6e 73 | 20 74 68 65 20 73 61 6d | Returns| the sam|
|00000b40| 65 20 49 44 20 70 72 6f | 76 69 64 65 64 2c 20 6f |e ID pro|vided, o|
|00000b50| 72 20 30 20 69 66 20 74 | 68 65 20 74 61 73 6b 49 |r 0 if t|he taskI|
|00000b60| 44 20 69 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 76 |D is no |longer v|
|00000b70| 61 6c 69 64 2e 16 49 49 | 20 6d 54 61 73 6b 45 76 |alid..II| mTaskEv|
|00000b80| 65 6e 74 73 2c 20 74 61 | 73 6b 49 44 4c 2d 2d 20 |ents, ta|skIDL-- |
|00000b90| 52 65 74 75 72 6e 73 20 | 74 68 65 20 6e 75 6d 62 |Returns |the numb|
|00000ba0| 65 72 20 6f 66 20 65 76 | 65 6e 74 73 20 77 61 69 |er of ev|ents wai|
|00000bb0| 74 69 6e 67 20 66 6f 72 | 20 74 68 65 20 74 61 73 |ting for| the tas|
|00000bc0| 6b 20 74 6f 20 70 72 6f | 63 65 73 73 2e 20 4f 6e |k to pro|cess. On|
|00000bd0| 20 74 68 65 20 4d 61 63 | 2c 4c 2d 2d 20 74 68 69 | the Mac|,L-- thi|
|00000be0| 73 20 6e 65 76 65 72 20 | 72 65 74 75 72 6e 73 20 |s never |returns |
|00000bf0| 6d 6f 72 65 20 74 68 61 | 6e 20 31 2c 20 61 6e 64 |more tha|n 1, and|
|00000c00| 20 61 6c 77 61 79 73 20 | 72 65 74 75 72 6e 73 20 | always |returns |
|00000c10| 30 20 66 6f 72 20 74 61 | 73 6b 73 20 6f 74 68 65 |0 for ta|sks othe|
|00000c20| 72 20 74 68 61 6e 4a 2d | 2d 20 74 68 65 20 44 69 |r thanJ-|- the Di|
|00000c30| 72 65 63 74 6f 72 20 74 | 61 73 6b 20 69 74 73 65 |rector t|ask itse|
|00000c40| 6c 66 20 28 62 65 63 61 | 75 73 65 20 6f 66 20 64 |lf (beca|use of d|
|00000c50| 69 66 66 65 72 65 6e 63 | 65 73 20 69 6e 20 74 68 |ifferenc|es in th|
|00000c60| 65 20 4d 61 63 20 61 6e | 64 20 57 69 6e 64 6f 77 |e Mac an|d Window|
|00000c70| 73 43 2d 2d 20 65 76 65 | 6e 74 20 70 72 6f 63 65 |sC-- eve|nt proce|
|00000c80| 73 73 69 6e 67 20 61 72 | 63 68 69 74 65 63 74 75 |ssing ar|chitectu|
|00000c90| 72 65 29 2e 20 52 65 74 | 75 72 6e 73 20 2d 31 20 |re). Ret|urns -1 |
|00000ca0| 69 66 20 74 61 73 6b 49 | 44 20 69 73 20 69 6e 76 |if taskI|D is inv|
|00000cb0| 61 6c 69 64 2e 1d 53 49 | 20 6d 47 65 74 54 61 73 |alid..SI| mGetTas|
|00000cc0| 6b 57 69 6e 64 6f 77 4c | 69 73 74 2c 20 74 61 73 |kWindowL|ist, tas|
|00000cd0| 6b 49 44 4c 2d 2d 20 47 | 65 74 20 61 20 6c 69 73 |kIDL-- G|et a lis|
|00000ce0| 74 20 6f 66 20 61 6c 6c | 20 77 69 6e 64 6f 77 73 |t of all| windows|
|00000cf0| 20 6f 77 6e 65 64 20 62 | 79 20 74 68 65 20 74 61 | owned b|y the ta|
|00000d00| 73 6b 2c 20 6f 6e 65 20 | 70 65 72 20 6c 69 6e 65 |sk, one |per line|
|00000d10| 2c 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 61 74 3a |, in the| format:|
|00000d20| 42 2d 2d 20 20 20 77 69 | 6e 64 6f 77 4e 61 6d 65 |B-- wi|ndowName|
|00000d30| 2c 20 77 69 6e 64 6f 77 | 49 44 2c 20 70 61 72 65 |, window|ID, pare|
|00000d40| 6e 74 57 69 6e 64 6f 77 | 49 44 2c 20 68 61 73 43 |ntWindow|ID, hasC|
|00000d50| 68 69 6c 64 72 65 6e 2c | 20 77 69 6e 64 6f 77 54 |hildren,| windowT|
|00000d60| 79 70 65 49 2d 2d 20 4f | 6e 20 74 68 65 20 4d 61 |ypeI-- O|n the Ma|
|00000d70| 63 2c 20 70 61 72 65 6e | 74 57 69 6e 64 6f 77 49 |c, paren|tWindowI|
|00000d80| 44 20 69 73 20 61 6c 77 | 61 79 73 20 30 2e 20 42 |D is alw|ays 0. B|
|00000d90| 65 63 61 75 73 65 20 77 | 69 6e 64 6f 77 4e 61 6d |ecause w|indowNam|
|00000da0| 65 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 48 2d 2d |e may co|ntainH--|
|00000db0| 20 63 6f 6d 6d 61 73 2c | 20 6d 47 65 74 54 61 73 | commas,| mGetTas|
|00000dc0| 6b 57 69 6e 64 6f 77 49 | 44 73 20 69 73 20 61 20 |kWindowI|Ds is a |
|00000dd0| 6d 6f 72 65 20 62 75 6c | 6c 65 74 70 72 6f 6f 66 |more bul|letproof|
|00000de0| 20 6d 65 74 68 6f 64 20 | 6f 66 20 69 64 65 6e 74 | method |of ident|
|00000df0| 69 66 79 69 6e 67 0f 2d | 2d 20 61 6c 6c 20 77 69 |ifying.-|- all wi|
|00000e00| 6e 64 6f 77 73 2e 16 58 | 20 6d 44 6f 6e 74 55 73 |ndows..X| mDontUs|
|00000e10| 65 4c 61 79 65 72 4d 61 | 6e 61 67 65 72 12 58 20 |eLayerMa|nager.X |
|00000e20| 6d 55 73 65 4c 61 79 65 | 72 4d 61 6e 61 67 65 72 |mUseLaye|rManager|
|00000e30| 4d 2d 2d 20 44 69 73 61 | 6c 6c 6f 77 20 6f 72 20 |M-- Disa|llow or |
|00000e40| 61 6c 6c 6f 77 20 75 73 | 65 20 6f 66 20 74 68 65 |allow us|e of the|
|00000e50| 20 75 6e 64 6f 63 75 6d | 65 6e 74 65 64 20 4c 61 | undocum|ented La|
|00000e60| 79 65 72 20 4d 61 6e 61 | 67 65 72 20 69 6e 20 64 |yer Mana|ger in d|
|00000e70| 65 74 65 63 74 69 6e 67 | 20 6f 74 68 65 72 53 2d |etecting| otherS-|
|00000e80| 2d 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 27 20 |- applic|ations' |
|00000e90| 77 69 6e 64 6f 77 73 2e | 20 54 68 65 20 4c 61 79 |windows.| The Lay|
|00000ea0| 65 72 20 4d 61 6e 61 67 | 65 72 20 69 73 20 6c 69 |er Manag|er is li|
|00000eb0| 6b 65 6c 79 20 6e 6f 74 | 20 74 6f 20 77 6f 72 6b |kely not| to work|
|00000ec0| 20 77 69 74 68 20 66 75 | 74 75 72 65 20 4d 61 63 | with fu|ture Mac|
|00000ed0| 4f 53 53 2d 2d 20 6f 70 | 65 72 61 74 69 6e 67 20 |OSS-- op|erating |
|00000ee0| 73 79 73 74 65 6d 20 76 | 65 72 73 69 6f 6e 73 20 |system v|ersions |
|00000ef0| 28 53 79 73 74 65 6d 20 | 38 2e 30 20 26 20 6c 61 |(System |8.0 & la|
|00000f00| 74 65 72 2c 20 6f 72 20 | 4e 65 78 74 2f 4f 53 20 |ter, or |Next/OS |
|00000f10| 72 65 6c 65 61 73 65 73 | 29 2e 20 42 79 20 64 65 |releases|). By de|
|00000f20| 66 61 75 6c 74 2c 56 2d | 2d 20 75 73 65 20 6f 66 |fault,V-|- use of|
|00000f30| 20 74 68 65 20 4c 61 79 | 65 72 20 4d 61 6e 61 67 | the Lay|er Manag|
|00000f40| 65 72 20 69 73 20 61 6c | 6c 6f 77 65 64 20 69 66 |er is al|lowed if|
|00000f50| 20 74 68 65 20 73 79 73 | 74 65 6d 20 76 65 72 73 | the sys|tem vers|
|00000f60| 69 6f 6e 20 69 73 20 37 | 2e 31 20 6f 72 20 67 72 |ion is 7|.1 or gr|
|00000f70| 65 61 74 65 72 2c 20 62 | 75 74 20 69 73 50 2d 2d |eater, b|ut isP--|
|00000f80| 20 64 69 73 61 6c 6c 6f | 77 65 64 20 69 66 20 69 | disallo|wed if i|
|00000f90| 74 27 73 20 38 2e 30 20 | 6f 72 20 67 72 65 61 74 |t's 8.0 |or great|
|00000fa0| 65 72 2e 20 49 66 20 75 | 73 65 20 6f 66 20 74 68 |er. If u|se of th|
|00000fb0| 65 20 4c 61 79 65 72 20 | 4d 61 6e 61 67 65 72 20 |e Layer |Manager |
|00000fc0| 69 73 20 64 69 73 61 6c | 6c 6f 77 65 64 2c 51 2d |is disal|lowed,Q-|
|00000fd0| 2d 20 79 6f 75 20 63 61 | 6e 20 6f 6e 6c 79 20 64 |- you ca|n only d|
|00000fe0| 65 74 65 63 74 20 77 69 | 6e 64 6f 77 73 20 6f 66 |etect wi|ndows of|
|00000ff0| 20 74 68 65 20 44 69 72 | 65 63 74 6f 72 20 74 61 | the Dir|ector ta|
|00001000| 73 6b 20 69 74 73 65 6c | 66 2e 20 4f 6e 63 65 20 |sk itsel|f. Once |
|00001010| 38 2e 30 20 69 73 20 72 | 65 6c 65 61 73 65 64 2c |8.0 is r|eleased,|
|00001020| 3f 2d 2d 20 63 68 65 63 | 6b 20 66 6f 72 20 66 75 |?-- chec|k for fu|
|00001030| 74 75 72 65 20 72 65 6c | 65 61 73 65 73 20 6f 66 |ture rel|eases of|
|00001040| 20 74 68 69 73 20 58 4f | 62 6a 65 63 74 20 20 77 | this XO|bject w|
|00001050| 68 69 63 68 20 77 69 6c | 6c 20 64 65 74 65 63 74 |hich wil|l detect|
|00001060| 49 2d 2d 20 6f 74 68 65 | 72 20 61 70 70 27 73 20 |I-- othe|r app's |
|00001070| 77 69 6e 64 6f 77 73 20 | 61 63 63 6f 72 64 69 6e |windows |accordin|
|00001080| 67 20 74 6f 20 38 2e 30 | 20 73 70 65 63 69 66 69 |g to 8.0| specifi|
|00001090| 63 61 74 69 6f 6e 73 2e | 20 54 68 65 73 65 20 74 |cations.| These t|
|000010a0| 77 6f 20 6d 65 74 68 6f | 64 73 4f 2d 2d 20 61 72 |wo metho|dsO-- ar|
|000010b0| 65 20 70 72 6f 76 69 64 | 65 64 20 74 6f 20 61 6c |e provid|ed to al|
|000010c0| 6c 6f 77 20 79 6f 75 20 | 74 6f 20 6f 76 65 72 72 |low you |to overr|
|000010d0| 69 64 65 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 |ide the |default |
|000010e0| 62 65 68 61 76 69 6f 72 | 20 6f 66 20 2a 74 68 69 |behavior| of *thi|
|000010f0| 73 2a 20 76 65 72 73 69 | 6f 6e 4d 2d 2d 20 6f 66 |s* versi|onM-- of|
|00001100| 20 74 68 65 20 58 4f 62 | 6a 65 63 74 2c 20 77 68 | the XOb|ject, wh|
|00001110| 69 63 68 20 73 68 6f 75 | 6c 64 20 62 65 20 73 61 |ich shou|ld be sa|
|00001120| 66 65 2c 20 69 66 20 6e | 6f 74 20 66 75 6c 6c 79 |fe, if n|ot fully|
|00001130| 20 66 75 6e 63 74 69 6f | 6e 61 6c 2c 20 75 6e 64 | functio|nal, und|
|00001140| 65 72 20 38 2e 30 20 2e | 3f 2d 2d 20 54 68 65 73 |er 8.0 .|?-- Thes|
|00001150| 65 20 6d 65 74 68 6f 64 | 73 20 6f 6e 6c 79 20 65 |e method|s only e|
|00001160| 78 69 73 74 20 69 6e 20 | 74 68 65 20 4d 61 63 20 |xist in |the Mac |
|00001170| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 69 73 20 |version |of this |
|00001180| 58 4f 62 6a 65 63 74 2e | 1c 53 49 20 6d 47 65 74 |XObject.|.SI mGet|
|00001190| 54 61 73 6b 57 69 6e 64 | 6f 77 49 44 73 2c 20 74 |TaskWind|owIDs, t|
|000011a0| 61 73 6b 49 44 4c 2d 2d | 20 52 65 74 75 72 6e 73 |askIDL--| Returns|
|000011b0| 20 61 20 73 74 72 69 6e | 67 20 6f 66 20 74 68 65 | a strin|g of the|
|000011c0| 20 77 69 6e 64 6f 77 49 | 44 73 20 6f 66 20 61 6c | windowI|Ds of al|
|000011d0| 6c 20 74 68 65 20 74 61 | 73 6b 73 27 20 77 69 6e |l the ta|sks' win|
|000011e0| 64 6f 77 73 2c 20 6f 6e | 20 6f 6e 65 20 6c 69 6e |dows, on| one lin|
|000011f0| 65 2c 4c 2d 2d 20 73 65 | 70 61 72 61 74 65 64 20 |e,L-- se|parated |
|00001200| 62 79 20 73 70 61 63 65 | 73 2e 20 55 73 65 20 27 |by space|s. Use '|
|00001210| 77 6f 72 64 27 20 74 6f | 20 77 61 6c 6b 20 74 68 |word' to| walk th|
|00001220| 72 6f 75 67 68 20 74 68 | 65 20 72 65 73 75 6c 74 |rough th|e result|
|00001230| 73 2e 20 4d 6f 72 65 20 | 70 72 65 63 69 73 65 2d |s. More |precise-|
|00001240| 2d 2d 20 62 75 74 20 68 | 61 72 64 65 72 20 74 6f |-- but h|arder to|
|00001250| 20 75 73 65 20 74 68 61 | 6e 20 6d 47 65 74 54 61 | use tha|n mGetTa|
|00001260| 73 6b 57 69 6e 64 6f 77 | 4c 69 73 74 2e 1b 49 49 |skWindow|List..II|
|00001270| 20 6d 47 65 74 57 69 6e | 64 6f 77 54 61 73 6b 2c | mGetWin|dowTask,|
|00001280| 20 77 69 6e 64 6f 77 49 | 44 29 2d 2d 20 52 65 74 | windowI|D)-- Ret|
|00001290| 75 72 6e 73 20 74 68 65 | 20 74 61 73 6b 49 44 20 |urns the| taskID |
|000012a0| 66 6f 72 20 61 20 67 69 | 76 65 6e 20 77 69 6e 64 |for a gi|ven wind|
|000012b0| 6f 77 2e 24 49 49 49 20 | 6d 52 75 64 65 51 75 69 |ow.$III |mRudeQui|
|000012c0| 74 54 61 73 6b 2c 20 74 | 61 73 6b 49 44 2c 20 65 |tTask, t|askID, e|
|000012d0| 78 69 74 56 61 6c 75 65 | 51 2d 2d 20 46 6f 72 63 |xitValue|Q-- Forc|
|000012e0| 65 73 20 61 20 74 61 73 | 6b 20 74 6f 20 71 75 69 |es a tas|k to qui|
|000012f0| 74 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 65 |t. On th|e Mac, e|
|00001300| 78 69 74 56 61 6c 75 65 | 20 69 73 20 69 67 6e 6f |xitValue| is igno|
|00001310| 72 65 64 2e 20 54 68 69 | 73 20 6d 65 74 68 6f 64 |red. Thi|s method|
|00001320| 20 69 73 6e 27 74 20 61 | 6c 6c 4c 2d 2d 20 74 68 | isn't a|llL-- th|
|00001330| 61 74 20 72 75 64 65 20 | 6f 6e 20 74 68 65 20 4d |at rude |on the M|
|00001340| 61 63 2d 2d 20 69 74 20 | 73 65 6e 64 73 20 61 20 |ac-- it |sends a |
|00001350| 53 79 73 74 65 6d 2d 37 | 20 73 74 61 6e 64 61 72 |System-7| standar|
|00001360| 64 20 27 71 75 69 74 27 | 20 41 70 70 6c 65 45 76 |d 'quit'| AppleEv|
|00001370| 65 6e 74 20 28 6f 72 4e | 2d 2d 20 73 69 6d 75 6c |ent (orN|-- simul|
|00001380| 61 74 65 73 20 61 20 51 | 75 69 74 20 6d 65 6e 75 |ates a Q|uit menu|
|00001390| 20 63 68 6f 69 63 65 2c | 20 66 6f 72 20 70 72 65 | choice,| for pre|
|000013a0| 2d 53 79 73 74 65 6d 2d | 37 20 73 6f 66 74 77 61 |-System-|7 softwa|
|000013b0| 72 65 29 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 74 |re). Not|e that t|
|000013c0| 68 65 20 61 70 70 4b 2d | 2d 20 79 6f 75 27 72 65 |he appK-|- you're|
|000013d0| 20 74 72 79 69 6e 67 20 | 74 6f 20 71 75 69 74 20 | trying |to quit |
|000013e0| 6d 61 79 20 64 69 73 70 | 6c 61 79 20 61 20 27 64 |may disp|lay a 'd|
|000013f0| 6f 6e 27 74 20 73 61 76 | 65 27 2f 27 63 61 6e 63 |on't sav|e'/'canc|
|00001400| 65 6c 27 2f 27 73 61 76 | 65 27 20 64 69 61 6c 6f |el'/'sav|e' dialo|
|00001410| 67 2e 4f 2d 2d 20 4e 6f | 74 65 20 74 68 61 74 20 |g.O-- No|te that |
|00001420| 41 70 70 6c 65 53 63 72 | 69 70 74 20 69 73 20 2a |AppleScr|ipt is *|
|00001430| 6e 6f 74 2a 20 72 65 71 | 75 69 72 65 64 20 74 6f |not* req|uired to|
|00001440| 20 62 65 20 69 6e 73 74 | 61 6c 6c 65 64 20 74 6f | be inst|alled to|
|00001450| 20 73 65 6e 64 20 41 70 | 70 6c 65 45 76 65 6e 74 | send Ap|pleEvent|
|00001460| 73 2e 19 49 49 20 6d 54 | 61 73 6b 49 73 52 75 6e |s..II mT|askIsRun|
|00001470| 6e 69 6e 67 2c 20 74 61 | 73 6b 49 44 3b 2d 2d 20 |ning, ta|skID;-- |
|00001480| 52 65 74 75 72 6e 73 20 | 54 52 55 45 20 69 66 20 |Returns |TRUE if |
|00001490| 74 68 65 20 74 61 73 6b | 20 69 73 20 73 74 69 6c |the task| is stil|
|000014a0| 6c 20 72 75 6e 6e 69 6e | 67 2c 20 46 41 4c 53 45 |l runnin|g, FALSE|
|000014b0| 20 69 66 20 6e 6f 74 2e | 19 49 49 20 6d 46 65 65 | if not.|.II mFee|
|000014c0| 64 54 69 6d 65 53 6c 69 | 63 65 2c 20 74 61 73 6b |dTimeSli|ce, task|
|000014d0| 49 44 4c 2d 2d 20 57 61 | 6b 65 73 20 74 68 65 20 |IDL-- Wa|kes the |
|000014e0| 74 61 73 6b 20 75 70 2c | 20 61 6e 64 20 61 6c 6c |task up,| and all|
|000014f0| 6f 77 73 20 6f 74 68 65 | 72 20 74 61 73 6b 73 20 |ows othe|r tasks |
|00001500| 74 6f 20 72 75 6e 2e 20 | 4f 6e 20 74 68 65 20 4d |to run. |On the M|
|00001510| 61 63 2c 20 74 68 69 73 | 20 6d 65 74 68 6f 64 54 |ac, this| methodT|
|00001520| 2d 2d 20 64 6f 65 73 20 | 6e 6f 74 20 6e 65 63 65 |-- does |not nece|
|00001530| 73 73 61 72 69 6c 79 20 | 69 6e 73 75 72 65 20 74 |ssarily |insure t|
|00001540| 68 61 74 20 74 68 65 20 | 69 6e 64 69 63 61 74 65 |hat the |indicate|
|00001550| 64 20 74 61 73 6b 20 72 | 75 6e 73 20 6e 65 78 74 |d task r|uns next|
|00001560| 20 28 64 75 65 20 74 6f | 20 64 69 66 66 65 72 65 | (due to| differe|
|00001570| 6e 63 65 73 52 2d 2d 20 | 69 6e 20 65 76 65 6e 74 |ncesR-- |in event|
|00001580| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 61 72 63 68 | process|ing arch|
|00001590| 69 74 65 63 74 75 72 65 | 29 2c 20 62 75 74 20 69 |itecture|), but i|
|000015a0| 74 20 64 6f 65 73 20 6d | 61 6b 65 20 69 74 20 72 |t does m|ake it r|
|000015b0| 75 6e 20 61 73 20 73 6f | 6f 6e 20 61 73 20 70 6f |un as so|on as po|
|000015c0| 73 73 69 62 6c 65 2e 56 | 2d 2d 20 54 68 69 73 20 |ssible.V|-- This |
|000015d0| 6d 65 74 68 6f 64 20 6d | 61 79 20 62 65 20 6e 65 |method m|ay be ne|
|000015e0| 63 65 73 73 61 72 79 20 | 66 6f 72 20 61 70 70 73 |cessary |for apps|
|000015f0| 20 74 6f 20 70 72 6f 63 | 65 73 73 20 6d 65 73 73 | to proc|ess mess|
|00001600| 61 67 65 73 2e 20 45 73 | 70 65 63 69 61 6c 6c 79 |ages. Es|pecially|
|00001610| 20 75 73 65 66 75 6c 20 | 77 69 74 68 69 6e 57 2d | useful |withinW-|
|00001620| 2d 20 61 20 4c 69 6e 67 | 6f 20 72 65 70 65 61 74 |- a Ling|o repeat|
|00001630| 20 6c 6f 6f 70 2c 20 77 | 68 69 63 68 20 6e 6f 72 | loop, w|hich nor|
|00001640| 6d 61 6c 6c 79 20 6d 6f | 6e 6f 70 6f 6c 69 7a 65 |mally mo|nopolize|
|00001650| 73 20 61 6c 6c 20 74 69 | 6d 65 73 6c 69 63 65 73 |s all ti|meslices|
|00001660| 2e 20 52 65 74 75 72 6e | 73 20 65 72 72 6f 72 20 |. Return|s error |
|00001670| 63 6f 64 65 73 3a 4b 2d | 2d 20 2d 31 3a 20 69 6e |codes:K-|- -1: in|
|00001680| 76 61 6c 69 64 20 74 61 | 73 6b 49 44 3b 20 2d 32 |valid ta|skID; -2|
|00001690| 3a 20 74 61 73 6b 20 77 | 61 73 20 61 6c 72 65 61 |: task w|as alrea|
|000016a0| 64 79 20 72 75 6e 6e 69 | 6e 67 20 28 44 69 72 65 |dy runni|ng (Dire|
|000016b0| 63 74 6f 72 20 74 61 73 | 6b 20 69 74 73 65 6c 66 |ctor tas|k itself|
|000016c0| 29 3b 4c 2d 2d 20 30 3a | 20 6e 6f 20 65 72 72 6f |);L-- 0:| no erro|
|000016d0| 72 2e 20 50 6f 73 73 69 | 62 6c 65 20 73 69 64 65 |r. Possi|ble side|
|000016e0| 20 65 66 66 65 63 74 3a | 20 74 68 65 20 44 69 72 | effect:| the Dir|
|000016f0| 65 63 74 6f 72 20 74 61 | 73 6b 27 73 20 77 69 6e |ector ta|sk's win|
|00001700| 64 6f 77 73 20 6d 61 79 | 20 6e 6f 74 20 62 65 51 |dows may| not beQ|
|00001710| 2d 2d 20 70 72 6f 70 65 | 72 6c 79 20 75 70 64 61 |-- prope|rly upda|
|00001720| 74 65 64 20 69 66 20 74 | 68 69 73 20 6d 65 74 68 |ted if t|his meth|
|00001730| 6f 64 20 69 73 20 75 73 | 65 64 20 77 69 74 68 69 |od is us|ed withi|
|00001740| 6e 20 61 20 6c 6f 6e 67 | 20 72 65 70 65 61 74 20 |n a long| repeat |
|00001750| 6c 6f 6f 70 20 61 6e 64 | 20 74 68 65 20 75 73 65 |loop and| the use|
|00001760| 72 19 2d 2d 20 73 77 69 | 74 63 68 65 73 20 61 70 |r.-- swi|tches ap|
|00001770| 70 6c 69 63 61 74 69 6f | 6e 73 2e 17 58 20 6d 46 |plicatio|ns..X mF|
|00001780| 65 65 64 47 65 6e 65 72 | 69 63 54 69 6d 65 53 6c |eedGener|icTimeSl|
|00001790| 69 63 65 4d 2d 2d 20 47 | 69 76 65 73 20 75 70 20 |iceM-- G|ives up |
|000017a0| 70 72 6f 63 65 73 73 6f | 72 20 74 69 6d 65 20 66 |processo|r time f|
|000017b0| 6f 72 20 6f 74 68 65 72 | 20 74 61 73 6b 73 20 74 |or other| tasks t|
|000017c0| 6f 20 72 75 6e 2e 20 55 | 73 65 66 75 6c 20 77 69 |o run. U|seful wi|
|000017d0| 74 68 69 6e 20 4c 69 6e | 67 6f 20 72 65 70 65 61 |thin Lin|go repea|
|000017e0| 74 44 2d 2d 20 6c 6f 6f | 70 73 2c 20 77 68 69 63 |tD-- loo|ps, whic|
|000017f0| 68 20 6e 6f 72 6d 61 6c | 6c 79 20 6d 6f 6e 6f 70 |h normal|ly monop|
|00001800| 6f 6c 69 7a 65 20 61 6c | 6c 20 74 69 6d 65 73 6c |olize al|l timesl|
|00001810| 69 63 65 73 2e 20 4e 6f | 20 72 65 74 75 72 6e 20 |ices. No| return |
|00001820| 76 61 6c 75 65 2e 3f 2d | 2d 20 50 6f 73 73 69 62 |value.?-|- Possib|
|00001830| 6c 65 20 73 69 64 65 20 | 65 66 66 65 63 74 3a 20 |le side |effect: |
|00001840| 74 68 65 20 44 69 72 65 | 63 74 6f 72 20 74 61 73 |the Dire|ctor tas|
|00001850| 6b 27 73 20 77 69 6e 64 | 6f 77 73 20 6d 61 79 20 |k's wind|ows may |
|00001860| 6e 6f 74 20 62 65 51 2d | 2d 20 70 72 6f 70 65 72 |not beQ-|- proper|
|00001870| 6c 79 20 75 70 64 61 74 | 65 64 20 69 66 20 74 68 |ly updat|ed if th|
|00001880| 69 73 20 6d 65 74 68 6f | 64 20 69 73 20 75 73 65 |is metho|d is use|
|00001890| 64 20 77 69 74 68 69 6e | 20 61 20 6c 6f 6e 67 20 |d within| a long |
|000018a0| 72 65 70 65 61 74 20 6c | 6f 6f 70 20 61 6e 64 20 |repeat l|oop and |
|000018b0| 74 68 65 20 75 73 65 72 | 19 2d 2d 20 73 77 69 74 |the user|.-- swit|
|000018c0| 63 68 65 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ches app|lication|
|000018d0| 73 2e 0f 49 20 6d 44 69 | 72 65 63 74 6f 72 54 61 |s..I mDi|rectorTa|
|000018e0| 73 6b 2e 2d 2d 20 52 65 | 74 75 72 6e 73 20 44 69 |sk.-- Re|turns Di|
|000018f0| 72 65 63 74 6f 72 20 6f | 72 20 74 68 65 20 70 72 |rector o|r the pr|
|00001900| 6f 6a 65 63 74 6f 72 27 | 73 20 74 61 73 6b 49 44 |ojector'|s taskID|
|00001910| 2e 17 49 49 20 6d 54 61 | 73 6b 54 6f 46 72 6f 6e |..II mTa|skToFron|
|00001920| 74 2c 20 74 61 73 6b 49 | 44 49 2d 2d 20 4d 6f 76 |t, taskI|DI-- Mov|
|00001930| 65 73 20 74 68 65 20 74 | 61 73 6b 20 74 6f 20 74 |es the t|ask to t|
|00001940| 68 65 20 66 72 6f 6e 74 | 2e 20 44 6f 65 73 20 6e |he front|. Does n|
|00001950| 6f 74 20 65 78 69 73 74 | 20 6f 6e 20 57 69 6e 64 |ot exist| on Wind|
|00001960| 6f 77 73 20 62 65 63 61 | 75 73 65 20 6f 66 20 73 |ows beca|use of s|
|00001970| 6f 6d 65 4c 2d 2d 20 66 | 75 6e 64 61 6d 65 6e 74 |omeL-- f|undament|
|00001980| 61 6c 20 64 69 66 66 65 | 72 65 6e 63 65 73 20 62 |al diffe|rences b|
|00001990| 65 74 77 65 65 6e 20 4d | 61 63 20 61 6e 64 20 57 |etween M|ac and W|
|000019a0| 69 6e 20 69 6e 20 74 68 | 65 20 77 61 79 20 74 61 |in in th|e way ta|
|000019b0| 73 6b 73 20 61 72 65 20 | 6d 61 6e 61 67 65 64 2e |sks are |managed.|
|000019c0| 02 2d 2d 02 2d 2d 13 2d | 2d 20 4d 4f 44 55 4c 45 |.--.--.-|- MODULE|
|000019d0| 20 46 55 4e 43 54 49 4f | 4e 53 13 2d 2d 20 2d 2d | FUNCTIO|NS.-- --|
|000019e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 10 53 |--------|------.S|
|000019f0| 20 6d 47 65 74 4d 6f 64 | 75 6c 65 4c 69 73 74 4b | mGetMod|uleListK|
|00001a00| 2d 2d 20 52 65 74 75 72 | 6e 73 20 61 20 73 74 72 |-- Retur|ns a str|
|00001a10| 69 6e 67 20 6f 66 20 61 | 6c 6c 20 63 75 72 72 65 |ing of a|ll curre|
|00001a20| 6e 74 6c 79 20 6c 6f 61 | 64 65 64 20 6d 6f 64 75 |ntly loa|ded modu|
|00001a30| 6c 65 73 2c 20 6f 6e 65 | 20 70 65 72 20 6c 69 6e |les, one| per lin|
|00001a40| 65 2c 20 77 69 74 68 20 | 74 68 65 3b 2d 2d 20 66 |e, with |the;-- f|
|00001a50| 6f 6c 6c 6f 77 69 6e 67 | 20 69 6e 66 6f 72 6d 61 |ollowing| informa|
|00001a60| 74 69 6f 6e 20 6f 6e 20 | 65 61 63 68 20 6c 69 6e |tion on |each lin|
|00001a70| 65 2c 20 73 65 70 61 72 | 61 74 65 64 20 62 79 20 |e, separ|ated by |
|00001a80| 63 6f 6d 6d 61 73 3a 29 | 2d 2d 20 20 20 6d 6f 64 |commas:)|-- mod|
|00001a90| 75 6c 65 4e 61 6d 65 2c | 20 6d 6f 64 75 6c 65 49 |uleName,| moduleI|
|00001aa0| 44 2c 20 6d 6f 64 75 6c | 65 46 69 6c 65 4e 61 6d |D, modul|eFileNam|
|00001ab0| 65 4f 2d 2d 20 4e 6f 74 | 65 3a 20 73 69 6e 63 65 |eO-- Not|e: since|
|00001ac0| 20 6d 6f 64 75 6c 65 4e | 61 6d 65 20 6f 72 20 6d | moduleN|ame or m|
|00001ad0| 6f 64 75 6c 65 46 69 6c | 65 4e 61 6d 65 20 6d 69 |oduleFil|eName mi|
|00001ae0| 67 68 74 20 63 6f 6e 74 | 61 69 6e 20 63 6f 6d 6d |ght cont|ain comm|
|00001af0| 61 73 2c 20 6d 47 65 74 | 4d 6f 64 75 6c 65 49 44 |as, mGet|ModuleID|
|00001b00| 73 34 2d 2d 20 69 73 20 | 61 20 6d 6f 72 65 20 62 |s4-- is |a more b|
|00001b10| 75 6c 6c 65 74 70 72 6f | 6f 66 20 77 61 79 20 6f |ulletpro|of way o|
|00001b20| 66 20 6c 69 73 74 69 6e | 67 20 61 6c 6c 20 6d 6f |f listin|g all mo|
|00001b30| 64 75 6c 65 73 2e 0f 53 | 20 6d 47 65 74 4d 6f 64 |dules..S| mGetMod|
|00001b40| 75 6c 65 49 44 73 49 2d | 2d 20 52 65 74 75 72 6e |uleIDsI-|- Return|
|00001b50| 73 20 61 20 73 74 72 69 | 6e 67 20 6f 66 20 74 68 |s a stri|ng of th|
|00001b60| 65 20 6d 6f 64 75 6c 65 | 49 44 73 20 6f 66 20 61 |e module|IDs of a|
|00001b70| 6c 6c 20 72 75 6e 6e 69 | 6e 67 20 6d 6f 64 75 6c |ll runni|ng modul|
|00001b80| 65 73 2c 20 6f 6e 20 6f | 6e 65 20 6c 69 6e 65 2c |es, on o|ne line,|
|00001b90| 4b 2d 2d 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |K-- sepa|rated by|
|00001ba0| 20 73 70 61 63 65 73 2e | 20 55 73 65 20 27 77 6f | spaces.| Use 'wo|
|00001bb0| 72 64 27 20 74 6f 20 77 | 61 6c 6b 20 74 68 72 6f |rd' to w|alk thro|
|00001bc0| 75 67 68 20 74 68 65 20 | 72 65 73 75 6c 74 73 2e |ugh the |results.|
|00001bd0| 20 4f 6e 20 74 68 65 20 | 4d 61 63 2c 25 2d 2d 20 | On the |Mac,%-- |
|00001be0| 74 68 69 73 20 69 73 20 | 61 20 73 79 6e 6f 6e 79 |this is |a synony|
|00001bf0| 6d 20 66 6f 72 20 6d 47 | 65 74 54 61 73 6b 49 44 |m for mG|etTaskID|
|00001c00| 73 2e 18 49 49 20 6d 4d | 6f 64 75 6c 65 54 61 73 |s..II mM|oduleTas|
|00001c10| 6b 2c 20 6d 6f 64 75 6c | 65 49 44 4f 2d 2d 20 52 |k, modul|eIDO-- R|
|00001c20| 65 74 75 72 6e 73 20 74 | 61 73 6b 69 64 49 44 20 |eturns t|askidID |
|00001c30| 6f 66 20 74 68 65 20 67 | 69 76 65 6e 20 6d 6f 64 |of the g|iven mod|
|00001c40| 75 6c 65 49 44 20 28 61 | 6c 77 61 79 73 20 74 68 |uleID (a|lways th|
|00001c50| 65 20 73 61 6d 65 20 6e | 75 6d 62 65 72 2c 20 6f |e same n|umber, o|
|00001c60| 6e 20 74 68 65 20 4d 61 | 63 29 2e 1c 53 49 20 6d |n the Ma|c)..SI m|
|00001c70| 4d 6f 64 75 6c 65 46 69 | 6c 65 4e 61 6d 65 2c 20 |ModuleFi|leName, |
|00001c80| 6d 6f 64 75 6c 65 49 44 | 4b 2d 2d 20 47 65 74 20 |moduleID|K-- Get |
|00001c90| 66 75 6c 6c 20 70 61 74 | 68 20 74 6f 20 61 20 74 |full pat|h to a t|
|00001ca0| 61 73 6b 27 73 20 61 70 | 70 6c 69 63 61 74 69 6f |ask's ap|plicatio|
|00001cb0| 6e 20 66 69 6c 65 2e 20 | 43 61 6e 20 75 73 65 20 |n file. |Can use |
|00001cc0| 61 20 74 61 73 6b 49 44 | 20 6f 6e 20 74 68 65 20 |a taskID| on the |
|00001cd0| 4d 61 63 2e 13 53 20 6d | 44 69 72 65 63 74 6f 72 |Mac..S m|Director|
|00001ce0| 46 69 6c 65 4e 61 6d 65 | 2f 2d 2d 20 52 65 74 75 |FileName|/-- Retu|
|00001cf0| 72 6e 73 20 74 68 65 20 | 66 69 6c 65 6e 61 6d 65 |rns the |filename|
|00001d00| 20 6f 66 20 74 68 65 20 | 44 69 72 65 63 74 6f 72 | of the |Director|
|00001d10| 20 6d 6f 64 75 6c 65 2e | 18 53 49 20 6d 4d 6f 64 | module.|.SI mMod|
|00001d20| 75 6c 65 4e 61 6d 65 2c | 20 6d 6f 64 75 6c 65 49 |uleName,| moduleI|
|00001d30| 44 52 2d 2d 20 47 65 74 | 20 6d 6f 64 75 6c 65 20 |DR-- Get| module |
|00001d40| 6e 61 6d 65 2e 20 4f 6e | 20 74 68 65 20 4d 61 63 |name. On| the Mac|
|00001d50| 2c 20 74 68 69 73 20 69 | 73 20 74 68 65 20 61 70 |, this i|s the ap|
|00001d60| 70 27 73 20 63 72 65 61 | 74 6f 72 20 61 6e 64 20 |p's crea|tor and |
|00001d70| 66 69 6c 65 74 79 70 65 | 20 73 69 67 6e 61 74 75 |filetype| signatu|
|00001d80| 72 65 73 2c 42 2d 2d 20 | 72 65 74 75 72 6e 65 64 |res,B-- |returned|
|00001d90| 20 61 73 20 61 6e 20 38 | 2d 63 68 61 72 61 63 74 | as an 8|-charact|
|00001da0| 65 72 20 73 74 72 69 6e | 67 2e 20 43 61 6e 20 75 |er strin|g. Can u|
|00001db0| 73 65 20 61 20 74 61 73 | 6b 49 44 20 6f 6e 20 74 |se a tas|kID on t|
|00001dc0| 68 65 20 4d 61 63 2e 1d | 49 49 20 6d 4d 6f 64 75 |he Mac..|II mModu|
|00001dd0| 6c 65 49 73 52 75 6e 6e | 69 6e 67 2c 20 6d 6f 64 |leIsRunn|ing, mod|
|00001de0| 75 6c 65 49 44 51 2d 2d | 20 52 65 74 75 72 6e 73 |uleIDQ--| Returns|
|00001df0| 20 54 52 55 45 20 69 66 | 20 74 68 65 20 6d 6f 64 | TRUE if| the mod|
|00001e00| 75 6c 65 20 69 73 20 73 | 74 69 6c 6c 20 72 75 6e |ule is s|till run|
|00001e10| 6e 69 6e 67 2c 20 66 61 | 6c 73 65 20 69 66 20 6e |ning, fa|lse if n|
|00001e20| 6f 74 2e 20 4f 6e 20 74 | 68 65 20 4d 61 63 2c 20 |ot. On t|he Mac, |
|00001e30| 74 68 69 73 20 69 73 20 | 2d 2d 20 61 20 73 79 6e |this is |-- a syn|
|00001e40| 6f 6e 79 6d 20 66 6f 72 | 20 6d 54 61 73 6b 49 73 |onym for| mTaskIs|
|00001e50| 52 75 6e 6e 69 6e 67 2e | 25 49 49 53 20 6d 55 6e |Running.|%IIS mUn|
|00001e60| 6c 6f 61 64 4d 6f 64 75 | 6c 65 2c 20 6d 6f 64 75 |loadModu|le, modu|
|00001e70| 6c 65 49 44 2c 20 61 70 | 70 4f 72 44 6c 6c 4b 2d |leID, ap|pOrDllK-|
|00001e80| 2d 20 46 6f 72 63 65 20 | 61 20 6d 6f 64 75 6c 65 |- Force |a module|
|00001e90| 20 74 6f 20 71 75 69 74 | 2e 20 55 73 65 73 20 74 | to quit|. Uses t|
|00001ea0| 68 65 20 73 61 6d 65 20 | 61 70 70 72 6f 61 63 68 |he same |approach|
|00001eb0| 20 61 73 20 6d 54 61 73 | 6b 51 75 69 74 2c 20 62 | as mTas|kQuit, b|
|00001ec0| 75 74 20 6d 61 74 63 68 | 65 73 47 2d 2d 20 74 68 |ut match|esG-- th|
|00001ed0| 65 20 73 79 6e 74 61 78 | 20 6f 66 20 74 68 65 20 |e syntax| of the |
|00001ee0| 57 69 6e 64 6f 77 73 20 | 6d 65 74 68 6f 64 2e 20 |Windows |method. |
|00001ef0| 61 70 70 4f 72 44 6c 6c | 20 69 73 20 69 72 72 65 |appOrDll| is irre|
|00001f00| 6c 65 76 61 6e 74 20 6f | 6e 20 74 68 65 20 4d 61 |levant o|n the Ma|
|00001f10| 63 2e 11 49 20 6d 44 69 | 72 65 63 74 6f 72 4d 6f |c..I mDi|rectorMo|
|00001f20| 64 75 6c 65 4b 2d 2d 20 | 52 65 74 75 72 6e 73 20 |duleK-- |Returns |
|00001f30| 74 68 65 20 6d 6f 64 75 | 6c 65 49 44 20 6f 66 20 |the modu|leID of |
|00001f40| 74 68 65 20 44 69 72 65 | 63 74 6f 72 20 74 61 73 |the Dire|ctor tas|
|00001f50| 6b 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 74 |k. On th|e Mac, t|
|00001f60| 68 69 73 20 69 73 20 61 | 20 73 79 6e 6f 6e 79 6d |his is a| synonym|
|00001f70| 15 2d 2d 20 66 6f 72 20 | 6d 44 69 72 65 63 74 6f |.-- for |mDirecto|
|00001f80| 72 54 61 73 6b 2e 02 2d | 2d 02 2d 2d 13 2d 2d 20 |rTask..-|-.--.-- |
|00001f90| 57 49 4e 44 4f 57 20 46 | 55 4e 43 54 49 4f 4e 53 |WINDOW F|UNCTIONS|
|00001fa0| 13 2d 2d 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-- ----|--------|
|00001fb0| 2d 2d 2d 2d 02 2d 2d 16 | 53 20 6d 47 65 74 50 61 |----.--.|S mGetPa|
|00001fc0| 72 65 6e 74 57 69 6e 64 | 6f 77 4c 69 73 74 4d 2d |rentWind|owListM-|
|00001fd0| 2d 20 52 65 74 75 72 6e | 73 20 61 20 73 74 72 69 |- Return|s a stri|
|00001fe0| 6e 67 20 6f 66 20 61 6c | 6c 20 74 6f 70 2d 6c 65 |ng of al|l top-le|
|00001ff0| 76 65 6c 20 77 69 6e 64 | 6f 77 73 20 6f 77 6e 65 |vel wind|ows owne|
|00002000| 64 20 62 79 20 61 6c 6c | 20 74 61 73 6b 73 2c 20 |d by all| tasks, |
|00002010| 6f 6e 65 20 70 65 72 20 | 6c 69 6e 65 2f 2d 2d 20 |one per |line/-- |
|00002020| 77 69 74 68 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |with the| followi|
|00002030| 6e 67 20 69 6e 66 6f 20 | 73 65 70 61 72 61 74 65 |ng info |separate|
|00002040| 64 20 62 79 20 63 6f 6d | 6d 61 73 3a 42 2d 2d 20 |d by com|mas:B-- |
|00002050| 20 20 77 69 6e 64 6f 77 | 4e 61 6d 65 2c 20 77 69 | window|Name, wi|
|00002060| 6e 64 6f 77 49 44 2c 20 | 70 61 72 65 6e 74 57 69 |ndowID, |parentWi|
|00002070| 6e 64 6f 77 49 44 2c 20 | 68 61 73 43 68 69 6c 64 |ndowID, |hasChild|
|00002080| 72 65 6e 2c 20 77 69 6e | 64 6f 77 54 79 70 65 50 |ren, win|dowTypeP|
|00002090| 2d 2d 20 54 6f 70 2d 6c | 65 76 65 6c 20 77 69 6e |-- Top-l|evel win|
|000020a0| 64 6f 77 73 20 61 6c 77 | 61 79 73 20 68 61 76 65 |dows alw|ays have|
|000020b0| 20 70 61 72 65 6e 74 49 | 44 20 30 2c 20 62 75 74 | parentI|D 0, but|
|000020c0| 20 74 68 65 20 64 61 74 | 61 20 66 6f 72 6d 61 74 | the dat|a format|
|000020d0| 20 72 65 74 75 72 6e 65 | 64 20 69 73 20 74 68 65 | returne|d is the|
|000020e0| 4e 2d 2d 20 73 61 6d 65 | 20 64 61 74 61 20 66 6f |N-- same| data fo|
|000020f0| 72 6d 61 74 20 72 65 74 | 75 72 6e 65 64 20 62 79 |rmat ret|urned by|
|00002100| 20 6d 47 65 74 43 68 69 | 6c 64 57 69 6e 64 6f 77 | mGetChi|ldWindow|
|00002110| 4c 69 73 74 2e 20 42 65 | 63 61 75 73 65 20 77 69 |List. Be|cause wi|
|00002120| 6e 64 6f 77 4e 61 6d 65 | 73 20 6d 69 67 68 74 41 |ndowName|s mightA|
|00002130| 2d 2d 20 63 6f 6e 74 61 | 69 6e 20 63 6f 6d 6d 61 |-- conta|in comma|
|00002140| 73 2c 20 75 73 69 6e 67 | 20 6d 47 65 74 50 61 72 |s, using| mGetPar|
|00002150| 65 6e 74 57 69 6e 64 6f | 77 49 44 73 20 69 73 20 |entWindo|wIDs is |
|00002160| 6d 6f 72 65 20 62 75 6c | 6c 65 74 70 72 6f 6f 66 |more bul|letproof|
|00002170| 2e 15 53 20 6d 47 65 74 | 50 61 72 65 6e 74 57 69 |..S mGet|ParentWi|
|00002180| 6e 64 6f 77 49 44 73 4b | 2d 2d 20 52 65 74 75 72 |ndowIDsK|-- Retur|
|00002190| 6e 73 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 74 |ns a str|ing of t|
|000021a0| 68 65 20 77 69 6e 64 6f | 77 49 44 73 20 6f 66 20 |he windo|wIDs of |
|000021b0| 61 6c 6c 20 74 6f 70 2d | 6c 65 76 65 6c 20 77 69 |all top-|level wi|
|000021c0| 6e 64 6f 77 73 2c 20 6f | 6e 20 6f 6e 65 20 6c 69 |ndows, o|n one li|
|000021d0| 6e 65 2c 3f 2d 2d 20 73 | 65 70 61 72 61 74 65 64 |ne,?-- s|eparated|
|000021e0| 20 62 79 20 73 70 61 63 | 65 73 2e 20 55 73 65 20 | by spac|es. Use |
|000021f0| 27 77 6f 72 64 27 20 74 | 6f 20 77 61 6c 6b 20 74 |'word' t|o walk t|
|00002200| 68 72 6f 75 67 68 20 74 | 68 65 20 72 65 73 75 6c |hrough t|he resul|
|00002210| 74 73 2e 20 53 49 20 6d | 47 65 74 43 68 69 6c 64 |ts. SI m|GetChild|
|00002220| 57 69 6e 64 6f 77 4c 69 | 73 74 2c 20 77 69 6e 64 |WindowLi|st, wind|
|00002230| 6f 77 49 44 48 2d 2d 20 | 52 65 74 75 72 6e 73 20 |owIDH-- |Returns |
|00002240| 61 20 73 74 72 69 6e 67 | 20 6f 66 20 61 6c 6c 20 |a string| of all |
|00002250| 63 68 69 6c 64 20 77 69 | 6e 64 6f 77 73 20 6f 77 |child wi|ndows ow|
|00002260| 6e 65 64 20 62 79 20 74 | 68 65 20 77 69 6e 64 6f |ned by t|he windo|
|00002270| 77 2c 20 6f 6e 65 20 77 | 69 6e 64 6f 77 4c 2d 2d |w, one w|indowL--|
|00002280| 20 70 65 72 20 6c 69 6e | 65 2c 20 77 69 74 68 20 | per lin|e, with |
|00002290| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 69 6e |the foll|owing in|
|000022a0| 66 6f 72 6d 61 74 69 6f | 6e 20 73 65 70 61 72 74 |formatio|n separt|
|000022b0| 65 64 20 62 79 20 63 6f | 6d 6d 61 73 20 6f 6e 20 |ed by co|mmas on |
|000022c0| 65 61 63 68 20 6c 69 6e | 65 3a 42 2d 2d 20 20 20 |each lin|e:B-- |
|000022d0| 77 69 6e 64 6f 77 4e 61 | 6d 65 2c 20 77 69 6e 64 |windowNa|me, wind|
|000022e0| 6f 77 49 44 2c 20 70 61 | 72 65 6e 74 57 69 6e 64 |owID, pa|rentWind|
|000022f0| 6f 77 49 44 2c 20 68 61 | 73 43 68 69 6c 64 72 65 |owID, ha|sChildre|
|00002300| 6e 2c 20 77 69 6e 64 6f | 77 54 79 70 65 46 2d 2d |n, windo|wTypeF--|
|00002310| 20 53 69 6e 63 65 20 77 | 69 6e 64 6f 77 4e 61 6d | Since w|indowNam|
|00002320| 65 20 6d 69 67 68 74 20 | 63 6f 6e 74 61 69 6e 20 |e might |contain |
|00002330| 63 6f 6d 6d 61 73 2c 20 | 6d 47 65 74 43 68 69 6c |commas, |mGetChil|
|00002340| 64 57 69 6e 64 6f 77 49 | 44 73 20 69 73 20 61 20 |dWindowI|Ds is a |
|00002350| 6d 6f 72 65 30 2d 2d 20 | 62 75 6c 6c 65 74 70 72 |more0-- |bulletpr|
|00002360| 6f 6f 66 20 77 61 79 20 | 6f 66 20 6c 69 73 74 69 |oof way |of listi|
|00002370| 6e 67 20 61 6c 6c 20 63 | 68 69 6c 64 20 77 69 6e |ng all c|hild win|
|00002380| 64 6f 77 73 2e 1f 53 49 | 20 6d 47 65 74 43 68 69 |dows..SI| mGetChi|
|00002390| 6c 64 57 69 6e 64 6f 77 | 49 44 73 2c 20 77 69 6e |ldWindow|IDs, win|
|000023a0| 64 6f 77 49 44 4a 2d 2d | 20 52 65 74 75 72 6e 73 |dowIDJ--| Returns|
|000023b0| 20 61 20 73 74 72 69 6e | 67 20 6f 66 20 61 6c 6c | a strin|g of all|
|000023c0| 20 63 68 69 6c 64 20 77 | 69 6e 64 6f 77 73 20 6f | child w|indows o|
|000023d0| 77 6e 65 64 20 62 79 20 | 74 68 65 20 77 69 6e 64 |wned by |the wind|
|000023e0| 6f 77 2c 20 6f 6e 20 6f | 6e 65 20 6c 69 6e 65 2c |ow, on o|ne line,|
|000023f0| 3e 2d 2d 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |>-- sepa|rated by|
|00002400| 20 73 70 61 63 65 73 2e | 20 55 73 65 20 27 77 6f | spaces.| Use 'wo|
|00002410| 72 64 27 20 74 6f 20 77 | 61 6c 6b 20 74 68 6f 75 |rd' to w|alk thou|
|00002420| 67 68 20 74 68 65 20 72 | 65 73 75 6c 74 73 2e 1a |gh the r|esults..|
|00002430| 49 49 20 6d 57 69 6e 64 | 6f 77 50 61 72 65 6e 74 |II mWind|owParent|
|00002440| 2c 20 77 69 6e 64 6f 77 | 49 44 4a 2d 2d 20 52 65 |, window|IDJ-- Re|
|00002450| 74 75 72 6e 73 20 74 68 | 65 20 77 69 6e 64 6f 77 |turns th|e window|
|00002460| 49 44 20 6f 66 20 74 68 | 65 20 70 61 72 65 6e 74 |ID of th|e parent|
|00002470| 20 6f 66 20 74 68 65 20 | 73 75 70 70 6c 69 65 64 | of the |supplied|
|00002480| 20 77 69 6e 64 6f 77 20 | 28 30 20 69 66 20 69 74 | window |(0 if it|
|00002490| 27 73 20 61 2e 43 2d 2d | 20 74 6f 70 2d 6c 65 76 |'s a.C--| top-lev|
|000024a0| 65 6c 20 77 69 6e 64 6f | 77 2c 20 6f 72 20 2d 31 |el windo|w, or -1|
|000024b0| 20 69 66 20 74 68 65 20 | 73 75 70 70 6c 69 65 64 | if the |supplied|
|000024c0| 20 77 69 6e 64 6f 77 49 | 44 20 63 61 6e 27 74 20 | windowI|D can't |
|000024d0| 62 65 20 66 6f 75 6e 64 | 2e 1d 49 49 20 6d 47 65 |be found|..II mGe|
|000024e0| 74 57 69 6e 64 6f 77 50 | 61 72 65 6e 74 2c 20 77 |tWindowP|arent, w|
|000024f0| 69 6e 64 6f 77 49 44 46 | 2d 2d 20 53 79 6e 6f 6e |indowIDF|-- Synon|
|00002500| 79 6d 20 66 6f 72 20 6d | 57 69 6e 64 6f 77 50 61 |ym for m|WindowPa|
|00002510| 72 65 6e 74 2c 20 66 6f | 72 20 63 6f 6d 70 61 74 |rent, fo|r compat|
|00002520| 69 62 69 6c 69 74 79 20 | 77 69 74 68 20 65 61 72 |ibility |with ear|
|00002530| 6c 69 65 72 20 72 65 6c | 65 61 73 65 73 2e 24 49 |lier rel|eases.$I|
|00002540| 49 20 6d 47 65 74 48 69 | 67 68 65 73 74 57 69 6e |I mGetHi|ghestWin|
|00002550| 64 6f 77 50 61 72 65 6e | 74 2c 20 77 69 6e 64 6f |dowParen|t, windo|
|00002560| 77 49 44 47 2d 2d 20 52 | 65 74 75 72 6e 73 20 74 |wIDG-- R|eturns t|
|00002570| 68 65 20 77 69 6e 64 6f | 77 49 44 20 6f 66 20 74 |he windo|wID of t|
|00002580| 68 65 20 74 6f 70 20 6c | 65 76 65 6c 20 70 61 72 |he top l|evel par|
|00002590| 65 6e 74 2c 20 63 6c 69 | 6d 62 69 6e 67 20 74 68 |ent, cli|mbing th|
|000025a0| 65 20 68 65 69 72 61 72 | 63 68 79 4f 2d 2d 20 6f |e heirar|chyO-- o|
|000025b0| 66 20 77 69 6e 64 6f 77 | 20 6f 77 6e 65 72 73 68 |f window| ownersh|
|000025c0| 69 70 20 61 73 20 66 61 | 72 20 62 61 63 6b 77 61 |ip as fa|r backwa|
|000025d0| 72 64 73 20 61 73 20 70 | 6f 73 73 69 62 6c 65 2e |rds as p|ossible.|
|000025e0| 20 52 65 74 75 72 6e 73 | 20 2d 31 20 69 66 20 74 | Returns| -1 if t|
|000025f0| 68 65 20 73 75 70 70 6c | 69 65 64 50 2d 2d 20 77 |he suppl|iedP-- w|
|00002600| 69 6e 64 6f 77 49 44 20 | 63 61 6e 27 74 20 62 65 |indowID |can't be|
|00002610| 20 66 6f 75 6e 64 3b 20 | 72 65 74 75 72 6e 73 20 | found; |returns |
|00002620| 74 68 65 20 73 75 70 70 | 6c 69 65 64 20 77 69 6e |the supp|lied win|
|00002630| 64 6f 77 49 44 20 66 6f | 72 20 74 6f 70 2d 6c 65 |dowID fo|r top-le|
|00002640| 76 65 6c 20 77 69 6e 64 | 6f 77 73 2e 15 49 20 6d |vel wind|ows..I m|
|00002650| 44 69 72 65 63 74 6f 72 | 4d 61 69 6e 57 69 6e 64 |Director|MainWind|
|00002660| 6f 77 4e 2d 2d 20 52 65 | 74 75 72 6e 73 20 74 68 |owN-- Re|turns th|
|00002670| 65 20 6d 61 69 6e 20 77 | 69 6e 64 6f 77 49 44 20 |e main w|indowID |
|00002680| 6f 66 20 44 69 72 65 63 | 74 6f 72 20 6f 72 20 74 |of Direc|tor or t|
|00002690| 68 65 20 70 72 6f 6a 65 | 63 74 6f 72 2e 20 4f 6e |he proje|ctor. On|
|000026a0| 20 74 68 65 20 4d 61 63 | 2c 20 74 68 69 73 20 69 | the Mac|, this i|
|000026b0| 73 4b 2d 2d 20 74 68 65 | 20 73 61 6d 65 20 77 69 |sK-- the| same wi|
|000026c0| 6e 64 6f 77 20 61 73 20 | 74 68 65 20 73 74 61 67 |ndow as |the stag|
|000026d0| 65 20 69 74 73 65 6c 66 | 2e 20 53 65 65 20 6e 6f |e itself|. See no|
|000026e0| 74 65 73 20 66 6f 72 20 | 6d 44 69 72 65 63 74 6f |tes for |mDirecto|
|000026f0| 72 53 74 61 67 65 57 69 | 6e 64 6f 77 2e 16 49 20 |rStageWi|ndow..I |
|00002700| 6d 44 69 72 65 63 74 6f | 72 53 74 61 67 65 57 69 |mDirecto|rStageWi|
|00002710| 6e 64 6f 77 4e 2d 2d 20 | 52 65 74 75 72 6e 73 20 |ndowN-- |Returns |
|00002720| 74 68 65 20 77 69 6e 64 | 6f 77 49 44 20 6f 66 20 |the wind|owID of |
|00002730| 74 68 65 20 44 69 72 65 | 63 74 6f 72 20 6f 72 20 |the Dire|ctor or |
|00002740| 70 72 6f 6a 65 63 74 6f | 72 20 73 74 61 67 65 2e |projecto|r stage.|
|00002750| 20 4f 6e 20 74 68 65 20 | 4d 61 63 2c 74 68 69 73 | On the |Mac,this|
|00002760| 20 69 73 4d 2d 2d 20 74 | 68 65 20 73 61 6d 65 20 | isM-- t|he same |
|00002770| 77 69 6e 64 6f 77 20 61 | 73 20 74 68 65 20 6f 6e |window a|s the on|
|00002780| 65 20 72 65 74 75 72 6e | 65 64 20 62 79 20 6d 44 |e return|ed by mD|
|00002790| 69 72 65 63 74 6f 72 4d | 61 69 6e 57 69 6e 64 6f |irectorM|ainWindo|
|000027a0| 77 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 74 68 69 |w. Note |that thi|
|000027b0| 73 4b 2d 2d 20 77 69 6e | 64 6f 77 49 44 20 63 61 |sK-- win|dowID ca|
|000027c0| 6e 20 63 68 61 6e 67 65 | 20 69 66 20 74 68 65 20 |n change| if the |
|000027d0| 6d 6f 6e 69 74 6f 72 20 | 63 6f 6c 6f 72 20 64 65 |monitor |color de|
|000027e0| 70 74 68 20 6f 72 20 73 | 69 7a 65 20 69 73 20 63 |pth or s|ize is c|
|000027f0| 68 61 6e 67 65 64 20 6c | 61 74 65 72 2e 48 2d 2d |hanged l|ater.H--|
|00002800| 20 59 6f 75 20 63 61 6e | 20 64 65 74 65 63 74 20 | You can| detect |
|00002810| 74 68 69 73 20 77 69 74 | 68 20 6d 57 69 6e 64 6f |this wit|h mWindo|
|00002820| 77 45 78 69 73 74 73 2c | 20 61 6e 64 20 79 6f 75 |wExists,| and you|
|00002830| 20 63 61 6e 20 67 65 74 | 20 74 68 65 20 6e 65 77 | can get| the new|
|00002840| 20 73 74 61 67 65 4d 2d | 2d 20 77 69 6e 64 6f 77 | stageM-|- window|
|00002850| 20 62 79 20 63 72 65 61 | 74 69 6e 67 20 61 20 6e | by crea|ting a n|
|00002860| 65 77 20 4d 61 73 74 65 | 72 41 70 70 20 69 6e 73 |ew Maste|rApp ins|
|00002870| 74 61 6e 63 65 20 61 6e | 64 20 75 73 69 6e 67 20 |tance an|d using |
|00002880| 6d 44 69 72 65 63 74 6f | 72 53 74 61 67 65 57 69 |mDirecto|rStageWi|
|00002890| 6e 64 6f 77 4a 2d 2d 20 | 77 69 74 68 20 74 68 61 |ndowJ-- |with tha|
|000028a0| 74 20 69 6e 73 74 61 6e | 63 65 2e 20 4e 6f 74 65 |t instan|ce. Note|
|000028b0| 20 74 68 61 74 20 74 61 | 73 6b 49 44 73 2c 20 6d | that ta|skIDs, m|
|000028c0| 6f 64 75 6c 65 49 44 73 | 20 61 6e 64 20 69 6e 73 |oduleIDs| and ins|
|000028d0| 74 61 6e 63 65 49 44 73 | 20 63 61 6e 20 62 65 49 |tanceIDs| can beI|
|000028e0| 2d 2d 20 64 69 66 66 65 | 72 65 6e 74 20 69 6e 20 |-- diffe|rent in |
|000028f0| 61 20 6e 65 77 20 4d 61 | 73 74 65 72 41 70 70 20 |a new Ma|sterApp |
|00002900| 6f 62 6a 65 63 74 2d 2d | 20 74 68 65 73 65 20 49 |object--| these I|
|00002910| 44 73 20 61 72 65 20 75 | 6e 69 71 75 65 20 70 65 |Ds are u|nique pe|
|00002920| 72 2d 6f 62 6a 65 63 74 | 2e 18 53 49 20 6d 57 69 |r-object|..SI mWi|
|00002930| 6e 64 6f 77 4e 61 6d 65 | 2c 20 77 69 6e 64 6f 77 |ndowName|, window|
|00002940| 49 44 34 2d 2d 20 52 65 | 74 75 72 6e 73 20 74 68 |ID4-- Re|turns th|
|00002950| 65 20 77 69 6e 64 6f 77 | 20 6e 61 6d 65 20 6f 66 |e window| name of|
|00002960| 20 74 68 65 20 73 75 70 | 70 6c 69 65 64 20 77 69 | the sup|plied wi|
|00002970| 6e 64 6f 77 49 44 2e 1b | 53 49 20 6d 47 65 74 57 |ndowID..|SI mGetW|
|00002980| 69 6e 64 6f 77 4e 61 6d | 65 2c 20 77 69 6e 64 6f |indowNam|e, windo|
|00002990| 77 49 44 44 2d 2d 20 53 | 79 6e 6f 6e 79 6d 20 66 |wIDD-- S|ynonym f|
|000029a0| 6f 72 20 6d 57 69 6e 64 | 6f 77 4e 61 6d 65 2c 20 |or mWind|owName, |
|000029b0| 66 6f 72 20 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |for comp|atibilit|
|000029c0| 79 20 77 69 74 68 20 65 | 61 72 6c 69 65 72 20 72 |y with e|arlier r|
|000029d0| 65 6c 65 61 73 65 73 2e | 25 49 49 53 20 6d 53 65 |eleases.|%IIS mSe|
|000029e0| 74 57 69 6e 64 6f 77 4e | 61 6d 65 2c 20 77 69 6e |tWindowN|ame, win|
|000029f0| 64 6f 77 49 44 2c 20 6e | 65 77 54 65 78 74 4f 2d |dowID, n|ewTextO-|
|00002a00| 2d 20 53 65 74 73 20 74 | 68 65 20 77 69 6e 64 6f |- Sets t|he windo|
|00002a10| 77 27 73 20 6e 61 6d 65 | 2e 20 4e 6f 74 65 3a 20 |w's name|. Note: |
|00002a20| 74 68 69 73 20 6d 61 79 | 20 68 61 76 65 20 73 69 |this may| have si|
|00002a30| 64 65 20 65 66 66 65 63 | 74 73 20 69 66 20 74 68 |de effec|ts if th|
|00002a40| 65 20 61 70 70 20 64 6f | 65 73 20 6e 6f 74 54 2d |e app do|es notT-|
|00002a50| 2d 20 65 78 70 65 63 74 | 20 74 68 65 20 77 69 6e |- expect| the win|
|00002a60| 64 6f 77 27 73 20 6e 61 | 6d 65 20 74 6f 20 63 68 |dow's na|me to ch|
|00002a70| 61 6e 67 65 2e 20 54 65 | 73 74 69 6e 67 20 69 73 |ange. Te|sting is|
|00002a80| 20 72 65 71 75 69 72 65 | 64 21 20 52 65 74 75 72 | require|d! Retur|
|00002a90| 6e 73 20 30 20 69 66 20 | 73 75 63 63 65 73 73 66 |ns 0 if |successf|
|00002aa0| 75 6c 2c 47 2d 2d 20 6f | 72 20 6e 6f 6e 2d 7a 65 |ul,G-- o|r non-ze|
|00002ab0| 72 6f 20 69 66 20 61 6e | 20 65 72 72 6f 72 20 6f |ro if an| error o|
|00002ac0| 63 63 75 72 73 20 28 74 | 79 70 69 63 61 6c 6c 79 |ccurs (t|ypically|
|00002ad0| 2c 20 61 20 62 61 64 20 | 77 69 6e 64 6f 77 49 44 |, a bad |windowID|
|00002ae0| 20 73 75 70 70 6c 69 65 | 64 29 2e 1f 49 49 20 6d | supplie|d)..II m|
|00002af0| 57 69 6e 64 6f 77 48 61 | 73 43 68 69 6c 64 72 65 |WindowHa|sChildre|
|00002b00| 6e 2c 20 77 69 6e 64 6f | 77 49 44 3e 2d 2d 20 52 |n, windo|wID>-- R|
|00002b10| 65 74 75 72 6e 73 20 54 | 52 55 45 20 69 66 20 74 |eturns T|RUE if t|
|00002b20| 68 65 20 77 69 6e 64 6f | 77 20 68 61 73 20 63 68 |he windo|w has ch|
|00002b30| 69 6c 64 20 77 69 6e 64 | 6f 77 73 2c 20 66 61 6c |ild wind|ows, fal|
|00002b40| 73 65 20 69 66 20 6e 6f | 74 2e 18 53 49 20 6d 57 |se if no|t..SI mW|
|00002b50| 69 6e 64 6f 77 54 79 70 | 65 2c 20 77 69 6e 64 6f |indowTyp|e, windo|
|00002b60| 77 49 44 55 2d 2d 20 52 | 65 74 75 72 6e 73 20 74 |wIDU-- R|eturns t|
|00002b70| 68 65 20 74 79 70 65 20 | 6f 66 20 77 69 6e 64 6f |he type |of windo|
|00002b80| 77 2e 20 4f 6e 20 74 68 | 65 20 4d 61 63 2c 20 74 |w. On th|e Mac, t|
|00002b90| 68 69 73 20 69 73 20 61 | 6c 77 61 79 73 20 61 6e |his is a|lways an|
|00002ba0| 20 69 6e 74 65 67 65 72 | 2c 20 62 75 74 20 74 68 | integer|, but th|
|00002bb0| 69 73 20 6d 65 74 68 6f | 64 51 2d 2d 20 72 65 74 |is metho|dQ-- ret|
|00002bc0| 75 72 6e 73 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |urns a s|tring of|
|00002bd0| 20 74 68 65 20 69 6e 74 | 65 67 65 72 2c 20 66 6f | the int|eger, fo|
|00002be0| 72 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |r compat|ibility |
|00002bf0| 77 69 74 68 20 74 68 65 | 20 57 69 6e 20 76 65 72 |with the| Win ver|
|00002c00| 73 69 6f 6e 20 28 77 68 | 65 72 65 54 2d 2d 20 77 |sion (wh|ereT-- w|
|00002c10| 69 6e 64 6f 77 54 79 70 | 65 73 20 63 61 6e 20 62 |indowTyp|es can b|
|00002c20| 65 20 73 74 72 69 6e 67 | 73 29 2e 20 52 65 74 75 |e string|s). Retu|
|00002c30| 72 6e 73 20 45 4d 50 54 | 59 20 69 66 20 74 68 65 |rns EMPT|Y if the|
|00002c40| 20 73 75 70 70 6c 69 65 | 64 20 77 69 6e 64 6f 77 | supplie|d window|
|00002c50| 49 44 20 69 73 20 6e 6f | 74 20 76 61 6c 69 64 2e |ID is no|t valid.|
|00002c60| 1b 53 49 20 6d 47 65 74 | 57 69 6e 64 6f 77 54 79 |.SI mGet|WindowTy|
|00002c70| 70 65 2c 20 77 69 6e 64 | 6f 77 49 44 44 2d 2d 20 |pe, wind|owIDD-- |
|00002c80| 53 79 6e 6f 6e 79 6d 20 | 66 6f 72 20 6d 57 69 6e |Synonym |for mWin|
|00002c90| 64 6f 77 54 79 70 65 2c | 20 66 6f 72 20 63 6f 6d |dowType,| for com|
|00002ca0| 70 61 74 69 62 69 6c 69 | 74 79 20 77 69 74 68 20 |patibili|ty with |
|00002cb0| 65 61 72 6c 69 65 72 20 | 72 65 6c 65 61 73 65 73 |earlier |releases|
|00002cc0| 2e 1d 49 49 20 6d 57 69 | 6e 64 6f 77 49 73 56 69 |..II mWi|ndowIsVi|
|00002cd0| 73 69 62 6c 65 2c 20 77 | 69 6e 64 6f 77 49 44 4c |sible, w|indowIDL|
|00002ce0| 2d 2d 20 52 65 74 75 72 | 6e 73 20 54 52 55 45 20 |-- Retur|ns TRUE |
|00002cf0| 69 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 69 73 |if the w|indow is|
|00002d00| 20 64 69 73 70 6c 61 79 | 65 64 20 28 62 75 74 20 | display|ed (but |
|00002d10| 70 6f 73 73 69 62 6c 79 | 20 6f 62 73 63 75 72 65 |possibly| obscure|
|00002d20| 64 29 2c 20 6f 72 20 46 | 41 4c 53 45 12 2d 2d 20 |d), or F|ALSE.-- |
|00002d30| 69 66 20 69 74 27 73 20 | 68 69 64 64 65 6e 2e 12 |if it's |hidden..|
|00002d40| 49 20 6d 47 65 74 41 63 | 74 69 76 65 57 69 6e 64 |I mGetAc|tiveWind|
|00002d50| 6f 77 54 2d 2d 20 52 65 | 74 75 72 6e 73 20 77 69 |owT-- Re|turns wi|
|00002d60| 6e 64 6f 77 49 44 20 6f | 66 20 74 68 65 20 66 72 |ndowID o|f the fr|
|00002d70| 6f 6e 74 6d 6f 73 74 20 | 77 69 6e 64 6f 77 20 28 |ontmost |window (|
|00002d80| 30 20 69 66 20 6e 6f 20 | 77 69 6e 64 6f 77 73 20 |0 if no |windows |
|00002d90| 61 72 65 20 76 69 73 69 | 62 6c 65 20 6f 72 20 61 |are visi|ble or a|
|00002da0| 63 74 69 76 65 29 2e 49 | 2d 2d 20 4e 6f 74 65 3a |ctive).I|-- Note:|
|00002db0| 20 74 68 69 73 20 6f 6e | 6c 79 20 61 70 70 6c 69 | this on|ly appli|
|00002dc0| 65 73 20 74 6f 20 77 69 | 6e 64 6f 77 73 20 6f 77 |es to wi|ndows ow|
|00002dd0| 6e 65 64 20 62 79 20 74 | 68 65 20 44 69 72 65 63 |ned by t|he Direc|
|00002de0| 74 6f 72 20 74 61 73 6b | 2e 20 55 73 75 61 6c 6c |tor task|. Usuall|
|00002df0| 79 50 2d 2d 20 72 65 74 | 75 72 6e 73 20 74 68 65 |yP-- ret|urns the|
|00002e00| 20 73 61 6d 65 20 77 69 | 6e 64 6f 77 20 61 73 20 | same wi|ndow as |
|00002e10| 6d 44 69 72 65 63 74 6f | 72 53 74 61 67 65 57 69 |mDirecto|rStageWi|
|00002e20| 6e 64 6f 77 20 69 6e 20 | 70 72 6f 6a 65 63 74 6f |ndow in |projecto|
|00002e30| 72 73 2c 20 62 75 74 20 | 63 6f 75 6c 64 20 61 6c |rs, but |could al|
|00002e40| 73 6f 4b 2d 2d 20 72 65 | 74 75 72 6e 20 61 75 74 |soK-- re|turn aut|
|00002e50| 68 6f 72 69 6e 67 2d 74 | 69 6d 65 20 77 69 6e 64 |horing-t|ime wind|
|00002e60| 6f 77 73 2c 20 4d 49 41 | 57 73 2c 20 6f 72 20 58 |ows, MIA|Ws, or X|
|00002e70| 74 72 61 2d 20 6f 72 20 | 58 4f 62 6a 65 63 74 2d |tra- or |XObject-|
|00002e80| 6f 77 6e 65 64 20 77 69 | 6e 64 6f 77 73 2e 1d 49 |owned wi|ndows..I|
|00002e90| 49 20 6d 53 65 74 41 63 | 74 69 76 65 57 69 6e 64 |I mSetAc|tiveWind|
|00002ea0| 6f 77 2c 20 77 69 6e 64 | 6f 77 49 44 51 2d 2d 20 |ow, wind|owIDQ-- |
|00002eb0| 53 65 74 73 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |Sets the| window |
|00002ec0| 74 6f 20 62 65 20 74 68 | 65 20 66 72 6f 6e 74 6d |to be th|e frontm|
|00002ed0| 6f 73 74 2c 20 61 63 74 | 69 76 65 20 77 69 6e 64 |ost, act|ive wind|
|00002ee0| 6f 77 20 28 6d 61 6b 69 | 6e 67 20 69 74 20 76 69 |ow (maki|ng it vi|
|00002ef0| 73 69 62 6c 65 2c 20 69 | 66 20 69 74 27 73 56 2d |sible, i|f it'sV-|
|00002f00| 2d 20 68 69 64 64 65 6e | 29 2e 20 52 65 74 75 72 |- hidden|). Retur|
|00002f10| 6e 73 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 6c |ns the p|reviousl|
|00002f20| 79 20 61 63 74 69 76 65 | 20 77 69 6e 64 6f 77 2e |y active| window.|
|00002f30| 20 4e 6f 74 65 20 31 3a | 20 44 69 72 65 63 74 6f | Note 1:| Directo|
|00002f40| 72 20 6e 6f 72 6d 61 6c | 6c 79 20 65 78 70 65 63 |r normal|ly expec|
|00002f50| 74 73 20 74 6f 49 2d 2d | 20 61 63 74 69 76 61 74 |ts toI--| activat|
|00002f60| 65 20 69 74 73 20 6f 77 | 6e 20 77 69 6e 64 6f 77 |e its ow|n window|
|00002f70| 73 2c 20 61 6e 64 20 69 | 74 73 20 6e 6f 74 69 6f |s, and i|ts notio|
|00002f80| 6e 20 6f 66 20 77 68 69 | 63 68 20 77 69 6e 64 6f |n of whi|ch windo|
|00002f90| 77 20 69 73 20 61 63 74 | 69 76 65 20 6f 72 20 4e |w is act|ive or N|
|00002fa0| 2d 2d 20 66 72 6f 6e 74 | 6d 6f 73 74 20 6d 61 79 |-- front|most may|
|00002fb0| 20 67 65 74 20 27 6f 75 | 74 20 6f 66 20 73 79 6e | get 'ou|t of syn|
|00002fc0| 63 27 20 77 68 65 6e 20 | 75 73 69 6e 67 20 74 68 |c' when |using th|
|00002fd0| 69 73 20 63 6f 6d 6d 61 | 6e 64 2e 20 53 65 6e 64 |is comma|nd. Send|
|00002fe0| 69 6e 67 20 66 61 6b 65 | 20 6d 6f 75 73 65 51 2d |ing fake| mouseQ-|
|00002ff0| 2d 20 63 6c 69 63 6b 73 | 20 69 6e 73 74 65 61 64 |- clicks| instead|
|00003000| 20 6d 61 79 20 61 76 6f | 69 64 20 74 68 69 73 2e | may avo|id this.|
|00003010| 20 4e 6f 74 65 20 32 3a | 20 74 68 69 73 20 6d 65 | Note 2:| this me|
|00003020| 74 68 6f 64 20 6f 6e 6c | 79 20 61 70 70 6c 69 65 |thod onl|y applie|
|00003030| 73 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s to the| current|
|00003040| 57 2d 2d 20 44 69 72 65 | 63 74 6f 72 20 74 61 73 |W-- Dire|ctor tas|
|00003050| 6b 2d 2d 20 75 73 65 20 | 6d 57 69 6e 64 6f 77 54 |k-- use |mWindowT|
|00003060| 6f 46 72 6f 6e 74 20 77 | 69 74 68 20 6f 74 68 65 |oFront w|ith othe|
|00003070| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 20 |r applic|ations. |
|00003080| 4e 6f 74 65 20 33 3a 20 | 74 68 69 73 20 6d 65 74 |Note 3: |this met|
|00003090| 68 6f 64 20 77 69 6c 6c | 4b 2d 2d 20 61 75 74 6f |hod will|K-- auto|
|000030a0| 6d 61 74 69 63 61 6c 6c | 79 20 62 72 69 6e 67 20 |maticall|y bring |
|000030b0| 74 68 65 20 44 69 72 65 | 63 74 6f 72 20 74 61 73 |the Dire|ctor tas|
|000030c0| 6b 20 74 6f 20 74 68 65 | 20 66 72 6f 6e 74 2c 20 |k to the| front, |
|000030d0| 69 66 20 69 74 27 73 20 | 6e 6f 74 20 61 6c 72 65 |if it's |not alre|
|000030e0| 61 64 79 2e 19 49 20 6d | 47 65 74 4b 65 79 62 6f |ady..I m|GetKeybo|
|000030f0| 61 72 64 49 6e 70 75 74 | 57 69 6e 64 6f 77 51 2d |ardInput|WindowQ-|
|00003100| 2d 20 4f 6e 20 57 69 6e | 64 6f 77 73 2c 20 74 68 |- On Win|dows, th|
|00003110| 69 73 20 69 73 20 61 20 | 64 69 73 74 69 6e 63 74 |is is a |distinct|
|00003120| 20 73 79 73 74 65 6d 20 | 63 61 6c 6c 2e 20 4f 6e | system |call. On|
|00003130| 20 74 68 65 20 4d 61 63 | 2c 20 74 68 65 72 65 20 | the Mac|, there |
|00003140| 69 73 20 6e 6f 20 73 75 | 63 68 20 63 61 6c 6c 2c |is no su|ch call,|
|00003150| 44 2d 2d 20 73 6f 20 74 | 68 69 73 20 6d 65 74 68 |D-- so t|his meth|
|00003160| 6f 64 20 69 73 20 6a 75 | 73 74 20 61 20 73 79 6e |od is ju|st a syn|
|00003170| 6f 6e 79 6d 20 66 6f 72 | 20 6d 47 65 74 41 63 74 |onym for| mGetAct|
|00003180| 69 76 65 57 69 6e 64 6f | 77 20 6f 6e 20 74 68 65 |iveWindo|w on the|
|00003190| 20 4d 61 63 2e 24 49 49 | 20 6d 53 65 74 4b 65 79 | Mac.$II| mSetKey|
|000031a0| 62 6f 61 72 64 49 6e 70 | 75 74 57 69 6e 64 6f 77 |boardInp|utWindow|
|000031b0| 2c 20 77 69 6e 64 6f 77 | 49 44 54 2d 2d 20 4f 6e |, window|IDT-- On|
|000031c0| 20 57 69 6e 64 6f 77 73 | 2c 20 74 68 69 73 20 69 | Windows|, this i|
|000031d0| 73 20 61 20 64 69 73 74 | 69 6e 63 74 20 73 79 73 |s a dist|inct sys|
|000031e0| 74 65 6d 20 63 61 6c 6c | 2c 20 77 69 74 68 20 6e |tem call|, with n|
|000031f0| 6f 20 4d 61 63 20 65 71 | 75 69 76 61 6c 65 6e 74 |o Mac eq|uivalent|
|00003200| 3b 20 74 68 65 72 65 66 | 6f 72 65 2c 20 6f 6e 40 |; theref|ore, on@|
|00003210| 2d 2d 20 74 68 65 20 4d | 61 63 2c 20 74 68 69 73 |-- the M|ac, this|
|00003220| 20 6d 65 74 68 6f 64 20 | 69 73 20 6a 75 73 74 20 | method |is just |
|00003230| 61 20 73 79 6e 6f 6e 79 | 6d 6e 20 66 6f 72 20 6d |a synony|mn for m|
|00003240| 53 65 74 41 63 74 69 76 | 65 57 69 6e 64 6f 77 2e |SetActiv|eWindow.|
|00003250| 1f 49 49 20 6d 43 61 70 | 74 75 72 65 4d 6f 75 73 |.II mCap|tureMous|
|00003260| 65 49 6e 70 75 74 2c 20 | 77 69 6e 64 6f 77 49 44 |eInput, |windowID|
|00003270| 51 2d 2d 20 4f 6e 20 57 | 69 6e 64 6f 77 73 2c 20 |Q-- On W|indows, |
|00003280| 74 68 69 73 20 69 73 20 | 61 20 64 69 73 74 69 6e |this is |a distin|
|00003290| 63 74 20 73 79 73 74 65 | 6d 20 63 61 6c 6c 2e 20 |ct syste|m call. |
|000032a0| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 74 68 65 72 |On the M|ac, ther|
|000032b0| 65 20 69 73 20 6e 6f 20 | 73 75 63 68 20 63 61 6c |e is no |such cal|
|000032c0| 6c 2c 44 2d 2d 20 73 6f | 20 74 68 69 73 20 6d 65 |l,D-- so| this me|
|000032d0| 74 68 6f 64 20 69 73 20 | 6a 75 73 74 20 61 20 73 |thod is |just a s|
|000032e0| 79 6e 6f 6e 79 6d 20 66 | 6f 72 20 6d 53 65 74 41 |ynonym f|or mSetA|
|000032f0| 63 74 69 76 65 57 69 6e | 64 6f 77 20 6f 6e 20 74 |ctiveWin|dow on t|
|00003300| 68 65 20 4d 61 63 2e 14 | 58 20 6d 52 65 6c 65 61 |he Mac..|X mRelea|
|00003310| 73 65 4d 6f 75 73 65 49 | 6e 70 75 74 54 2d 2d 20 |seMouseI|nputT-- |
|00003320| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 74 68 69 73 |On the M|ac, this|
|00003330| 20 6d 65 74 68 6f 64 20 | 64 6f 65 73 20 6e 6f 74 | method |does not|
|00003340| 68 69 6e 67 2c 20 62 65 | 63 61 75 73 65 20 74 68 |hing, be|cause th|
|00003350| 65 72 65 27 73 20 6e 6f | 20 4d 61 63 20 65 71 75 |ere's no| Mac equ|
|00003360| 69 76 61 6c 65 6e 74 20 | 66 6f 72 20 74 68 69 73 |ivalent |for this|
|00003370| 2e 17 2d 2d 20 57 69 6e | 64 6f 77 73 20 73 79 73 |..-- Win|dows sys|
|00003380| 74 65 6d 20 63 61 6c 6c | 2e 25 49 49 20 6d 47 65 |tem call|.%II mGe|
|00003390| 74 50 61 72 65 6e 74 57 | 69 6e 64 6f 77 54 6f 70 |tParentW|indowTop|
|000033a0| 43 68 69 6c 64 2c 20 77 | 69 6e 64 6f 77 49 44 51 |Child, w|indowIDQ|
|000033b0| 2d 2d 20 57 69 6e 64 6f | 77 73 20 61 72 63 68 69 |-- Windo|ws archi|
|000033c0| 74 65 63 74 75 72 65 20 | 64 69 66 66 65 72 73 20 |tecture |differs |
|000033d0| 66 72 6f 6d 20 4d 61 63 | 20 61 72 63 68 69 74 65 |from Mac| archite|
|000033e0| 63 74 75 72 65 2e 20 4f | 6e 20 57 69 6e 64 6f 77 |cture. O|n Window|
|000033f0| 73 2c 20 65 61 63 68 20 | 61 70 70 20 68 61 73 20 |s, each |app has |
|00003400| 61 55 2d 2d 20 70 61 72 | 65 6e 74 20 77 69 6e 64 |aU-- par|ent wind|
|00003410| 6f 77 20 77 68 69 63 68 | 20 6d 61 79 20 63 6f 6e |ow which| may con|
|00003420| 74 61 69 6e 20 6f 74 68 | 65 72 20 77 69 6e 64 6f |tain oth|er windo|
|00003430| 77 73 20 28 65 6e 74 69 | 72 65 6c 79 20 77 69 74 |ws (enti|rely wit|
|00003440| 68 69 6e 20 74 68 65 20 | 70 61 72 65 6e 74 29 2e |hin the |parent).|
|00003450| 20 4f 6e 20 74 68 65 53 | 2d 2d 20 4d 61 63 2c 20 | On theS|-- Mac, |
|00003460| 70 61 72 65 6e 74 20 77 | 69 6e 64 6f 77 73 20 6d |parent w|indows m|
|00003470| 61 79 20 61 70 70 65 61 | 72 20 61 6e 79 77 68 65 |ay appea|r anywhe|
|00003480| 72 65 20 6f 6e 20 74 68 | 65 20 64 65 73 6b 74 6f |re on th|e deskto|
|00003490| 70 2c 20 61 6e 64 20 64 | 6f 6e 27 74 20 6f 77 6e |p, and d|on't own|
|000034a0| 20 73 75 62 77 69 6e 64 | 6f 77 73 53 2d 2d 20 70 | subwind|owsS-- p|
|000034b0| 65 72 20 73 65 2d 2d 20 | 70 65 72 68 61 70 73 20 |er se-- |perhaps |
|000034c0| 73 6f 6d 65 20 63 6f 6e | 74 72 6f 6c 73 20 77 69 |some con|trols wi|
|000034d0| 74 68 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 2c |thin the| window,|
|000034e0| 20 62 75 74 20 74 68 65 | 73 65 20 63 6f 6e 74 72 | but the|se contr|
|000034f0| 6f 6c 73 20 64 6f 20 6e | 6f 74 20 68 61 76 65 50 |ols do n|ot haveP|
|00003500| 2d 2d 20 61 6e 79 20 66 | 72 6f 6e 74 2d 74 6f 2d |-- any f|ront-to-|
|00003510| 62 61 63 6b 20 6c 61 79 | 65 72 69 6e 67 2e 20 4f |back lay|ering. O|
|00003520| 6e 20 74 68 65 20 4d 61 | 63 2c 20 74 68 65 72 65 |n the Ma|c, there|
|00003530| 66 6f 72 65 2c 20 74 68 | 69 73 20 6d 65 74 68 6f |fore, th|is metho|
|00003540| 64 20 73 69 6d 70 6c 79 | 20 72 65 74 75 72 6e 73 |d simply| returns|
|00003550| 47 2d 2d 20 74 68 65 20 | 66 69 72 73 74 20 63 6f |G-- the |first co|
|00003560| 6e 74 72 6f 6c 20 6f 77 | 6e 65 64 20 62 79 20 61 |ntrol ow|ned by a|
|00003570| 20 77 69 6e 64 6f 77 20 | 28 6f 72 20 30 20 69 66 | window |(or 0 if|
|00003580| 20 74 68 65 72 65 20 61 | 72 65 20 6e 6f 20 63 6f | there a|re no co|
|00003590| 6e 74 72 6f 6c 73 29 2e | 13 49 20 6d 47 65 74 44 |ntrols).|.I mGetD|
|000035a0| 65 73 6b 74 6f 70 57 69 | 6e 64 6f 77 4f 2d 2d 20 |esktopWi|ndowO-- |
|000035b0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 77 69 6e 64 |Returns |the wind|
|000035c0| 6f 77 49 44 20 6f 66 20 | 74 68 65 20 4d 61 63 20 |owID of |the Mac |
|000035d0| 64 65 73 6b 74 6f 70 20 | 69 74 73 65 6c 66 20 28 |desktop |itself (|
|000035e0| 77 68 69 63 68 20 69 6e | 63 6c 75 64 65 73 20 61 |which in|cludes a|
|000035f0| 6c 6c 20 73 63 72 65 65 | 6e 73 29 2e 4e 2d 2d 20 |ll scree|ns).N-- |
|00003600| 44 69 72 65 63 74 6f 72 | 20 35 20 75 73 65 72 73 |Director| 5 users|
|00003610| 20 6d 61 79 20 70 72 65 | 66 65 72 20 74 6f 20 75 | may pre|fer to u|
|00003620| 73 65 20 74 68 65 20 62 | 75 69 6c 74 2d 69 6e 20 |se the b|uilt-in |
|00003630| 4c 69 6e 67 6f 20 27 64 | 65 73 6b 74 6f 70 52 65 |Lingo 'd|esktopRe|
|00003640| 63 74 4c 69 73 74 27 20 | 66 6f 72 53 2d 2d 20 74 |ctList' |forS-- t|
|00003650| 68 69 73 2e 20 54 68 69 | 73 20 77 69 6e 64 6f 77 |his. Thi|s window|
|00003660| 27 73 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 61 72 |'s dimen|sions ar|
|00003670| 65 20 66 61 62 72 69 63 | 61 74 65 64 20 62 79 20 |e fabric|ated by |
|00003680| 4d 61 63 20 4d 61 73 74 | 65 72 41 70 70 2c 20 69 |Mac Mast|erApp, i|
|00003690| 6e 20 6f 72 64 65 72 20 | 74 6f 20 6b 65 65 70 56 |n order |to keepV|
|000036a0| 2d 2d 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |-- compa|tibility|
|000036b0| 20 77 69 74 68 20 74 68 | 65 20 57 69 6e 64 6f 77 | with th|e Window|
|000036c0| 73 20 76 65 72 73 69 6f | 6e 20 6f 66 20 4d 61 73 |s versio|n of Mas|
|000036d0| 74 65 72 41 70 70 2e 20 | 49 6e 20 74 68 65 20 74 |terApp. |In the t|
|000036e0| 72 75 65 20 4d 61 63 4f | 53 20 77 69 6e 64 6f 77 |rue MacO|S window|
|000036f0| 20 6c 69 73 74 2c 2c 2d | 2d 20 74 68 69 73 20 77 | list,,-|- this w|
|00003700| 69 6e 64 6f 77 20 69 73 | 20 7a 65 72 6f 20 70 69 |indow is| zero pi|
|00003710| 78 65 6c 73 20 74 61 6c | 6c 20 61 6e 64 20 77 69 |xels tal|l and wi|
|00003720| 64 65 2e 22 53 49 20 6d | 47 65 74 57 69 6e 64 6f |de."SI m|GetWindo|
|00003730| 77 4f 75 74 73 69 64 65 | 52 65 63 74 2c 20 77 69 |wOutside|Rect, wi|
|00003740| 6e 64 6f 77 49 44 4c 2d | 2d 20 52 65 74 75 72 6e |ndowIDL-|- Return|
|00003750| 73 20 61 20 77 69 6e 64 | 6f 77 27 73 20 64 69 6d |s a wind|ow's dim|
|00003760| 65 6e 73 69 6f 6e 73 2c | 20 72 65 6c 61 74 69 76 |ensions,| relativ|
|00003770| 65 20 74 6f 20 74 68 65 | 20 6d 61 69 6e 20 73 63 |e to the| main sc|
|00003780| 72 65 65 6e 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |reen, in|cluding |
|00003790| 61 6e 79 4d 2d 2d 20 74 | 69 74 6c 65 20 62 61 72 |anyM-- t|itle bar|
|000037a0| 20 61 72 65 61 2c 20 61 | 73 20 61 20 66 6f 75 72 | area, a|s a four|
|000037b0| 2d 77 6f 72 64 20 73 74 | 72 69 6e 67 20 6f 66 20 |-word st|ring of |
|000037c0| 69 6e 74 65 67 65 72 73 | 20 69 6e 20 74 68 65 20 |integers| in the |
|000037d0| 6f 72 64 65 72 3a 20 6c | 65 66 74 2c 20 74 6f 70 |order: l|eft, top|
|000037e0| 2c 4c 2d 2d 20 72 69 67 | 68 74 2c 20 62 6f 74 74 |,L-- rig|ht, bott|
|000037f0| 6f 6d 2e 20 52 65 74 75 | 72 6e 73 20 27 45 72 72 |om. Retu|rns 'Err|
|00003800| 6f 72 3a 27 20 61 73 20 | 77 6f 72 64 20 31 20 69 |or:' as |word 1 i|
|00003810| 66 20 74 68 65 72 65 27 | 73 20 61 20 70 72 6f 62 |f there'|s a prob|
|00003820| 6c 65 6d 2e 20 4e 6f 74 | 65 20 74 68 61 74 4b 2d |lem. Not|e thatK-|
|00003830| 2d 20 73 6f 6d 65 20 61 | 70 70 73 20 28 44 69 72 |- some a|pps (Dir|
|00003840| 65 63 74 6f 72 20 69 74 | 73 65 6c 66 20 69 6e 63 |ector it|self inc|
|00003850| 6c 75 64 65 64 29 2c 20 | 65 78 70 65 63 74 69 6e |luded), |expectin|
|00003860| 67 20 74 6f 20 6d 61 69 | 6e 74 61 69 6e 20 63 68 |g to mai|ntain ch|
|00003870| 69 6c 64 20 77 69 6e 64 | 6f 77 4b 2d 2d 20 64 69 |ild wind|owK-- di|
|00003880| 6d 65 6e 73 69 6f 6e 73 | 20 70 72 69 76 61 74 65 |mensions| private|
|00003890| 6c 79 2c 20 6d 61 79 20 | 72 65 74 75 72 6e 20 76 |ly, may |return v|
|000038a0| 61 6c 75 65 73 20 74 68 | 61 74 20 61 72 65 20 6f |alues th|at are o|
|000038b0| 66 66 73 65 74 20 66 72 | 6f 6d 20 74 72 75 65 20 |ffset fr|om true |
|000038c0| 73 63 72 65 65 6e 50 2d | 2d 20 63 6f 6f 72 64 69 |screenP-|- coordi|
|000038d0| 6e 61 74 65 73 3b 20 74 | 65 73 74 69 6e 67 20 69 |nates; t|esting i|
|000038e0| 73 20 72 65 71 75 69 72 | 65 64 20 66 6f 72 20 65 |s requir|ed for e|
|000038f0| 61 63 68 20 61 70 70 20 | 77 69 74 68 20 77 68 69 |ach app |with whi|
|00003900| 63 68 20 79 6f 75 20 75 | 73 65 20 74 68 69 73 20 |ch you u|se this |
|00003910| 6d 65 74 68 6f 64 2e 21 | 53 49 20 6d 47 65 74 57 |method.!|SI mGetW|
|00003920| 69 6e 64 6f 77 49 6e 73 | 69 64 65 52 65 63 74 2c |indowIns|ideRect,|
|00003930| 20 77 69 6e 64 6f 77 49 | 44 4c 2d 2d 20 52 65 74 | windowI|DL-- Ret|
|00003940| 75 72 6e 73 20 61 20 77 | 69 6e 64 6f 77 27 73 20 |urns a w|indow's |
|00003950| 64 69 6d 65 6e 73 69 6f | 6e 73 2c 20 72 65 6c 61 |dimensio|ns, rela|
|00003960| 74 69 76 65 20 74 6f 20 | 74 68 65 20 6d 61 69 6e |tive to |the main|
|00003970| 20 73 63 72 65 65 6e 2c | 20 6e 6f 74 20 69 6e 63 | screen,| not inc|
|00003980| 6c 75 64 69 6e 67 4c 2d | 2d 20 61 6e 79 20 74 69 |ludingL-|- any ti|
|00003990| 74 6c 65 20 62 61 72 20 | 61 72 65 61 2c 20 69 6e |tle bar |area, in|
|000039a0| 20 74 68 65 20 73 61 6d | 65 20 66 6f 72 6d 61 74 | the sam|e format|
|000039b0| 20 75 73 65 64 20 62 79 | 20 6d 47 65 74 57 69 6e | used by| mGetWin|
|000039c0| 64 6f 77 4f 75 74 73 69 | 64 65 52 65 63 74 2e 20 |dowOutsi|deRect. |
|000039d0| 54 68 65 3a 2d 2d 20 73 | 61 6d 65 20 70 72 65 63 |The:-- s|ame prec|
|000039e0| 61 75 74 69 6f 6e 73 20 | 64 6f 63 75 6d 65 6e 74 |autions |document|
|000039f0| 65 64 20 74 68 65 72 65 | 20 61 70 70 6c 79 20 74 |ed there| apply t|
|00003a00| 6f 20 74 68 69 73 20 6d | 65 74 68 6f 64 2e 40 49 |o this m|ethod.@I|
|00003a10| 49 49 49 49 49 20 6d 53 | 65 74 57 69 6e 64 6f 77 |IIIII mS|etWindow|
|00003a20| 4f 75 74 73 69 64 65 52 | 65 63 74 2c 20 77 69 6e |OutsideR|ect, win|
|00003a30| 64 6f 77 49 44 2c 20 6c | 65 66 74 2c 20 74 6f 70 |dowID, l|eft, top|
|00003a40| 2c 20 72 69 67 68 74 2c | 20 62 6f 74 74 6f 6d 45 |, right,| bottomE|
|00003a50| 2d 2d 20 53 65 74 73 20 | 6f 75 74 73 69 64 65 20 |-- Sets |outside |
|00003a60| 77 69 6e 64 6f 77 20 72 | 65 63 74 61 6e 67 6c 65 |window r|ectangle|
|00003a70| 20 64 69 6d 65 6e 73 69 | 6f 6e 73 2e 20 59 6f 75 | dimensi|ons. You|
|00003a80| 20 63 61 6e 20 6d 6f 76 | 65 20 6f 72 20 72 65 73 | can mov|e or res|
|00003a90| 69 7a 65 20 61 47 2d 2d | 20 77 69 6e 64 6f 77 20 |ize aG--| window |
|00003aa0| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 64 69 6d |based on| the dim|
|00003ab0| 65 6e 73 69 6f 6e 73 20 | 79 6f 75 20 70 72 6f 76 |ensions |you prov|
|00003ac0| 69 64 65 2e 20 52 65 74 | 75 72 6e 73 20 30 20 69 |ide. Ret|urns 0 i|
|00003ad0| 66 20 73 75 63 63 65 73 | 73 66 75 6c 2c 49 2d 2d |f succes|sful,I--|
|00003ae0| 20 31 20 69 66 20 74 68 | 65 20 73 75 70 70 6c 69 | 1 if th|e suppli|
|00003af0| 65 64 20 64 69 6d 65 6e | 73 69 6f 6e 73 20 61 72 |ed dimen|sions ar|
|00003b00| 65 20 69 6e 76 61 6c 69 | 64 2c 20 32 20 69 66 20 |e invali|d, 2 if |
|00003b10| 74 68 65 20 77 69 6e 64 | 6f 77 27 73 20 6e 6f 74 |the wind|ow's not|
|00003b20| 20 76 61 6c 69 64 2e 4c | 2d 2d 20 4e 6f 74 65 20 | valid.L|-- Note |
|00003b30| 74 68 61 74 20 74 68 69 | 73 20 6d 65 74 68 6f 64 |that thi|s method|
|00003b40| 20 62 65 68 61 76 65 73 | 20 64 69 66 66 65 72 65 | behaves| differe|
|00003b50| 6e 74 6c 79 20 6f 6e 20 | 4d 61 63 20 61 6e 64 20 |ntly on |Mac and |
|00003b60| 57 69 6e 64 6f 77 73 2e | 20 53 63 72 6f 6c 6c 20 |Windows.| Scroll |
|00003b70| 62 61 72 73 49 2d 2d 20 | 61 6e 64 20 6f 74 68 65 |barsI-- |and othe|
|00003b80| 72 20 77 69 6e 64 6f 77 | 20 63 6f 6e 74 65 6e 74 |r window| content|
|00003b90| 20 63 61 6e 20 62 65 63 | 6f 6d 65 20 68 69 64 64 | can bec|ome hidd|
|00003ba0| 65 6e 20 61 73 20 61 20 | 72 65 73 75 6c 74 20 6f |en as a |result o|
|00003bb0| 6e 20 74 68 65 20 4d 61 | 63 2c 20 62 75 74 48 2d |n the Ma|c, butH-|
|00003bc0| 2d 20 6f 6e 20 57 69 6e | 64 6f 77 73 2c 20 74 68 |- on Win|dows, th|
|00003bd0| 65 20 65 6e 74 69 72 65 | 20 77 69 6e 64 6f 77 20 |e entire| window |
|00003be0| 61 6e 64 20 69 74 73 20 | 63 6f 6e 74 72 6f 6c 73 |and its |controls|
|00003bf0| 20 61 72 65 20 72 65 64 | 72 61 77 6e 20 74 6f 20 | are red|rawn to |
|00003c00| 74 68 65 20 6e 65 77 4c | 2d 2d 20 73 69 7a 65 2e |the newL|-- size.|
|00003c10| 20 4f 6e 20 74 68 65 20 | 4d 61 63 2c 20 69 74 27 | On the |Mac, it'|
|00003c20| 73 20 62 65 73 74 20 74 | 6f 20 63 68 61 6e 67 65 |s best t|o change|
|00003c30| 20 6f 6e 6c 79 20 74 68 | 65 20 70 6f 73 69 74 69 | only th|e positi|
|00003c40| 6f 6e 20 6f 66 20 74 68 | 65 20 72 65 63 74 61 6e |on of th|e rectan|
|00003c50| 67 6c 65 2c 4d 2d 2d 20 | 6e 6f 74 20 69 74 73 20 |gle,M-- |not its |
|00003c60| 68 65 69 67 68 74 20 61 | 6e 64 20 77 69 64 74 68 |height a|nd width|
|00003c70| 2e 20 59 6f 75 20 6d 61 | 79 20 62 65 20 61 62 6c |. You ma|y be abl|
|00003c80| 65 20 74 6f 20 75 73 65 | 20 74 68 65 20 6d 46 61 |e to use| the mFa|
|00003c90| 6b 65 4d 6f 75 73 65 44 | 72 61 67 20 6d 65 74 68 |keMouseD|rag meth|
|00003ca0| 6f 64 4a 2d 2d 20 62 65 | 6c 6f 77 20 74 6f 20 73 |odJ-- be|low to s|
|00003cb0| 69 6d 75 6c 61 74 65 20 | 61 20 64 72 61 67 20 6f |imulate |a drag o|
|00003cc0| 6e 20 74 68 65 20 72 65 | 73 69 7a 69 6e 67 20 62 |n the re|sizing b|
|00003cd0| 6f 78 20 6f 6e 20 74 68 | 65 20 4d 61 63 2c 20 74 |ox on th|e Mac, t|
|00003ce0| 6f 20 61 63 68 65 69 76 | 65 20 74 68 65 2e 2d 2d |o acheiv|e the.--|
|00003cf0| 20 65 66 66 65 63 74 20 | 6f 66 20 6d 53 65 74 57 | effect |of mSetW|
|00003d00| 69 6e 64 6f 77 4f 75 74 | 73 69 64 65 52 65 63 74 |indowOut|sideRect|
|00003d10| 20 6f 6e 20 57 69 6e 64 | 6f 77 73 2e 39 49 49 49 | on Wind|ows.9III|
|00003d20| 49 49 49 20 6d 53 65 74 | 57 69 6e 64 6f 77 52 65 |III mSet|WindowRe|
|00003d30| 63 74 2c 20 77 69 6e 64 | 6f 77 49 44 2c 20 6c 65 |ct, wind|owID, le|
|00003d40| 66 74 2c 20 74 6f 70 2c | 20 72 69 67 68 74 2c 20 |ft, top,| right, |
|00003d50| 62 6f 74 74 6f 6d 4d 2d | 2d 20 53 79 6e 6f 6e 79 |bottomM-|- Synony|
|00003d60| 6d 20 66 6f 72 20 6d 53 | 65 74 57 69 6e 64 6f 77 |m for mS|etWindow|
|00003d70| 4f 75 74 73 69 64 65 52 | 65 63 74 2c 20 66 6f 72 |OutsideR|ect, for|
|00003d80| 20 63 6f 6d 70 61 74 69 | 62 69 69 74 79 20 77 69 | compati|biity wi|
|00003d90| 74 68 20 65 61 72 6c 69 | 65 72 20 76 65 72 73 69 |th earli|er versi|
|00003da0| 6f 6e 73 2e 1b 49 49 20 | 6d 57 69 6e 64 6f 77 54 |ons..II |mWindowT|
|00003db0| 6f 46 72 6f 6e 74 2c 20 | 77 69 6e 64 6f 77 49 44 |oFront, |windowID|
|00003dc0| 4e 2d 2d 20 42 72 69 6e | 67 73 20 61 20 77 69 6e |N-- Brin|gs a win|
|00003dd0| 64 6f 77 20 74 6f 20 74 | 68 65 20 66 72 6f 6e 74 |dow to t|he front|
|00003de0| 2e 20 49 66 20 74 68 65 | 20 77 69 6e 64 6f 77 27 |. If the| window'|
|00003df0| 73 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |s applic|ation is|
|00003e00| 20 6e 6f 74 20 61 6c 72 | 65 61 64 79 20 69 6e 24 | not alr|eady in$|
|00003e10| 2d 2d 20 66 72 6f 6e 74 | 2c 20 69 74 20 77 69 6c |-- front|, it wil|
|00003e20| 6c 20 62 65 20 6d 61 64 | 65 20 66 72 6f 6e 74 6d |l be mad|e frontm|
|00003e30| 6f 73 74 2e 1a 49 49 20 | 6d 57 69 6e 64 6f 77 54 |ost..II |mWindowT|
|00003e40| 6f 42 61 63 6b 2c 20 77 | 69 6e 64 6f 77 49 44 46 |oBack, w|indowIDF|
|00003e50| 2d 2d 20 53 65 6e 64 73 | 20 61 20 77 69 6e 64 6f |-- Sends| a windo|
|00003e60| 77 20 74 6f 20 74 68 65 | 20 62 61 63 6b 2e 20 44 |w to the| back. D|
|00003e70| 6f 65 73 20 6e 6f 74 20 | 61 66 66 65 63 74 20 61 |oes not |affect a|
|00003e80| 70 70 6c 69 63 61 74 69 | 6f 6e 20 64 72 61 77 20 |pplicati|on draw |
|00003e90| 6f 72 64 65 72 21 19 49 | 49 20 6d 43 6c 6f 73 65 |order!.I|I mClose|
|00003ea0| 57 69 6e 64 6f 77 2c 20 | 77 69 6e 64 6f 77 49 44 |Window, |windowID|
|00003eb0| 4f 2d 2d 20 53 69 6d 75 | 6c 61 74 65 73 20 61 20 |O-- Simu|lates a |
|00003ec0| 6d 6f 75 73 65 20 70 72 | 65 73 73 20 6f 6e 20 61 |mouse pr|ess on a|
|00003ed0| 20 77 69 6e 64 6f 77 27 | 73 20 63 6c 6f 73 65 20 | window'|s close |
|00003ee0| 62 6f 78 2e 20 44 6f 65 | 73 20 6e 6f 74 20 77 6f |box. Doe|s not wo|
|00003ef0| 72 6b 20 69 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |rk if th|e window|
|00003f00| 4b 2d 2d 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 76 |K-- does| not hav|
|00003f10| 65 20 61 20 63 6c 6f 73 | 65 20 62 6f 78 21 20 41 |e a clos|e box! A|
|00003f20| 6c 73 6f 2c 20 61 20 77 | 69 6e 64 6f 77 20 6d 61 |lso, a w|indow ma|
|00003f30| 79 20 6e 6f 74 20 68 61 | 76 65 20 61 20 63 6c 6f |y not ha|ve a clo|
|00003f40| 73 65 20 62 6f 78 20 75 | 6e 74 69 6c 55 2d 2d 20 |se box u|ntilU-- |
|00003f50| 69 74 27 73 20 66 72 6f | 6e 74 6d 6f 73 74 2e 20 |it's fro|ntmost. |
|00003f60| 57 69 74 68 20 73 6f 6d | 65 20 61 70 70 73 2c 20 |With som|e apps, |
|00003f70| 74 6f 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 73 |to close| windows|
|00003f80| 2c 20 79 6f 75 20 6d 61 | 79 20 6e 65 65 64 20 74 |, you ma|y need t|
|00003f90| 6f 20 73 65 6e 64 20 61 | 20 66 61 6b 65 20 6d 65 |o send a| fake me|
|00003fa0| 6e 75 51 2d 2d 20 63 6f | 6d 6d 61 6e 64 20 74 6f |nuQ-- co|mmand to|
|00003fb0| 20 63 6c 6f 73 65 20 61 | 20 77 69 6e 64 6f 77 2c | close a| window,|
|00003fc0| 20 6f 72 20 73 65 6e 64 | 20 61 20 66 61 6b 65 20 | or send| a fake |
|00003fd0| 6d 6f 75 73 65 20 70 72 | 65 73 73 20 74 6f 20 73 |mouse pr|ess to s|
|00003fe0| 6f 6d 65 20 69 6e 74 65 | 72 66 61 63 65 20 67 61 |ome inte|rface ga|
|00003ff0| 64 67 65 74 50 2d 2d 20 | 77 69 74 68 69 6e 20 74 |dgetP-- |within t|
|00004000| 68 65 20 77 69 6e 64 6f | 77 20 61 72 65 61 20 69 |he windo|w area i|
|00004010| 74 73 65 6c 66 2e 20 4e | 6f 74 65 20 31 3a 20 6d |tself. N|ote 1: m|
|00004020| 48 69 64 65 57 69 6e 64 | 6f 77 20 6d 61 79 20 77 |HideWind|ow may w|
|00004030| 6f 72 6b 20 62 65 74 74 | 65 72 2d 2d 20 44 69 72 |ork bett|er-- Dir|
|00004040| 65 63 74 6f 72 4a 2d 2d | 20 69 74 73 65 6c 66 20 |ectorJ--| itself |
|00004050| 73 69 6d 70 6c 79 20 68 | 69 64 65 73 20 61 75 74 |simply h|ides aut|
|00004060| 68 6f 72 69 6e 67 2d 74 | 69 6d 65 20 77 69 6e 64 |horing-t|ime wind|
|00004070| 6f 77 73 20 77 68 65 6e | 20 70 72 65 73 73 69 6e |ows when| pressin|
|00004080| 67 20 74 68 65 20 63 6c | 6f 73 65 20 62 6f 78 2e |g the cl|ose box.|
|00004090| 4b 2d 2d 20 4e 6f 74 65 | 20 32 3a 20 57 69 6e 64 |K-- Note| 2: Wind|
|000040a0| 6f 77 73 20 61 70 70 73 | 20 71 75 69 74 20 77 68 |ows apps| quit wh|
|000040b0| 65 6e 20 74 68 65 20 6d | 61 69 6e 20 77 69 6e 64 |en the m|ain wind|
|000040c0| 6f 77 20 63 6c 6f 73 65 | 73 2c 20 62 75 74 20 6d |ow close|s, but m|
|000040d0| 6f 73 74 20 4d 61 63 20 | 61 70 70 73 4e 2d 2d 20 |ost Mac |appsN-- |
|000040e0| 64 6f 6e 27 74 20 71 75 | 69 74 2c 20 61 6e 64 20 |don't qu|it, and |
|000040f0| 73 74 69 6c 6c 20 73 68 | 6f 77 20 61 20 6d 65 6e |still sh|ow a men|
|00004100| 75 2e 20 55 73 65 20 6d | 52 75 64 65 51 75 69 74 |u. Use m|RudeQuit|
|00004110| 54 61 73 6b 20 69 6e 20 | 73 75 63 68 20 63 61 73 |Task in |such cas|
|00004120| 65 73 2e 20 4e 6f 74 65 | 20 33 3a 4e 2d 2d 20 62 |es. Note| 3:N-- b|
|00004130| 79 20 64 65 66 61 75 6c | 74 2c 20 74 68 65 20 63 |y defaul|t, the c|
|00004140| 65 6e 74 65 72 20 6f 66 | 20 74 68 65 20 63 6c 6f |enter of| the clo|
|00004150| 73 65 20 62 6f 78 20 69 | 73 20 61 73 73 75 6d 65 |se box i|s assume|
|00004160| 64 20 74 6f 20 62 65 20 | 31 34 20 70 69 78 65 6c |d to be |14 pixel|
|00004170| 73 20 66 72 6f 6d 20 74 | 68 65 50 2d 2d 20 6c 65 |s from t|heP-- le|
|00004180| 66 74 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |ft of th|e window|
|00004190| 20 74 69 74 6c 65 20 62 | 61 72 2c 20 61 6e 64 20 | title b|ar, and |
|000041a0| 38 20 70 69 78 65 6c 73 | 20 66 72 6f 6d 20 74 68 |8 pixels| from th|
|000041b0| 65 20 74 6f 70 2e 20 59 | 6f 75 20 63 61 6e 20 63 |e top. Y|ou can c|
|000041c0| 68 61 6e 67 65 20 74 68 | 65 73 65 52 2d 2d 20 76 |hange th|eseR-- v|
|000041d0| 61 6c 75 65 73 20 77 69 | 74 68 20 74 68 65 20 6d |alues wi|th the m|
|000041e0| 53 65 74 43 6c 6f 73 65 | 42 6f 78 4f 66 66 73 65 |SetClose|BoxOffse|
|000041f0| 74 20 6d 65 74 68 6f 64 | 3b 20 79 6f 75 20 63 61 |t method|; you ca|
|00004200| 6e 20 61 6c 73 6f 20 75 | 73 65 20 74 68 65 20 6d |n also u|se the m|
|00004210| 46 69 6e 64 57 69 6e 64 | 6f 77 50 61 72 74 4f 2d |FindWind|owPartO-|
|00004220| 2d 20 6d 65 74 68 6f 64 | 20 74 6f 20 6c 6f 63 61 |- method| to loca|
|00004230| 74 65 20 6f 6e 65 20 6f | 66 20 44 69 72 65 63 74 |te one o|f Direct|
|00004240| 6f 72 27 73 20 6f 77 6e | 20 77 69 6e 64 6f 77 73 |or's own| windows|
|00004250| 27 20 63 6c 6f 73 65 20 | 62 6f 78 2e 20 54 68 65 |' close |box. The|
|00004260| 73 65 20 6d 65 74 68 6f | 64 73 20 61 72 65 54 2d |se metho|ds areT-|
|00004270| 2d 20 75 73 65 66 75 6c | 20 77 68 65 6e 20 79 6f |- useful| when yo|
|00004280| 75 20 6e 65 65 64 20 74 | 6f 20 75 73 65 20 6d 43 |u need t|o use mC|
|00004290| 6c 6f 73 65 57 69 6e 64 | 6f 77 20 6f 6e 20 6e 6f |loseWind|ow on no|
|000042a0| 6e 2d 52 6f 6d 61 6e 20 | 73 79 73 74 65 6d 73 20 |n-Roman |systems |
|000042b0| 6f 72 20 77 69 74 68 20 | 6e 6f 6e 73 74 61 6e 64 |or with |nonstand|
|000042c0| 61 72 64 54 2d 2d 20 65 | 78 74 65 6e 73 69 6f 6e |ardT-- e|xtension|
|000042d0| 73 20 74 68 61 74 20 61 | 6c 74 65 72 20 74 68 65 |s that a|lter the|
|000042e0| 20 6c 6f 6f 6b 20 6f 66 | 20 77 69 6e 64 6f 77 20 | look of| window |
|000042f0| 74 69 74 6c 65 20 62 61 | 72 73 2e 20 52 65 74 75 |title ba|rs. Retu|
|00004300| 72 6e 20 76 61 6c 75 65 | 73 3a 20 30 3a 20 6f 6b |rn value|s: 0: ok|
|00004310| 3b 20 31 3a 20 62 61 64 | 25 2d 2d 20 77 69 6e 64 |; 1: bad|%-- wind|
|00004320| 6f 77 49 44 3b 20 32 3a | 20 6e 6f 20 77 69 6e 64 |owID; 2:| no wind|
|00004330| 64 6f 77 20 74 69 74 6c | 65 20 62 61 72 2e 28 58 |dow titl|e bar.(X|
|00004340| 49 49 20 6d 53 65 74 43 | 6c 6f 73 65 42 6f 78 4f |II mSetC|loseBoxO|
|00004350| 66 66 73 65 74 2c 20 68 | 4f 66 66 73 65 74 2c 20 |ffset, h|Offset, |
|00004360| 76 4f 66 66 73 65 74 55 | 2d 2d 20 41 6c 6c 6f 77 |vOffsetU|-- Allow|
|00004370| 73 20 79 6f 75 20 74 6f | 20 63 68 61 6e 67 65 20 |s you to| change |
|00004380| 74 68 65 20 64 65 66 61 | 75 6c 74 20 61 73 73 75 |the defa|ult assu|
|00004390| 6d 70 74 69 6f 6e 20 74 | 68 61 74 20 61 20 77 69 |mption t|hat a wi|
|000043a0| 6e 64 6f 77 27 73 20 63 | 6c 6f 73 65 20 62 6f 78 |ndow's c|lose box|
|000043b0| 20 69 73 20 31 34 20 70 | 69 78 65 6c 73 55 2d 2d | is 14 p|ixelsU--|
|000043c0| 20 66 72 6f 6d 20 6c 65 | 66 74 20 61 6e 64 20 38 | from le|ft and 8|
|000043d0| 20 70 69 78 65 6c 73 20 | 66 72 6f 6d 20 74 68 65 | pixels |from the|
|000043e0| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 77 69 6e 64 | top of |the wind|
|000043f0| 6f 77 20 74 69 74 6c 65 | 20 62 61 72 2e 20 41 66 |ow title| bar. Af|
|00004400| 66 65 63 74 73 20 6d 43 | 6c 6f 73 65 57 69 6e 64 |fects mC|loseWind|
|00004410| 6f 77 2e 19 49 49 49 20 | 6d 46 69 6e 64 57 69 6e |ow..III |mFindWin|
|00004420| 64 6f 77 50 61 72 74 2c | 20 78 2c 20 79 50 2d 2d |dowPart,| x, yP--|
|00004430| 20 41 6c 6c 6f 77 73 20 | 79 6f 75 20 74 6f 20 66 | Allows |you to f|
|00004440| 69 6e 64 20 77 68 61 74 | 20 70 61 72 74 20 6f 66 |ind what| part of|
|00004450| 20 61 20 77 69 6e 64 6f | 77 20 69 73 20 75 6e 64 | a windo|w is und|
|00004460| 65 72 20 70 6f 69 6e 74 | 28 78 2c 79 29 2e 20 4f |er point|(x,y). O|
|00004470| 6e 6c 79 20 61 70 70 6c | 69 65 73 20 74 6f 55 2d |nly appl|ies toU-|
|00004480| 2d 20 74 68 65 20 44 69 | 72 65 63 74 6f 72 20 74 |- the Di|rector t|
|00004490| 61 73 6b 27 73 20 6f 77 | 6e 20 77 69 6e 64 6f 77 |ask's ow|n window|
|000044a0| 73 2e 20 52 65 74 75 72 | 6e 73 20 6e 65 67 61 74 |s. Retur|ns negat|
|000044b0| 69 76 65 20 6e 75 6d 62 | 65 72 20 6f 6e 20 65 72 |ive numb|er on er|
|000044c0| 72 6f 72 2c 20 6f 72 20 | 6f 6e 65 20 6f 66 20 74 |ror, or |one of t|
|000044d0| 68 65 73 65 56 2d 2d 20 | 63 6f 64 65 73 3a 20 30 |heseV-- |codes: 0|
|000044e0| 3a 20 6f 75 74 73 69 64 | 65 20 61 6e 79 20 44 69 |: outsid|e any Di|
|000044f0| 72 65 63 74 6f 72 20 77 | 69 6e 64 6f 77 73 3b 20 |rector w|indows; |
|00004500| 31 3a 20 69 6e 20 6d 65 | 6e 75 20 62 61 72 3b 20 |1: in me|nu bar; |
|00004510| 32 3a 20 69 6e 20 64 65 | 73 6b 20 61 63 63 65 73 |2: in de|sk acces|
|00004520| 73 6f 72 79 20 77 69 6e | 64 6f 77 56 2d 2d 20 74 |sory win|dowV-- t|
|00004530| 68 61 74 27 73 20 62 65 | 65 6e 20 6c 61 75 6e 63 |hat's be|en launc|
|00004540| 68 65 64 20 69 6e 20 44 | 69 72 65 63 74 6f 72 27 |hed in D|irector'|
|00004550| 73 20 6d 65 6d 6f 72 79 | 20 70 61 72 74 69 74 69 |s memory| partiti|
|00004560| 6f 6e 3b 20 33 3a 20 77 | 69 6e 64 6f 77 20 63 6f |on; 3: w|indow co|
|00004570| 6e 74 65 6e 74 20 61 72 | 65 61 20 28 65 78 63 65 |ntent ar|ea (exce|
|00004580| 70 74 52 2d 2d 20 61 6e | 79 20 73 69 7a 65 20 62 |ptR-- an|y size b|
|00004590| 6f 78 65 73 29 3b 20 34 | 3a 20 74 69 74 6c 65 20 |oxes); 4|: title |
|000045a0| 62 61 72 3b 20 35 3a 20 | 73 69 7a 65 20 62 6f 78 |bar; 5: |size box|
|000045b0| 20 28 61 63 74 69 76 65 | 20 77 69 6e 64 6f 77 73 | (active| windows|
|000045c0| 20 6f 6e 6c 79 29 3b 20 | 36 3a 20 63 6c 6f 73 65 | only); |6: close|
|000045d0| 20 62 6f 78 3b 54 2d 2d | 20 37 3a 20 7a 6f 6f 6d | box;T--| 7: zoom|
|000045e0| 20 62 6f 78 20 28 73 74 | 61 6e 64 61 72 64 20 73 | box (st|andard s|
|000045f0| 74 61 74 65 29 3b 20 38 | 3a 20 7a 6f 6f 6d 20 62 |tate); 8|: zoom b|
|00004600| 6f 78 20 28 75 73 65 72 | 27 73 20 73 74 61 74 65 |ox (user|'s state|
|00004610| 29 2e 20 44 69 6d 65 6e | 73 69 6f 6e 73 20 61 72 |). Dimen|sions ar|
|00004620| 65 20 72 65 6c 61 74 69 | 76 65 3a 2d 2d 20 74 6f |e relati|ve:-- to|
|00004630| 20 74 68 65 20 74 6f 70 | 20 6c 65 66 74 20 6f 66 | the top| left of|
|00004640| 20 74 68 65 20 73 63 72 | 65 65 6e 20 77 69 74 68 | the scr|een with|
|00004650| 20 74 68 65 20 46 69 6e | 64 65 72 20 6d 65 6e 75 | the Fin|der menu|
|00004660| 20 62 61 72 2e 1a 49 49 | 20 6d 57 69 6e 64 6f 77 | bar..II| mWindow|
|00004670| 45 78 69 73 74 73 2c 20 | 77 69 6e 64 6f 77 49 44 |Exists, |windowID|
|00004680| 39 2d 2d 20 52 65 74 75 | 72 6e 73 20 54 52 55 45 |9-- Retu|rns TRUE|
|00004690| 20 69 66 20 74 68 65 20 | 77 69 6e 64 6f 77 20 73 | if the |window s|
|000046a0| 74 69 6c 6c 20 65 78 69 | 73 74 73 2c 20 46 41 4c |till exi|sts, FAL|
|000046b0| 53 45 20 69 66 20 6e 6f | 74 2e 18 49 49 20 6d 53 |SE if no|t..II mS|
|000046c0| 68 6f 77 57 69 6e 64 6f | 77 2c 20 77 69 6e 64 6f |howWindo|w, windo|
|000046d0| 77 49 44 53 2d 2d 20 53 | 68 6f 77 73 20 61 20 68 |wIDS-- S|hows a h|
|000046e0| 69 64 64 65 6e 20 77 69 | 6e 64 6f 77 20 28 61 6e |idden wi|ndow (an|
|000046f0| 64 20 6d 61 6b 65 73 20 | 69 74 73 20 61 70 70 6c |d makes |its appl|
|00004700| 69 63 61 74 69 6f 6e 20 | 66 72 6f 6e 74 6d 6f 73 |ication |frontmos|
|00004710| 74 20 69 66 20 69 74 27 | 73 20 6e 6f 74 20 61 6c |t if it'|s not al|
|00004720| 72 65 61 64 79 29 2e 50 | 2d 2d 20 59 6f 75 20 70 |ready).P|-- You p|
|00004730| 72 6f 62 61 62 6c 79 20 | 77 61 6e 74 20 74 6f 20 |robably |want to |
|00004740| 75 73 65 20 6d 53 65 74 | 41 63 74 69 76 65 57 69 |use mSet|ActiveWi|
|00004750| 6e 64 6f 77 20 6f 72 20 | 6d 57 69 6e 64 6f 77 54 |ndow or |mWindowT|
|00004760| 6f 46 72 6f 6e 74 20 72 | 69 67 68 74 20 61 66 74 |oFront r|ight aft|
|00004770| 65 72 20 74 68 69 73 21 | 3b 2d 2d 20 52 65 74 75 |er this!|;-- Retu|
|00004780| 72 6e 73 20 30 20 66 6f | 72 20 73 75 63 63 65 73 |rns 0 fo|r succes|
|00004790| 73 2c 20 6f 72 20 2d 31 | 20 69 66 20 74 68 65 20 |s, or -1| if the |
|000047a0| 77 69 6e 64 6f 77 49 44 | 20 69 73 20 69 6e 76 61 |windowID| is inva|
|000047b0| 6c 69 64 2e 18 49 49 20 | 6d 48 69 64 65 57 69 6e |lid..II |mHideWin|
|000047c0| 64 6f 77 2c 20 77 69 6e | 64 6f 77 49 44 54 2d 2d |dow, win|dowIDT--|
|000047d0| 20 48 69 64 65 73 20 61 | 20 76 69 73 69 62 6c 65 | Hides a| visible|
|000047e0| 20 77 69 6e 64 6f 77 20 | 28 61 6e 64 20 6d 61 6b | window |(and mak|
|000047f0| 65 73 20 69 74 73 20 61 | 70 70 6c 69 63 61 74 69 |es its a|pplicati|
|00004800| 6f 6e 20 66 72 6f 6e 74 | 6d 6f 73 74 20 69 66 20 |on front|most if |
|00004810| 69 74 27 73 20 6e 6f 74 | 20 61 6c 72 65 61 64 79 |it's not| already|
|00004820| 29 2e 4e 2d 2d 20 4e 6f | 74 65 20 74 68 61 74 20 |).N-- No|te that |
|00004830| 61 6e 20 61 70 70 20 6d | 69 67 68 74 20 6e 6f 74 |an app m|ight not|
|00004840| 20 72 65 61 6c 69 7a 65 | 20 69 74 73 20 77 69 6e | realize| its win|
|00004850| 64 6f 77 20 69 73 20 68 | 69 64 64 65 6e 20 28 69 |dow is h|idden (i|
|00004860| 2e 65 2e 2c 20 74 68 65 | 20 44 69 72 65 63 74 6f |.e., the| Directo|
|00004870| 72 4d 2d 2d 20 61 75 74 | 68 6f 72 69 6e 67 20 77 |rM-- aut|horing w|
|00004880| 69 6e 64 6f 77 73 20 6d | 61 79 20 6e 65 65 64 20 |indows m|ay need |
|00004890| 74 6f 20 62 65 20 73 65 | 6c 65 63 74 65 64 20 74 |to be se|lected t|
|000048a0| 77 69 63 65 20 69 6e 20 | 74 68 65 20 6d 65 6e 75 |wice in |the menu|
|000048b0| 73 20 74 6f 20 72 65 61 | 70 70 65 61 72 29 2e 3b |s to rea|ppear).;|
|000048c0| 2d 2d 20 52 65 74 75 72 | 6e 73 20 30 20 66 6f 72 |-- Retur|ns 0 for|
|000048d0| 20 73 75 63 63 65 73 73 | 2c 20 6f 72 20 2d 31 20 | success|, or -1 |
|000048e0| 69 66 20 74 68 65 20 77 | 69 6e 64 6f 77 49 44 20 |if the w|indowID |
|000048f0| 69 73 20 69 6e 76 61 6c | 69 64 2e 1c 49 49 20 6d |is inval|id..II m|
|00004900| 4d 69 6e 69 6d 69 7a 65 | 57 69 6e 64 6f 77 2c 20 |Minimize|Window, |
|00004910| 77 69 6e 64 6f 77 49 44 | 54 2d 2d 20 4d 61 6b 65 |windowID|T-- Make|
|00004920| 73 20 61 20 77 69 6e 64 | 6f 77 20 75 73 65 20 74 |s a wind|ow use t|
|00004930| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 64 |he appli|cation d|
|00004940| 65 66 69 6e 65 64 20 73 | 74 61 6e 64 61 72 64 20 |efined s|tandard |
|00004950| 73 74 61 74 65 20 28 74 | 68 65 20 63 6c 6f 73 65 |state (t|he close|
|00004960| 73 74 20 65 71 75 69 76 | 61 6c 65 6e 74 52 2d 2d |st equiv|alentR--|
|00004970| 20 6f 6e 20 74 68 65 20 | 4d 61 63 20 74 6f 20 74 | on the |Mac to t|
|00004980| 68 69 73 20 57 69 6e 64 | 6f 77 73 20 66 75 6e 63 |his Wind|ows func|
|00004990| 74 69 6f 6e 29 2e 20 44 | 65 66 61 75 6c 74 20 61 |tion). D|efault a|
|000049a0| 73 73 75 6d 70 74 69 6f | 6e 73 20 61 62 6f 75 74 |ssumptio|ns about|
|000049b0| 20 74 68 65 20 6c 6f 63 | 61 74 69 6f 6e 20 6f 66 | the loc|ation of|
|000049c0| 54 2d 2d 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |T-- the |standard|
|000049d0| 20 73 74 61 74 65 20 7a | 6f 6f 6d 20 67 61 64 67 | state z|oom gadg|
|000049e0| 65 74 20 69 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |et in th|e window|
|000049f0| 20 74 69 74 6c 65 20 62 | 61 72 20 63 61 6e 20 62 | title b|ar can b|
|00004a00| 65 20 6f 76 65 72 72 69 | 64 64 65 6e 20 77 69 74 |e overri|dden wit|
|00004a10| 68 20 74 68 65 4f 2d 2d | 20 6d 53 65 74 53 74 61 |h theO--| mSetSta|
|00004a20| 6e 64 61 72 64 5a 6f 6f | 6d 4f 66 66 73 65 74 20 |ndardZoo|mOffset |
|00004a30| 6d 65 74 68 6f 64 2e 20 | 52 65 74 75 72 6e 73 20 |method. |Returns |
|00004a40| 2d 31 20 66 6f 72 20 62 | 61 64 20 77 69 6e 64 6f |-1 for b|ad windo|
|00004a50| 77 49 44 20 6f 72 20 30 | 20 66 6f 72 20 73 75 63 |wID or 0| for suc|
|00004a60| 63 65 73 73 2e 54 2d 2d | 20 4e 6f 74 65 20 74 68 |cess.T--| Note th|
|00004a70| 61 74 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 6e |at the w|indow an|
|00004a80| 64 20 69 74 73 20 61 70 | 70 20 73 68 6f 75 6c 64 |d its ap|p should|
|00004a90| 20 61 6c 72 65 61 64 79 | 20 62 65 20 66 72 6f 6e | already| be fron|
|00004aa0| 74 6d 6f 73 74 20 28 6f | 72 20 74 68 65 20 73 74 |tmost (o|r the st|
|00004ab0| 61 74 65 20 6f 66 20 74 | 68 65 4d 2d 2d 20 77 69 |ate of t|heM-- wi|
|00004ac0| 6e 64 6f 77 20 6d 69 67 | 68 74 20 73 69 6d 70 6c |ndow mig|ht simpl|
|00004ad0| 79 20 62 65 20 74 6f 67 | 67 6c 65 64 20 66 72 6f |y be tog|gled fro|
|00004ae0| 6d 20 69 74 73 20 63 75 | 72 72 65 6e 74 20 73 74 |m its cu|rrent st|
|00004af0| 61 74 65 2c 20 6f 72 20 | 6c 65 66 74 20 75 6e 63 |ate, or |left unc|
|00004b00| 68 61 6e 67 65 64 29 2e | 1c 49 49 20 6d 4d 61 78 |hanged).|.II mMax|
|00004b10| 69 6d 69 7a 65 57 69 6e | 64 6f 77 2c 20 77 69 6e |imizeWin|dow, win|
|00004b20| 64 6f 77 49 44 4b 2d 2d | 20 4d 61 6b 65 73 20 61 |dowIDK--| Makes a|
|00004b30| 20 77 69 6e 64 6f 77 20 | 75 73 65 20 74 68 65 20 | window |use the |
|00004b40| 75 73 65 72 20 64 65 66 | 69 6e 65 64 20 77 69 6e |user def|ined win|
|00004b50| 64 6f 77 20 73 74 61 74 | 65 20 28 74 68 65 20 63 |dow stat|e (the c|
|00004b60| 6c 6f 73 65 73 74 20 65 | 71 75 69 76 61 6c 65 6e |losest e|quivalen|
|00004b70| 74 52 2d 2d 20 6f 6e 20 | 74 68 65 20 4d 61 63 20 |tR-- on |the Mac |
|00004b80| 74 6f 20 74 68 69 73 20 | 57 69 6e 64 6f 77 73 20 |to this |Windows |
|00004b90| 66 75 6e 63 74 69 6f 6e | 29 2e 20 44 65 66 61 75 |function|). Defau|
|00004ba0| 6c 74 20 61 73 73 75 6d | 70 74 69 6f 6e 73 20 61 |lt assum|ptions a|
|00004bb0| 62 6f 75 74 20 74 68 65 | 20 6c 6f 63 61 74 69 6f |bout the| locatio|
|00004bc0| 6e 20 6f 66 50 2d 2d 20 | 74 68 65 20 75 73 65 72 |n ofP-- |the user|
|00004bd0| 20 73 74 61 74 65 20 7a | 6f 6f 6d 20 67 61 64 67 | state z|oom gadg|
|00004be0| 65 74 20 69 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |et in th|e window|
|00004bf0| 20 74 69 74 6c 65 20 62 | 61 72 20 63 61 6e 20 62 | title b|ar can b|
|00004c00| 65 20 6f 76 65 72 72 69 | 64 64 65 6e 20 77 69 74 |e overri|dden wit|
|00004c10| 68 20 74 68 65 54 2d 2d | 20 4e 6f 74 65 20 74 68 |h theT--| Note th|
|00004c20| 61 74 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 6e |at the w|indow an|
|00004c30| 64 20 69 74 73 20 61 70 | 70 20 73 68 6f 75 6c 64 |d its ap|p should|
|00004c40| 20 61 6c 72 65 61 64 79 | 20 62 65 20 66 72 6f 6e | already| be fron|
|00004c50| 74 6d 6f 73 74 20 28 6f | 72 20 74 68 65 20 73 74 |tmost (o|r the st|
|00004c60| 61 74 65 20 6f 66 20 74 | 68 65 4d 2d 2d 20 77 69 |ate of t|heM-- wi|
|00004c70| 6e 64 6f 77 20 6d 69 67 | 68 74 20 73 69 6d 70 6c |ndow mig|ht simpl|
|00004c80| 79 20 62 65 20 74 6f 67 | 67 6c 65 64 20 66 72 6f |y be tog|gled fro|
|00004c90| 6d 20 69 74 73 20 63 75 | 72 72 65 6e 74 20 73 74 |m its cu|rrent st|
|00004ca0| 61 74 65 2c 20 6f 72 20 | 6c 65 66 74 20 75 6e 63 |ate, or |left unc|
|00004cb0| 68 61 6e 67 65 64 29 2e | 4b 2d 2d 20 6d 53 65 74 |hanged).|K-- mSet|
|00004cc0| 55 73 65 72 5a 6f 6f 6d | 4f 66 66 73 65 74 20 6d |UserZoom|Offset m|
|00004cd0| 65 74 68 6f 64 2e 20 52 | 65 74 75 72 6e 73 20 2d |ethod. R|eturns -|
|00004ce0| 31 20 66 6f 72 20 62 61 | 64 20 77 69 6e 64 6f 77 |1 for ba|d window|
|00004cf0| 49 44 20 6f 72 20 30 20 | 66 6f 72 20 73 75 63 63 |ID or 0 |for succ|
|00004d00| 65 73 73 2e 1b 49 49 20 | 6d 52 65 73 74 6f 72 65 |ess..II |mRestore|
|00004d10| 57 69 6e 64 6f 77 2c 20 | 77 69 6e 64 6f 77 49 44 |Window, |windowID|
|00004d20| 54 2d 2d 20 4f 6e 20 74 | 68 65 20 4d 61 63 2c 20 |T-- On t|he Mac, |
|00004d30| 6a 75 73 74 20 61 20 73 | 79 6e 6f 6e 6d 79 6d 20 |just a s|ynonmym |
|00004d40| 66 6f 72 20 6d 4d 61 78 | 69 6d 69 7a 65 57 69 6e |for mMax|imizeWin|
|00004d50| 64 6f 77 20 28 77 68 69 | 63 68 20 73 65 74 73 20 |dow (whi|ch sets |
|00004d60| 74 68 65 20 75 73 65 72 | 20 7a 6f 6f 6d 20 73 74 |the user| zoom st|
|00004d70| 61 74 65 29 2e 1c 58 49 | 49 20 6d 53 65 74 55 73 |ate)..XI|I mSetUs|
|00004d80| 65 72 5a 6f 6f 6d 4f 66 | 66 73 65 74 2c 20 78 2c |erZoomOf|fset, x,|
|00004d90| 20 79 20 58 49 49 20 6d | 53 65 74 53 74 61 6e 64 | y XII m|SetStand|
|00004da0| 61 72 64 5a 6f 6f 6d 4f | 66 66 73 65 74 2c 20 78 |ardZoomO|ffset, x|
|00004db0| 2c 20 79 58 2d 2d 20 41 | 6c 6c 6f 77 73 20 79 6f |, yX-- A|llows yo|
|00004dc0| 75 20 74 6f 20 6f 76 65 | 72 72 69 64 65 20 74 68 |u to ove|rride th|
|00004dd0| 65 20 64 65 66 61 75 6c | 74 20 61 73 73 75 6d 70 |e defaul|t assump|
|00004de0| 74 69 6f 6e 20 74 68 61 | 74 20 74 68 65 20 75 73 |tion tha|t the us|
|00004df0| 65 72 20 61 6e 64 20 73 | 74 61 6e 64 61 72 64 20 |er and s|tandard |
|00004e00| 7a 6f 6f 6d 20 67 61 64 | 67 65 74 73 56 2d 2d 20 |zoom gad|getsV-- |
|00004e10| 61 72 65 20 6c 6f 63 61 | 74 65 64 20 31 34 20 70 |are loca|ted 14 p|
|00004e20| 69 78 65 6c 73 20 6c 65 | 66 74 20 61 6e 64 20 38 |ixels le|ft and 8|
|00004e30| 20 70 69 78 65 6c 73 20 | 64 6f 77 6e 20 66 72 6f | pixels |down fro|
|00004e40| 6d 20 74 68 65 20 74 6f | 70 20 72 69 67 68 74 20 |m the to|p right |
|00004e50| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 20 74 69 |of the w|indow ti|
|00004e60| 74 6c 65 54 2d 2d 20 62 | 61 72 2e 20 54 68 69 73 |tleT-- b|ar. This|
|00004e70| 20 63 61 6e 20 62 65 20 | 75 73 65 66 75 6c 20 6f | can be |useful o|
|00004e80| 6e 20 6e 6f 6e 2d 52 6f | 6d 61 6e 20 73 79 73 74 |n non-Ro|man syst|
|00004e90| 65 6d 20 76 65 72 73 69 | 6f 6e 73 2c 20 77 68 65 |em versi|ons, whe|
|00004ea0| 6e 20 74 68 69 72 64 2d | 70 61 72 74 79 20 65 78 |n third-|party ex|
|00004eb0| 74 65 6e 73 69 6f 6e 73 | 50 2d 2d 20 6c 69 6b 65 |tensions|P-- like|
|00004ec0| 20 41 61 72 6f 6e 20 63 | 68 61 6e 67 65 20 74 68 | Aaron c|hange th|
|00004ed0| 65 20 61 70 70 65 61 72 | 61 6e 63 65 20 6f 66 20 |e appear|ance of |
|00004ee0| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 69 74 6c 65 |the wind|ow title|
|00004ef0| 20 62 61 72 73 2c 20 6f | 72 20 69 6e 20 66 75 74 | bars, o|r in fut|
|00004f00| 75 72 65 20 41 70 70 6c | 65 52 2d 2d 20 73 79 73 |ure Appl|eR-- sys|
|00004f10| 74 65 6d 20 76 65 72 73 | 69 6f 6e 73 2e 20 55 73 |tem vers|ions. Us|
|00004f20| 65 20 6d 46 69 6e 64 57 | 69 6e 64 6f 77 50 61 72 |e mFindW|indowPar|
|00004f30| 74 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 74 |t to det|ermine t|
|00004f40| 68 69 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |his info|rmation |
|00004f50| 6f 6e 20 6e 6f 6e 2d 52 | 6f 6d 61 6e 0b 2d 2d 20 |on non-R|oman.-- |
|00004f60| 73 79 73 74 65 6d 73 2e | 02 2d 2d 02 2d 2d 31 2d |systems.|.--.--1-|
|00004f70| 2d 20 4f 74 68 65 72 20 | 6d 65 74 68 6f 64 73 2c |- Other |methods,|
|00004f80| 20 6e 6f 74 20 79 65 74 | 20 70 6c 61 63 65 64 20 | not yet| placed |
|00004f90| 69 6e 20 63 61 74 65 67 | 6f 72 69 65 73 2e 2e 2e |in categ|ories...|
|00004fa0| 31 2d 2d 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |1-- ----|--------|
|00004fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004fd0| 2d 2d 02 2d 2d 24 49 49 | 49 49 20 6d 46 61 6b 65 |--.--$II|II mFake|
|00004fe0| 4d 6f 75 73 65 43 6c 69 | 63 6b 2c 20 77 69 6e 64 |MouseCli|ck, wind|
|00004ff0| 6f 77 49 44 2c 20 78 2c | 20 79 4c 2d 2d 20 53 69 |owID, x,| yL-- Si|
|00005000| 6d 75 6c 61 74 65 73 20 | 61 20 6d 6f 75 73 65 20 |mulates |a mouse |
|00005010| 63 6c 69 63 6b 20 61 6e | 64 20 72 65 6c 65 61 73 |click an|d releas|
|00005020| 65 20 61 74 20 70 6f 69 | 6e 74 28 78 2c 79 29 2e |e at poi|nt(x,y).|
|00005030| 20 49 66 20 77 69 6e 64 | 6f 77 49 44 20 69 73 20 | If wind|owID is |
|00005040| 6e 6f 74 20 74 68 65 4b | 2d 2d 20 66 72 6f 6e 74 |not theK|-- front|
|00005050| 6d 6f 73 74 20 77 69 6e | 64 6f 77 2c 20 74 68 69 |most win|dow, thi|
|00005060| 73 20 6d 65 74 68 6f 64 | 20 6d 61 6b 65 73 20 69 |s method| makes i|
|00005070| 74 20 73 6f 20 62 65 66 | 6f 72 65 20 66 61 6b 69 |t so bef|ore faki|
|00005080| 6e 67 20 74 68 65 20 6d | 6f 75 73 65 20 63 6c 69 |ng the m|ouse cli|
|00005090| 63 6b 2e 49 2d 2d 20 4f | 6e 20 57 69 6e 64 6f 77 |ck.I-- O|n Window|
|000050a0| 73 2c 20 74 68 65 20 77 | 69 6e 64 6f 77 20 69 73 |s, the w|indow is|
|000050b0| 20 2a 6e 6f 74 2a 20 61 | 75 74 6f 6d 61 74 69 63 | *not* a|utomatic|
|000050c0| 61 6c 6c 79 20 6d 61 64 | 65 20 66 72 6f 6e 74 6d |ally mad|e frontm|
|000050d0| 6f 73 74 2c 20 68 6f 77 | 65 76 65 72 2e 4c 2d 2d |ost, how|ever.L--|
|000050e0| 20 53 75 70 70 6c 79 20 | 30 20 61 73 20 74 68 65 | Supply |0 as the|
|000050f0| 20 77 69 6e 64 6f 77 49 | 44 20 69 66 20 79 6f 75 | windowI|D if you|
|00005100| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 74 68 65 20 | don't w|ant the |
|00005110| 63 6c 69 63 6b 20 73 65 | 6e 74 20 74 6f 20 61 6e |click se|nt to an|
|00005120| 79 20 73 70 65 63 69 66 | 69 63 4c 2d 2d 20 77 69 |y specif|icL-- wi|
|00005130| 6e 64 6f 77 2e 20 49 74 | 27 73 20 75 70 20 74 6f |ndow. It|'s up to|
|00005140| 20 79 6f 75 20 74 6f 20 | 61 73 73 75 72 65 20 74 | you to |assure t|
|00005150| 68 61 74 20 78 2c 79 20 | 66 61 6c 6c 73 20 77 69 |hat x,y |falls wi|
|00005160| 74 68 69 6e 20 74 68 65 | 20 77 69 6e 64 6f 77 27 |thin the| window'|
|00005170| 73 20 61 72 65 61 3b 4b | 2d 2d 20 63 6c 69 63 6b |s area;K|-- click|
|00005180| 73 20 6f 75 74 73 69 64 | 65 20 63 6f 75 6c 64 20 |s outsid|e could |
|00005190| 61 63 74 69 76 61 74 65 | 20 6f 74 68 65 72 20 61 |activate| other a|
|000051a0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 2e 20 54 68 69 |pplicati|ons. Thi|
|000051b0| 73 20 6d 65 74 68 6f 64 | 20 77 6f 6e 27 74 20 73 |s method| won't s|
|000051c0| 65 6e 64 3f 2d 2d 20 63 | 6c 69 63 6b 73 20 74 6f |end?-- c|licks to|
|000051d0| 20 6d 65 6e 75 73 2c 20 | 75 6e 66 6f 72 74 75 6e | menus, |unfortun|
|000051e0| 61 74 65 6c 79 2e 20 55 | 73 65 20 6d 46 61 6b 65 |ately. U|se mFake|
|000051f0| 43 68 61 72 43 6f 64 65 | 20 66 6f 72 20 6d 65 6e |CharCode| for men|
|00005200| 75 73 2e 28 49 49 49 49 | 20 6d 46 61 6b 65 4d 6f |us.(IIII| mFakeMo|
|00005210| 75 73 65 43 6c 69 63 6b | 57 61 69 74 2c 20 77 69 |useClick|Wait, wi|
|00005220| 6e 64 6f 77 49 44 2c 20 | 78 2c 20 79 49 2d 2d 20 |ndowID, |x, yI-- |
|00005230| 4f 6e 20 74 68 65 20 4d | 61 63 2c 20 61 20 73 79 |On the M|ac, a sy|
|00005240| 6e 6f 6e 79 6d 20 66 6f | 20 6d 46 61 6b 65 4d 6f |nonym fo| mFakeMo|
|00005250| 75 73 65 43 6c 69 63 6b | 2e 20 54 68 65 20 64 69 |useClick|. The di|
|00005260| 66 66 65 72 65 6e 74 20 | 74 65 63 68 69 71 75 65 |fferent |techique|
|00005270| 73 20 74 68 61 74 47 2d | 2d 20 75 6e 64 65 72 6c |s thatG-|- underl|
|00005280| 69 65 20 74 68 65 20 74 | 77 6f 20 73 65 70 61 72 |ie the t|wo separ|
|00005290| 61 74 65 20 6d 65 74 68 | 6f 64 73 20 6f 6e 20 57 |ate meth|ods on W|
|000052a0| 69 6e 64 6f 77 73 20 64 | 6f 6e 27 74 20 65 78 69 |indows d|on't exi|
|000052b0| 73 74 20 6f 6e 20 74 68 | 65 20 4d 61 63 2e 2f 49 |st on th|e Mac./I|
|000052c0| 49 49 49 49 49 20 6d 46 | 61 6b 65 4d 6f 75 73 65 |IIIII mF|akeMouse|
|000052d0| 44 72 61 67 2c 20 77 69 | 6e 64 6f 77 49 44 2c 20 |Drag, wi|ndowID, |
|000052e0| 78 31 2c 20 79 31 2c 20 | 78 32 2c 20 79 32 47 2d |x1, y1, |x2, y2G-|
|000052f0| 2d 20 53 69 6d 75 6c 61 | 74 65 73 20 64 72 61 67 |- Simula|tes drag|
|00005300| 67 69 6e 67 20 74 68 65 | 20 6d 6f 75 73 65 20 66 |ging the| mouse f|
|00005310| 72 6f 6d 20 78 31 2c 79 | 31 20 74 6f 20 78 32 2c |rom x1,y|1 to x2,|
|00005320| 79 32 20 69 6e 20 77 69 | 6e 64 6f 77 20 77 69 6e |y2 in wi|ndow win|
|00005330| 64 6f 77 49 44 2e 3d 2d | 2d 20 4d 61 6b 65 73 20 |dowID.=-|- Makes |
|00005340| 74 68 65 20 77 69 6e 64 | 6f 77 20 66 72 6f 6e 74 |the wind|ow front|
|00005350| 6d 6f 73 74 2c 20 69 66 | 20 69 74 27 73 20 6e 6f |most, if| it's no|
|00005360| 74 20 61 6c 72 65 61 64 | 79 20 66 72 6f 6e 74 6d |t alread|y frontm|
|00005370| 6f 73 74 2e 4c 2d 2d 20 | 53 75 70 70 6c 79 20 30 |ost.L-- |Supply 0|
|00005380| 20 61 73 20 74 68 65 20 | 77 69 6e 64 6f 77 49 44 | as the |windowID|
|00005390| 20 69 66 20 79 6f 75 20 | 64 6f 6e 27 74 20 77 61 | if you |don't wa|
|000053a0| 6e 74 20 74 68 65 20 63 | 6c 69 63 6b 20 73 65 6e |nt the c|lick sen|
|000053b0| 74 20 74 6f 20 61 6e 79 | 20 73 70 65 63 69 66 69 |t to any| specifi|
|000053c0| 63 48 2d 2d 20 77 69 6e | 64 6f 77 2e 20 42 65 63 |cH-- win|dow. Bec|
|000053d0| 61 75 73 65 20 63 65 72 | 74 61 69 6e 20 4d 61 63 |ause cer|tain Mac|
|000053e0| 20 73 79 73 74 65 6d 20 | 66 75 6e 63 74 69 6f 6e | system |function|
|000053f0| 73 2d 2d 20 6c 69 6b 65 | 20 73 65 6c 65 63 74 69 |s-- like| selecti|
|00005400| 6e 67 20 6d 65 6e 75 73 | 2d 2d 4b 2d 2d 20 61 63 |ng menus|--K-- ac|
|00005410| 74 75 61 6c 6c 79 20 72 | 65 71 75 69 72 65 20 74 |tually r|equire t|
|00005420| 68 65 20 6d 6f 75 73 65 | 20 63 75 72 73 6f 72 20 |he mouse| cursor |
|00005430| 74 6f 20 62 65 20 6c 6f | 63 61 74 65 64 20 69 6e |to be lo|cated in|
|00005440| 20 74 68 65 20 6d 65 6e | 75 20 61 72 65 61 73 20 | the men|u areas |
|00005450| 61 6e 64 20 74 6f 48 2d | 2d 20 6d 6f 76 65 2c 20 |and toH-|- move, |
|00005460| 74 68 69 73 20 6d 65 74 | 68 6f 64 20 6d 61 79 20 |this met|hod may |
|00005470| 6e 6f 74 20 77 6f 72 6b | 20 77 69 74 68 20 61 6c |not work| with al|
|00005480| 6c 20 64 72 61 67 20 6f | 70 65 72 61 74 69 6f 6e |l drag o|peration|
|00005490| 73 2e 20 48 6f 77 65 76 | 65 72 2c 20 79 6f 75 49 |s. Howev|er, youI|
|000054a0| 2d 2d 20 2a 63 61 6e 2a | 20 64 72 61 67 20 73 69 |-- *can*| drag si|
|000054b0| 7a 65 20 62 6f 78 65 73 | 20 77 69 74 68 20 69 74 |ze boxes| with it|
|000054c0| 2e 20 54 68 69 73 20 63 | 6f 6d 70 65 6e 73 61 74 |. This c|ompensat|
|000054d0| 65 73 20 66 6f 72 20 74 | 68 65 20 64 69 66 66 65 |es for t|he diffe|
|000054e0| 72 65 6e 63 65 73 20 69 | 6e 48 2d 2d 20 74 68 65 |rences i|nH-- the|
|000054f0| 20 4d 61 63 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 | Mac imp|lementat|
|00005500| 69 6f 6e 20 6f 66 20 6d | 53 65 74 57 69 6e 64 6f |ion of m|SetWindo|
|00005510| 77 4f 75 74 73 69 64 65 | 52 65 63 74 2e 20 55 73 |wOutside|Rect. Us|
|00005520| 65 20 6d 46 61 6b 65 43 | 68 61 72 43 6f 64 65 20 |e mFakeC|harCode |
|00005530| 74 6f 42 2d 2d 20 73 65 | 6e 64 20 6d 65 6e 75 20 |toB-- se|nd menu |
|00005540| 73 65 6c 65 63 74 69 6f | 6e 73 20 28 75 73 69 6e |selectio|ns (usin|
|00005550| 67 20 6b 65 79 62 6f 61 | 72 64 20 73 68 6f 72 74 |g keyboa|rd short|
|00005560| 63 75 74 73 20 66 6f 72 | 20 6d 65 6e 75 20 69 74 |cuts for| menu it|
|00005570| 65 6d 73 29 2e 4b 2d 2d | 20 4e 6f 74 65 3a 20 74 |ems).K--| Note: t|
|00005580| 68 69 73 20 6d 65 74 68 | 6f 64 20 69 73 20 6f 6e |his meth|od is on|
|00005590| 6c 79 20 75 73 61 62 6c | 65 20 6f 6e 20 74 68 65 |ly usabl|e on the|
|000055a0| 20 4d 61 63 20 28 57 69 | 6e 64 6f 77 73 20 77 6f | Mac (Wi|ndows wo|
|000055b0| 72 6b 73 20 64 69 66 66 | 65 72 65 6e 74 6c 79 29 |rks diff|erently)|
|000055c0| 2e 2e 49 49 49 49 20 6d | 46 61 6b 65 43 68 61 72 |..IIII m|FakeChar|
|000055d0| 43 6f 64 65 2c 20 77 69 | 6e 64 6f 77 49 44 2c 20 |Code, wi|ndowID, |
|000055e0| 63 68 61 72 4e 75 6d 2c | 20 63 6f 64 65 4e 75 6d |charNum,| codeNum|
|000055f0| 4e 2d 2d 20 46 61 6b 65 | 73 20 61 20 6b 65 79 70 |N-- Fake|s a keyp|
|00005600| 72 65 73 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |ress, in|cluding |
|00005610| 6d 6f 64 69 66 69 65 72 | 20 6b 65 79 73 20 6c 69 |modifier| keys li|
|00005620| 6b 65 20 63 6f 6d 6d 61 | 6e 64 2c 20 63 6f 6e 74 |ke comma|nd, cont|
|00005630| 72 6f 6c 2c 20 65 74 63 | 2e 20 4e 6f 74 65 3a 52 |rol, etc|. Note:R|
|00005640| 2d 2d 20 4d 61 63 20 6b | 65 79 20 26 20 6d 6f 75 |-- Mac k|ey & mou|
|00005650| 73 65 20 65 76 65 6e 74 | 73 2c 20 75 6e 6c 69 6b |se event|s, unlik|
|00005660| 65 20 57 69 6e 64 6f 77 | 73 2c 20 61 72 65 6e 27 |e Window|s, aren'|
|00005670| 74 20 73 65 6e 74 20 64 | 69 72 65 63 74 6c 79 20 |t sent d|irectly |
|00005680| 74 6f 20 77 69 6e 64 6f | 77 73 2c 20 73 6f 20 74 |to windo|ws, so t|
|00005690| 68 65 4f 2d 2d 20 73 75 | 70 70 6c 69 65 64 20 77 |heO-- su|pplied w|
|000056a0| 69 6e 64 6f 77 49 44 20 | 77 69 6c 6c 20 73 69 6d |indowID |will sim|
|000056b0| 70 6c 79 20 62 65 20 6d | 61 64 65 20 66 72 6f 6e |ply be m|ade fron|
|000056c0| 74 6d 6f 73 74 20 69 66 | 20 69 74 27 73 20 6e 6f |tmost if| it's no|
|000056d0| 74 20 61 6c 72 65 61 64 | 79 2e 20 63 68 61 72 4e |t alread|y. charN|
|000056e0| 75 6d 50 2d 2d 20 69 6e | 63 6c 75 64 65 73 20 74 |umP-- in|cludes t|
|000056f0| 68 65 20 41 53 43 49 49 | 20 63 6f 64 65 2c 20 30 |he ASCII| code, 0|
|00005700| 2d 32 35 35 2c 20 70 6c | 75 73 20 74 68 65 20 71 |-255, pl|us the q|
|00005710| 75 61 6e 74 69 74 79 20 | 28 32 35 36 20 2a 20 74 |uantity |(256 * t|
|00005720| 68 65 20 76 69 72 74 75 | 61 6c 20 6b 65 79 20 63 |he virtu|al key c|
|00005730| 6f 64 65 55 2d 2d 20 76 | 61 6c 75 65 20 28 30 2d |odeU-- v|alue (0-|
|00005740| 31 32 37 29 20 29 2e 20 | 63 6f 64 65 4e 75 6d 20 |127) ). |codeNum |
|00005750| 63 6f 72 72 65 73 70 6f | 6e 64 73 20 74 6f 20 74 |correspo|nds to t|
|00005760| 68 65 20 6d 6f 64 69 66 | 69 65 72 20 6b 65 79 20 |he modif|ier key |
|00005770| 73 74 61 74 65 73 3b 20 | 61 64 64 20 74 68 65 20 |states; |add the |
|00005780| 66 6f 6c 6c 6f 77 69 6e | 67 4e 2d 2d 20 6e 75 6d |followin|gN-- num|
|00005790| 62 65 72 73 20 74 6f 67 | 65 74 68 65 72 20 66 6f |bers tog|ether fo|
|000057a0| 72 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |r the fo|llowing |
|000057b0| 73 70 65 63 69 61 6c 20 | 6b 65 79 73 3a 20 72 69 |special |keys: ri|
|000057c0| 67 68 74 20 63 6f 6e 74 | 72 6f 6c 20 3d 20 31 32 |ght cont|rol = 12|
|000057d0| 38 3b 20 72 69 67 68 74 | 4f 2d 2d 20 6f 70 74 69 |8; right|O-- opti|
|000057e0| 6f 6e 20 3d 20 36 34 3b | 20 72 69 67 68 74 20 73 |on = 64;| right s|
|000057f0| 68 69 66 74 20 3d 20 33 | 32 3b 20 6c 65 66 74 20 |hift = 3|2; left |
|00005800| 63 6f 6e 74 72 6f 6c 20 | 3d 20 31 36 3b 20 6c 65 |control |= 16; le|
|00005810| 66 74 20 6f 70 74 69 6f | 6e 20 3d 20 38 3b 20 63 |ft optio|n = 8; c|
|00005820| 61 70 73 20 6c 6f 63 6b | 50 2d 2d 20 3d 20 34 3b |aps lock|P-- = 4;|
|00005830| 20 6c 65 66 74 20 73 68 | 69 66 74 20 3d 20 32 3b | left sh|ift = 2;|
|00005840| 20 6c 65 66 74 20 63 6f | 6d 6d 61 6e 64 20 3d 20 | left co|mmand = |
|00005850| 31 2e 20 59 6f 75 20 63 | 61 6e 20 72 65 73 65 61 |1. You c|an resea|
|00005860| 72 63 68 20 74 68 65 73 | 65 20 76 61 6c 75 65 73 |rch thes|e values|
|00005870| 20 62 79 20 75 73 69 6e | 67 52 2d 2d 20 52 65 73 | by usin|gR-- Res|
|00005880| 45 64 69 74 20 74 6f 20 | 65 78 61 6d 69 6e 65 20 |Edit to |examine |
|00005890| 74 68 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |the appr|opriate |
|000058a0| 4b 43 48 52 20 72 65 73 | 6f 75 72 63 65 20 69 6e |KCHR res|ource in|
|000058b0| 20 61 20 63 6f 70 79 20 | 6f 66 20 79 6f 75 72 20 | a copy |of your |
|000058c0| 53 79 73 74 65 6d 20 66 | 69 6c 65 2e 4e 2d 2d 20 |System f|ile.N-- |
|000058d0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 68 65 |For exam|ple, the|
|000058e0| 20 55 53 20 6b 65 79 62 | 6f 61 72 64 20 6c 61 79 | US keyb|oard lay|
|000058f0| 6f 75 74 20 75 73 65 73 | 20 74 68 65 73 65 20 6e |out uses| these n|
|00005900| 75 6d 62 65 72 73 20 74 | 6f 20 72 65 70 72 65 73 |umbers t|o repres|
|00005910| 65 6e 74 20 61 20 50 61 | 73 74 65 4e 2d 2d 20 6d |ent a Pa|steN-- m|
|00005920| 65 6e 75 20 69 74 65 6d | 20 63 68 6f 69 63 65 20 |enu item| choice |
|00005930| 28 63 6f 6d 6d 61 6e 64 | 2d 76 29 3a 20 61 73 63 |(command|-v): asc|
|00005940| 69 69 20 31 31 38 20 28 | 68 65 78 20 76 61 6c 75 |ii 118 (|hex valu|
|00005950| 65 20 37 36 3b 20 28 37 | 20 2a 20 31 36 29 20 2b |e 76; (7| * 16) +|
|00005960| 20 36 29 29 2c 20 70 6c | 75 73 51 2d 2d 20 32 35 | 6)), pl|usQ-- 25|
|00005970| 36 20 2a 20 39 20 28 68 | 65 78 20 76 61 6c 75 65 |6 * 9 (h|ex value|
|00005980| 20 30 39 3b 20 30 20 2a | 20 31 36 20 2b 20 39 29 | 09; 0 *| 16 + 9)|
|00005990| 2c 20 6f 72 20 32 33 30 | 34 2c 20 66 6f 72 20 74 |, or 230|4, for t|
|000059a0| 68 65 20 76 69 72 74 75 | 61 6c 20 6b 65 79 20 63 |he virtu|al key c|
|000059b0| 6f 64 65 20 70 6f 72 74 | 69 6f 6e 2e 4e 2d 2d 20 |ode port|ion.N-- |
|000059c0| 41 53 43 49 49 20 2b 20 | 76 69 72 74 75 61 6c 20 |ASCII + |virtual |
|000059d0| 3d 20 32 34 32 32 3b 20 | 74 68 69 73 20 69 73 20 |= 2422; |this is |
|000059e0| 73 75 70 70 6c 69 65 64 | 20 61 73 20 63 68 61 72 |supplied| as char|
|000059f0| 4e 75 6d 2e 20 46 6f 72 | 20 74 68 65 20 50 61 73 |Num. For| the Pas|
|00005a00| 74 65 20 63 6f 64 65 4e | 75 6d 2c 50 2d 2d 20 73 |te codeN|um,P-- s|
|00005a10| 75 70 70 6c 79 20 31 20 | 28 63 6f 6d 6d 61 6e 64 |upply 1 |(command|
|00005a20| 20 6b 65 79 20 64 6f 77 | 6e 29 2e 20 53 65 65 20 | key dow|n). See |
|00005a30| 74 68 65 20 4d 61 73 74 | 65 72 41 70 70 20 72 65 |the Mast|erApp re|
|00005a40| 61 64 6d 65 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |adme for| more in|
|00005a50| 66 6f 20 6f 6e 20 68 6f | 77 20 74 6f 33 2d 2d 20 |fo on ho|w to3-- |
|00005a60| 75 73 65 20 74 68 69 73 | 20 6d 65 74 68 6f 64 2c |use this| method,|
|00005a70| 20 61 6e 64 20 6d 6f 72 | 65 20 65 78 61 6d 70 6c | and mor|e exampl|
|00005a80| 65 20 76 61 6c 75 65 73 | 20 74 6f 20 75 73 65 2e |e values| to use.|
|00005a90| 32 49 49 49 49 20 6d 46 | 61 6b 65 43 68 61 72 43 |2IIII mF|akeCharC|
|00005aa0| 6f 64 65 57 61 69 74 2c | 20 77 69 6e 64 6f 77 49 |odeWait,| windowI|
|00005ab0| 44 2c 20 63 68 61 72 4e | 75 6d 2c 20 63 6f 64 65 |D, charN|um, code|
|00005ac0| 4e 75 6d 47 2d 2d 20 4f | 6e 20 74 68 65 20 4d 61 |NumG-- O|n the Ma|
|00005ad0| 63 2c 20 61 20 73 79 6e | 6f 6e 79 6d 20 66 6f 20 |c, a syn|onym fo |
|00005ae0| 6d 46 61 6b 65 43 68 61 | 72 43 6f 64 65 2e 20 54 |mFakeCha|rCode. T|
|00005af0| 68 65 20 64 69 66 66 65 | 72 65 6e 74 20 74 65 63 |he diffe|rent tec|
|00005b00| 68 69 71 75 65 73 20 74 | 68 61 74 47 2d 2d 20 75 |hiques t|hatG-- u|
|00005b10| 6e 64 65 72 6c 69 65 20 | 74 68 65 20 74 77 6f 20 |nderlie |the two |
|00005b20| 73 65 70 61 72 61 74 65 | 20 6d 65 74 68 6f 64 73 |separate| methods|
|00005b30| 20 6f 6e 20 57 69 6e 64 | 6f 77 73 20 64 6f 6e 27 | on Wind|ows don'|
|00005b40| 74 20 65 78 69 73 74 20 | 6f 6e 20 74 68 65 20 4d |t exist |on the M|
|00005b50| 61 63 2e 1d 53 53 20 6d | 4c 6f 63 61 74 65 45 78 |ac..SS m|LocateEx|
|00005b60| 65 63 75 74 61 62 6c 65 | 2c 20 74 68 65 46 69 6c |ecutable|, theFil|
|00005b70| 65 48 2d 2d 20 52 65 74 | 75 72 6e 73 20 74 68 65 |eH-- Ret|urns the|
|00005b80| 20 66 75 6c 6c 20 66 69 | 6c 65 6e 61 6d 65 20 6f | full fi|lename o|
|00005b90| 66 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |f the ap|plicatio|
|00005ba0| 6e 20 72 65 67 69 73 74 | 65 72 65 64 20 74 6f 20 |n regist|ered to |
|00005bb0| 6c 61 75 6e 63 68 20 74 | 68 65 46 2d 2d 20 70 72 |launch t|heF-- pr|
|00005bc0| 6f 76 69 64 65 64 20 66 | 69 6c 65 20 28 75 73 65 |ovided f|ile (use|
|00005bd0| 20 61 20 66 75 6c 6c 20 | 70 61 74 68 20 74 6f 20 | a full |path to |
|00005be0| 74 68 65 20 66 69 6c 65 | 6e 61 6d 65 29 2e 20 41 |the file|name). A|
|00005bf0| 6c 74 65 72 6e 61 74 69 | 76 65 20 75 73 61 67 65 |lternati|ve usage|
|00005c00| 3a 45 2d 2d 20 70 72 6f | 76 69 64 65 20 61 6e 20 |:E-- pro|vide an |
|00005c10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6e 61 6d 65 |applicat|ion name|
|00005c20| 20 77 69 74 68 6f 75 74 | 20 61 20 70 61 74 68 2c | without| a path,|
|00005c30| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 61 20 64 6f | instead| of a do|
|00005c40| 63 75 6d 65 6e 74 3b 43 | 2d 2d 20 74 68 65 20 61 |cument;C|-- the a|
|00005c50| 70 70 6c 69 63 61 74 69 | 6f 6e 27 73 20 66 6f 6c |pplicati|on's fol|
|00005c60| 64 65 72 20 77 69 6c 6c | 20 62 65 20 72 65 74 75 |der will| be retu|
|00005c70| 72 6e 65 64 2e 20 52 65 | 74 75 72 6e 73 20 61 20 |rned. Re|turns a |
|00005c80| 73 74 72 69 6e 67 20 77 | 69 74 68 47 2d 2d 20 77 |string w|ithG-- w|
|00005c90| 6f 72 64 20 31 20 27 45 | 72 72 6f 72 3a 27 20 69 |ord 1 'E|rror:' i|
|00005ca0| 66 20 6e 6f 74 68 69 6e | 67 20 63 61 6e 20 62 65 |f nothin|g can be|
|00005cb0| 20 6c 6f 63 61 74 65 64 | 2e 20 4e 6f 74 65 20 74 | located|. Note t|
|00005cc0| 68 61 74 20 74 68 65 20 | 61 6c 74 65 72 6e 61 74 |hat the |alternat|
|00005cd0| 69 76 65 4c 2d 2d 20 75 | 73 61 67 65 20 63 61 6e |iveL-- u|sage can|
|00005ce0| 20 74 61 6b 65 20 71 75 | 69 74 65 20 61 20 77 68 | take qu|ite a wh|
|00005cf0| 69 6c 65 2c 20 61 73 20 | 69 74 20 73 65 61 72 63 |ile, as |it searc|
|00005d00| 68 65 73 20 61 6c 6c 20 | 6c 6f 63 61 6c 20 61 6e |hes all |local an|
|00005d10| 64 20 6e 65 74 77 6f 72 | 6b 20 64 69 73 6b 73 2e |d networ|k disks.|
|00005d20| 19 49 53 20 6d 4f 70 65 | 6e 44 6f 63 75 6d 65 6e |.IS mOpe|nDocumen|
|00005d30| 74 2c 20 74 68 65 46 69 | 6c 65 4a 2d 2d 20 4f 70 |t, theFi|leJ-- Op|
|00005d40| 65 6e 73 20 61 20 64 6f | 63 75 6d 65 6e 74 20 77 |ens a do|cument w|
|00005d50| 69 74 68 20 69 74 73 20 | 72 65 67 69 73 74 65 72 |ith its |register|
|00005d60| 65 64 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 28 |ed appli|cation (|
|00005d70| 6c 61 75 6e 63 68 69 6e | 67 20 74 68 65 20 61 70 |launchin|g the ap|
|00005d80| 70 2c 20 69 66 47 2d 2d | 20 6e 65 63 65 73 73 61 |p, ifG--| necessa|
|00005d90| 72 79 29 2e 20 52 65 74 | 75 72 6e 73 20 61 6e 20 |ry). Ret|urns an |
|00005da0| 69 6e 73 74 61 6e 63 65 | 49 44 20 6f 66 20 74 68 |instance|ID of th|
|00005db0| 65 20 6c 61 75 6e 63 68 | 65 64 20 61 70 70 6c 69 |e launch|ed appli|
|00005dc0| 63 61 74 69 6f 6e 2c 20 | 6f 72 20 2d 31 45 2d 2d |cation, |or -1E--|
|00005dd0| 20 69 66 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 | if the |file is |
|00005de0| 6d 69 73 73 69 6e 67 2c | 20 6f 72 20 61 6e 6f 74 |missing,| or anot|
|00005df0| 68 65 72 20 6e 65 67 61 | 74 69 76 65 20 6e 75 6d |her nega|tive num|
|00005e00| 62 65 72 20 69 66 20 74 | 68 65 72 65 27 73 20 73 |ber if t|here's s|
|00005e10| 6f 6d 65 26 2d 2d 20 6f | 74 68 65 72 20 70 72 6f |ome&-- o|ther pro|
|00005e20| 62 6c 65 6d 20 6f 70 65 | 6e 69 6e 67 20 74 68 65 |blem ope|ning the|
|00005e30| 20 64 6f 63 75 6d 65 6e | 74 2e 1a 49 53 20 6d 50 | documen|t..IS mP|
|00005e40| 72 69 6e 74 44 6f 63 75 | 6d 65 6e 74 2c 20 74 68 |rintDocu|ment, th|
|00005e50| 65 46 69 6c 65 4b 2d 2d | 20 50 72 69 6e 74 73 20 |eFileK--| Prints |
|00005e60| 61 20 64 6f 63 75 6d 65 | 6e 74 20 77 69 74 68 20 |a docume|nt with |
|00005e70| 69 74 73 20 72 65 67 69 | 73 74 65 72 65 64 20 61 |its regi|stered a|
|00005e80| 70 70 6c 69 63 61 74 69 | 6f 6e 20 28 6c 61 75 6e |pplicati|on (laun|
|00005e90| 63 68 69 6e 67 20 74 68 | 65 20 61 70 70 2c 20 69 |ching th|e app, i|
|00005ea0| 66 47 2d 2d 20 6e 65 63 | 65 73 73 61 72 79 29 2e |fG-- nec|essary).|
|00005eb0| 20 52 65 74 75 72 6e 73 | 20 61 6e 20 69 6e 73 74 | Returns| an inst|
|00005ec0| 61 6e 63 65 49 44 20 6f | 66 20 74 68 65 20 6c 61 |anceID o|f the la|
|00005ed0| 75 6e 63 68 65 64 20 61 | 70 70 6c 69 63 61 74 69 |unched a|pplicati|
|00005ee0| 6f 6e 2c 20 6f 72 20 2d | 31 45 2d 2d 20 69 66 20 |on, or -|1E-- if |
|00005ef0| 74 68 65 20 66 69 6c 65 | 20 69 73 20 6d 69 73 73 |the file| is miss|
|00005f00| 69 6e 67 2c 20 6f 72 20 | 61 6e 6f 74 68 65 72 20 |ing, or |another |
|00005f10| 6e 65 67 61 74 69 76 65 | 20 6e 75 6d 62 65 72 20 |negative| number |
|00005f20| 69 66 20 74 68 65 72 65 | 27 73 20 73 6f 6d 65 26 |if there|'s some&|
|00005f30| 2d 2d 20 6f 74 68 65 72 | 20 70 72 6f 62 6c 65 6d |-- other| problem|
|00005f40| 20 6f 70 65 6e 69 6e 67 | 20 74 68 65 20 64 6f 63 | opening| the doc|
|00005f50| 75 6d 65 6e 74 2e 13 49 | 20 6d 47 65 74 4d 65 6e |ument..I| mGetMen|
|00005f60| 75 42 61 72 48 65 69 67 | 68 74 1f 49 49 20 6d 53 |uBarHeig|ht.II mS|
|00005f70| 65 74 4d 65 6e 75 42 61 | 72 48 65 69 67 68 74 2c |etMenuBa|rHeight,|
|00005f80| 20 6e 65 77 48 65 69 67 | 68 74 12 49 20 6d 47 65 | newHeig|ht.I mGe|
|00005f90| 74 53 79 73 74 65 6d 53 | 63 72 69 70 74 12 49 20 |tSystemS|cript.I |
|00005fa0| 6d 47 65 74 53 79 73 74 | 65 6d 52 65 67 69 6f 6e |mGetSyst|emRegion|
|00005fb0| 46 2d 2d 20 54 68 65 73 | 65 20 6d 65 74 68 6f 64 |F-- Thes|e method|
|00005fc0| 73 20 61 72 65 20 75 73 | 65 66 75 6c 20 74 6f 20 |s are us|eful to |
|00005fd0| 61 73 73 75 72 65 20 74 | 68 61 74 20 61 6e 79 20 |assure t|hat any |
|00005fe0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 79 6f 75 |applicat|ions you|
|00005ff0| 20 6c 61 75 6e 63 68 4a | 2d 2d 20 6f 72 20 73 77 | launchJ|-- or sw|
|00006000| 69 74 63 68 20 74 6f 20 | 70 72 6f 70 65 72 6c 79 |itch to |properly|
|00006010| 20 64 69 73 70 6c 61 79 | 20 74 68 65 69 72 20 6d | display| their m|
|00006020| 65 6e 75 73 2e 20 4d 61 | 63 20 70 72 6f 6a 65 63 |enus. Ma|c projec|
|00006030| 74 6f 72 73 20 64 6f 6e | 27 74 20 63 6f 6e 74 61 |tors don|'t conta|
|00006040| 69 6e 51 2d 2d 20 6d 65 | 6e 75 73 20 75 73 75 61 |inQ-- me|nus usua|
|00006050| 6c 6c 79 3b 20 74 68 65 | 73 65 20 4d 61 63 2d 6f |lly; the|se Mac-o|
|00006060| 6e 6c 79 20 6d 65 74 68 | 6f 64 73 20 6c 65 74 20 |nly meth|ods let |
|00006070| 79 6f 75 20 73 6f 6c 76 | 65 20 61 6e 79 20 6d 65 |you solv|e any me|
|00006080| 6e 75 20 64 69 73 70 6c | 61 79 20 70 72 6f 62 6c |nu displ|ay probl|
|00006090| 65 6d 73 2e 48 2d 2d 20 | 54 68 65 20 55 53 20 73 |ems.H-- |The US s|
|000060a0| 79 73 74 65 6d 20 73 63 | 72 69 70 74 20 28 30 29 |ystem sc|ript (0)|
|000060b0| 20 75 73 65 73 20 61 20 | 73 74 61 6e 64 61 72 64 | uses a |standard|
|000060c0| 20 6d 65 6e 75 20 62 61 | 72 20 68 65 69 67 68 74 | menu ba|r height|
|000060d0| 20 6f 66 20 32 30 2e 20 | 4f 74 68 65 72 49 2d 2d | of 20. |OtherI--|
|000060e0| 20 6c 6f 63 61 6c 69 7a | 65 64 20 73 79 73 74 65 | localiz|ed syste|
|000060f0| 6d 20 76 65 72 73 69 6f | 6e 73 20 6d 61 79 20 75 |m versio|ns may u|
|00006100| 73 65 20 64 69 66 66 65 | 72 65 6e 74 20 68 65 69 |se diffe|rent hei|
|00006110| 67 68 74 73 2e 20 54 68 | 65 20 70 72 6f 70 65 72 |ghts. Th|e proper|
|00006120| 20 68 65 69 67 68 74 4c | 2d 2d 20 74 6f 20 75 73 | heightL|-- to us|
|00006130| 65 20 63 61 6e 20 62 65 | 20 64 65 74 65 72 6d 69 |e can be| determi|
|00006140| 6e 65 64 20 69 6e 20 74 | 68 65 20 61 75 74 68 6f |ned in t|he autho|
|00006150| 72 69 6e 67 20 4d 65 73 | 73 61 67 65 20 77 69 6e |ring Mes|sage win|
|00006160| 64 6f 77 20 6f 6e 20 73 | 75 63 68 20 73 79 73 74 |dow on s|uch syst|
|00006170| 65 6d 73 2e 4b 2d 2d 20 | 53 65 65 20 74 68 65 20 |ems.K-- |See the |
|00006180| 73 75 70 70 6c 69 65 64 | 20 52 65 61 64 20 4d 65 |supplied| Read Me|
|00006190| 20 69 6e 66 6f 20 66 6f | 72 20 74 68 65 20 6d 65 | info fo|r the me|
|000061a0| 61 6e 69 6e 67 20 6f 66 | 20 73 63 72 69 70 74 20 |aning of| script |
|000061b0| 26 20 72 65 67 69 6f 6e | 20 76 61 6c 75 65 73 2e |& region| values.|
|000061c0| 48 2d 2d 20 4f 72 2c 20 | 75 73 65 20 4c 69 6e 67 |H-- Or, |use Ling|
|000061d0| 6f 27 73 20 27 69 6e 73 | 74 61 6c 6c 4d 65 6e 75 |o's 'ins|tallMenu|
|000061e0| 27 20 74 6f 20 69 6e 73 | 74 61 6c 6c 20 61 20 62 |' to ins|tall a b|
|000061f0| 6c 61 6e 6b 20 6d 65 6e | 75 20 69 6e 20 61 20 70 |lank men|u in a p|
|00006200| 72 6f 6a 65 63 74 6f 72 | 2c 4d 2d 2d 20 6f 6e 63 |rojector|,M-- onc|
|00006210| 65 2c 20 74 65 6d 70 6f | 72 61 72 69 6c 79 2c 20 |e, tempo|rarily, |
|00006220| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |to deter|mine the|
|00006230| 20 6d 65 6e 75 20 62 61 | 72 20 68 65 69 67 68 74 | menu ba|r height|
|00006240| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00006250| 73 79 73 74 65 6d 2e 34 | 49 53 53 20 6d 4c 61 75 |system.4|ISS mLau|
|00006260| 6e 63 68 2c 20 74 68 65 | 50 72 6f 67 72 61 6d 46 |nch, the|ProgramF|
|00006270| 69 6c 65 2c 20 74 68 65 | 43 6f 6d 6d 61 6e 64 4c |ile, the|CommandL|
|00006280| 69 6e 65 41 72 67 75 6d | 65 6e 74 73 4d 2d 2d 20 |ineArgum|entsM-- |
|00006290| 4f 70 65 6e 73 20 61 70 | 70 6c 69 63 61 74 69 6f |Opens ap|plicatio|
|000062a0| 6e 20 69 6e 64 69 63 61 | 74 65 64 20 62 79 20 74 |n indica|ted by t|
|000062b0| 68 65 20 66 75 6c 6c 20 | 70 61 74 68 6e 61 6d 65 |he full |pathname|
|000062c0| 20 27 74 68 65 50 72 6f | 67 72 61 6d 46 69 6c 65 | 'thePro|gramFile|
|000062d0| 27 2c 20 69 66 20 69 74 | 27 73 4b 2d 2d 20 6e 6f |', if it|'sK-- no|
|000062e0| 74 20 61 6c 72 65 61 64 | 79 20 6f 70 65 6e 2c 20 |t alread|y open, |
|000062f0| 6f 72 20 73 77 69 74 63 | 68 65 73 20 74 68 61 74 |or switc|hes that|
|00006300| 20 61 70 70 20 74 6f 20 | 74 68 65 20 66 72 6f 6e | app to |the fron|
|00006310| 74 20 69 66 20 69 74 20 | 69 73 20 6f 70 65 6e 3b |t if it |is open;|
|00006320| 20 61 6c 73 6f 2c 52 2d | 2d 20 69 66 20 61 6e 79 | also,R-|- if any|
|00006330| 74 68 69 6e 67 20 6f 74 | 68 65 72 20 74 68 61 6e |thing ot|her than|
|00006340| 20 45 4d 50 54 59 20 69 | 73 20 70 72 6f 76 69 64 | EMPTY i|s provid|
|00006350| 65 64 20 66 6f 72 20 27 | 74 68 65 43 6f 6d 6d 61 |ed for '|theComma|
|00006360| 6e 64 4c 69 6e 65 41 72 | 67 75 6d 65 6e 74 73 27 |ndLineAr|guments'|
|00006370| 2c 20 61 73 73 75 6d 65 | 73 55 2d 2d 20 69 74 20 |, assume|sU-- it |
|00006380| 69 73 20 61 20 66 75 6c | 6c 20 70 61 74 68 6e 61 |is a ful|l pathna|
|00006390| 6d 65 20 74 6f 20 61 20 | 64 6f 63 75 6d 65 6e 74 |me to a |document|
|000063a0| 20 79 6f 75 20 77 61 6e | 74 20 6f 70 65 6e 65 64 | you wan|t opened|
|000063b0| 20 69 6e 20 74 68 65 20 | 61 70 70 2e 20 52 65 74 | in the |app. Ret|
|000063c0| 75 72 6e 73 20 61 20 6e | 65 67 61 74 69 76 65 55 |urns a n|egativeU|
|000063d0| 2d 2d 20 6e 75 6d 62 65 | 72 20 66 6f 72 20 65 72 |-- numbe|r for er|
|000063e0| 72 6f 72 73 20 28 2d 31 | 30 38 20 69 73 20 61 20 |rors (-1|08 is a |
|000063f0| 63 6f 6d 6d 6f 6e 20 6f | 6e 65 2c 20 66 6f 72 20 |common o|ne, for |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.