Active+ Member Abel(Tiger) 1208 Posted August 26, 2016 Active+ Member Share Posted August 26, 2016 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) What is this ? : "When a player sends you a message icon taskbar starts flashing." https://www.youtube.com/watch?v=s2LkFrfrrhk [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 }, 28 1 1 6 3 33 Link to comment Share on other sites More sharing options...
VegaS 1102 Posted August 26, 2016 Share Posted August 26, 2016 http://stackoverflow.com/questions/25481994/blink-alert-in-taskbar-for-c 1 1 Link to comment Share on other sites More sharing options...
Active Member Mind Rapist 190 Posted August 26, 2016 Active Member Share Posted August 26, 2016 Ty Link to comment Share on other sites More sharing options...
VegaS 1102 Posted August 26, 2016 Share Posted August 26, 2016 http://stackoverflow.com/questions/25481994/blink-alert-in-taskbar-for-c I feel sorry for that guy who sold it. But he sells shit piss, which is already free on StackOverflow and just created a module. Ahh and other copy from inc2&global # photo removed Notice to all amateurs only sell crap. Why people give 10e for this? 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19773 Posted August 26, 2016 Honorable Member Share Posted August 26, 2016 When I saw it I said LOL! if (CPythonChat::WHISPER_TYPE_CHAT == whisperPacket.bType || CPythonChat::WHISPER_TYPE_GM == whisperPacket.bType) { #ifdef ENABLE_WHISPER_FLASHING FLASHWINFO flashInfo; flashInfo.cbSize = sizeof(flashInfo); flashInfo.hwnd = CPythonApplication::Instance().GetWindowHandle(); flashInfo.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG; flashInfo.uCount = 0; flashInfo.dwTimeout = 0; FlashWindowEx(&flashInfo); #endif _snprintf(line, sizeof(line), "%s : %s", whisperPacket.szNameFrom, buf); PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OnRecvWhisper", Py_BuildValue("(iss)", (int) whisperPacket.bType, whisperPacket.szNameFrom, line)); } 10€ for nothing xD 2 Link to comment Share on other sites More sharing options...
VegaS 1102 Posted August 26, 2016 Share Posted August 26, 2016 @xP3NG3Rx You are sexy... again but anyway, you know that. Yeah, people pay for shit in this day's.. 1 Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1208 Posted August 26, 2016 Author Active+ Member Share Posted August 26, 2016 27 minutes ago, xP3NG3Rx said: When I saw it I said LOL! if (CPythonChat::WHISPER_TYPE_CHAT == whisperPacket.bType || CPythonChat::WHISPER_TYPE_GM == whisperPacket.bType) { #ifdef ENABLE_WHISPER_FLASHING FLASHWINFO flashInfo; flashInfo.cbSize = sizeof(flashInfo); flashInfo.hwnd = CPythonApplication::Instance().GetWindowHandle(); flashInfo.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG; flashInfo.uCount = 0; flashInfo.dwTimeout = 0; FlashWindowEx(&flashInfo); #endif _snprintf(line, sizeof(line), "%s : %s", whisperPacket.szNameFrom, buf); PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "OnRecvWhisper", Py_BuildValue("(iss)", (int) whisperPacket.bType, whisperPacket.szNameFrom, line)); } 10€ for nothing xD With module you can use in another scope . For example put app.FlashApplication() in game.py (in def Open(self)) and if you dead and restart in city with client minimized this help you :)) or can put in switchbot when this finish(more servers use switchboot). Who want just for whishper can use xP3NG3Rx version .It is better. Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19773 Posted August 26, 2016 Honorable Member Share Posted August 26, 2016 True, but I not prefer switchbot, or something to use the flashing by other states, this is the reason why I did like this way. 1 Link to comment Share on other sites More sharing options...
AmStaFFLady 1 Posted April 24, 2017 Share Posted April 24, 2017 it works like a charm ! but one little problem have the system when i write a second message to my secondary character and the whisper is already open he does not blink again when i write the second message to her. any solution for that ? 1 Link to comment Share on other sites More sharing options...
Danonek 3 Posted March 8, 2018 Share Posted March 8, 2018 @AmStaFFLady Did u find a solution ? Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19773 Posted March 9, 2018 Honorable Member Share Posted March 9, 2018 The blinking method has been called when the whisper dialog is closed or minimized, I think you have to implement a new function like a kind of "seen" stuff, when a message arrives it starts to blinking and when you click on the dialog it stops. It sucks when you already "in" the board, because if a message arrives it would start to blink and you have to click out and click in again to stop it. Btw there is the "OnTop" function for to begin. I know it isn't impossible but these things are too little to take it too serious Link to comment Share on other sites More sharing options...
Recommended Posts