With this plugin, you can have Pressy trigger any of AutomateIt's many actions. This includes common features that the official Pressy app includes out of the box, such as toggling mute, taking a picture, or turning on the flashlight. Alternatively, you can toggle Airplane mode, fire up apps, or lump a number of actions together. You can set these functions to respond to a single button press or various short sequences.

The plugin is free, but you need to have AutomateIt installed to do anything with it. Here are the links.

Source: AutomateIt blog

Thanks, Yaron.