Monthly Archives: September 2008

Instead of re-inventing the wheel, I’m using a utility called AutoHotkey. The scripting commands are self-explanatory and look like simple system API wrappers.

For example, to increase or decrease the master volume by 5, I chose WindowsKey+Up and WindowsKey+Down respectively, using the following script:

#Up::SoundSet, +5, master
#Down::SoundSet, -5, master

You can read the complete list of supported commands here.

public static Class deproxy(Class clazz) {
    	// check if it's a cglib proxy
	if (net.sf.cglib.proxy.Proxy.isProxyClass(clazz)) {
		clazz = clazz.getSuperclass();
	}
	// check if it's cglib enhanced
	else if (net.sf.cglib.proxy.Enhancer.isEnhanced(clazz)) {
		clazz = clazz.getSuperclass();
	}
	return clazz;
}