M2 Download Center
Download Here ( Internal )
What is this ? :
"When a player sends you a message icon taskbar starts flashing."
[Hidden Content]
[File: Client/root/InterfaceModule.py]
//1.) Search: 2x
btn.Flash() #in function def RecvWhisper(self, name):
//2.) Add bellow:
app.FlashApplication()
[File: Source/src/Client/UserInterface/PythonApplication.cpp]
//1.) Search:
void CPythonApplication::Clear()
{
m_pySystem.Clear();
}
//2.) Add bellow:
#include <Windows.h>
void CPythonApplication::FlashApplication()
{
HWND hWnd = GetWindowHandle();
FLASHWINFO fi;
fi.cbSize = sizeof(FLASHWINFO);
fi.hwnd = hWnd;
fi.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
fi.uCount = 0;
fi.dwTimeout = 0;
FlashWindowEx(&fi);
}
[File: Source/src/Client/UserInterface/PythonApplication.h]
//1.) Search:
void SetForceSightRange(int iRange);
//2.) Add bellow:
void FlashApplication();
[File: Source/src/Client/UserInterface/PythonApplicationModule.cpp]
//1.) Search:
PyObject* appLogoClose(PyObject* poSelf, PyObject* poArgs)
{
//CPythonApplication::Instance().OnLogoClose();
return Py_BuildNone();
}
//2.) Add bellow:
PyObject* appFlashApplication(PyObject* poSelf, PyObject* poArgs)
{
CPythonApplication::Instance().FlashApplication();
return Py_BuildNone();
}
//3.) Search:
{ "OnLogoClose", appLogoClose, METH_VARARGS },
//4.) Add bellow:
{ "FlashApplication", appFlashApplication, METH_VARARGS },