right.. one time and one time only... 
string $currPanel = getPanel -withFocus;
if ("" != $currPanel && ("modelPanel" == getPanel -to $currPanel))
{
	int $wosonoff = modelEditor -q -wos $currPanel;
	switch ($wosonoff)
	{
		case 0: modelEditor -e -wos true $currPanel;
			break;
		case 1: modelEditor -e -wos false $currPanel;
			break;
		default: break;
	}
	$wosonoff = modelEditor -q -wos $currPanel;
	print("ShadingonWire: "+$wosonoff+"n");
} else {
	error "No modeling panel selected or invalid.";
}
Then copy this into the hotkey editor under User hotkeys..
job done 
this was my first MEL and I was helped by several people on highend..
They told me, and I'll tell you; its worth learning MEL for sure..
Im no coder but I have grasped the basics.. only the syntax stumps me sometimes now. 
Its very useful and I have carved myself a niche as the "MEL guy" with my fellow artists 