TimberSweet Posted May 15, 2013 Share Posted May 15, 2013 Hi, How do I script the keyboard eject key on the rubber ducky? Is it just as simple as EJECT? I'm scripting this for the Mac so I would imagine that the key will be the same on any platform? Thanks, TimberSweet Quote Link to comment Share on other sites More sharing options...
no42 Posted May 15, 2013 Share Posted May 15, 2013 You would need to sniff the button press from a USB keyboard using the developer IOUSB package from apple, to find the genuine code. to eject from command line: hdiutil eject <device> Rumor has it the code could be "0x11" Try adding "EJECT = 0x11" to keyboard.properties, and patching the ducky encoder source code. If you want to try generating a simple inject.bin the binary file would look like the following in a hex editor (hex fiend should be in mac ports) 11 00 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.