PyObject *wpRegisterGlobal( PyObject* self, PyObject* args )
static PyObject *wpRegisterGlobal( PyObject* self, PyObject* args )
PyObject *wpRegisterGlobal( PyObject* self, PyObject* args ){	if( !checkArgInt( 0 ) || !checkArgInt( 1 ) || !checkArgStr( 2 ) )	{		PyErr_BadArgument();		return 0;	}	UINT32 object = getArgInt( 0 );	UINT32 event = getArgInt( 1 );	QString scriptName = getArgStr( 2 );	cPythonScript *script = ScriptManager->find( scriptName );	if( script == 0 )	{		PyErr_SetString( PyExc_RuntimeError, "Unknown script." );		return 0;	}	ScriptManager->addGlobalHook( object, event, script );	return PyTrue;}