site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Aug 5, 2009, at 7:11 PM, Andre-John Mas wrote: Does anyone know the keycode for the eject key? I am trying to get an application to simulate an eject on a remote computer, though it depends on knowing the right key code to send. André-John I wouldn't be trying to simulate a keypress, given that the key you are trying to press is being intercepted by BezelServices, and a simulated keystroke wouldn't be, unless you pretended to be a USB keyboard and loaded a KEXT to do it. 8-). Programatically, this would be controlled by the Disk Arbitration framework. Search <http://developer.apple.com> for DADiskEject. This email sent to site_archiver@lists.apple.com