np@doc.ic.ac.uk (Nigel Perry) (03/06/90)
Below are the intros to two new XCMDs I've just posted to info-mac@sumex. Subject: StandardFile XCMD v2 This stack contains version 2 of my StandardFile XCMD. This XCMD will generate standard file get, put and folder selection dialogs. The types of file to allow (get), the prompt and default name (put) and the "open" button name (all) are easily settable. This was going to be part of a larger stack, but I havn't been able to work on it since Oct, so I thought I'd just post this XCMD. The XCMD is copyright freeware, you may use it freely for non-commercial/profit purposes. Enjoy. Subject: SetKeyboard XCMD - an updated ControlLock, allows key msgs in HC This stack contains SetKeyboard XCMD an update to my ControlLock XCMD. It allows keyboard messages to be generated in HyperCard. SetKeyboard supports four modes: (a) locking the "control" key - this causes "controlKey" messages to be sent for every non-command key hit, the control key is locked even if your keyboard does not have one! [same as ControlLock]; (b) mapping command-key combos to control-key combos - this again causes "controlKey" messages to be sent [suggested by Eric Kofoid]; (c) mapping the number pad keys 1 -> 9 into the function keys 1 -> 9 - this causes "functionKey" messages to be sent; and (d) which is simply (b) and (c) together. The XCMD is also supplied as an FKEY in case you'd like to use it outside of HyperCard. Tested ONLY on a Mac Plus/1Mb Sys 6.0.2, but should work on other Macs (ControlLock did and its just an extension of the same code...). Copyright, free for non-commercial use. Enjoy! --- Nigel Perry Department of Computing Imperial College Janet: np@uk.ac.ic.doc London DARPA: np%uk.ac.ic.doc@ucl-cs SW7 Uucp: np@icdoc.UUCP, ukc!icdoc!np England