Using spark on your hackintosh for volume key binding a VoodooHDA PrefPane applescript

I had 2 more issues with my hackintosh.

1) I want the standard volume control buttons on my laptop to control the volume like a normal macbook.

2) I want to be able to open up VoodooHDA pref pane so I can adjust mixer settings. This will be the function key right next to the volume controls.

How to do awesome keybinding has been something I’ve been looking for a long time, and I found it: An awesome open source key bind program called Spark. It does exactly what you’d expect and much, much more.

With spark, problem 1 is quickly solved.

Problem 2 requires binding the key to an applescript to pop open the pref pane, which I’ve pasted below:

tell application "System Preferences"
    activate
    set current pane to pane "org.voodoo.VoodooHDA"
end tell

And problem 2 is solved now as well. Hell yeah!