Jump to content

Recommended Posts

  • Bot

M2 Download Center

This is the hidden content, please
( 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 },

 

  • Metin2 Dev 46
  • kekw 1
  • Eyes 1
  • Smile Tear 1
  • Good 9
  • Love 4
  • Love 39

english_banner.gif

Link to comment
https://metin2.dev/topic/13180-blink-alert-in-taskbar/
Share on other sites

:ph34r::ph34r::ph34r:

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?

  • Love 1
Link to comment
https://metin2.dev/topic/13180-blink-alert-in-taskbar/#findComment-75450
Share on other sites

  • Honorable Member

When I saw it I said LOL! :mellow:

	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

  • Love 2
Link to comment
https://metin2.dev/topic/13180-blink-alert-in-taskbar/#findComment-75452
Share on other sites

  • Bot
27 minutes ago, xP3NG3Rx said:

When I saw it I said LOL! :mellow:


	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.

english_banner.gif

Link to comment
https://metin2.dev/topic/13180-blink-alert-in-taskbar/#findComment-75458
Share on other sites

  • 7 months later...

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 ?

  • Love 1
Link to comment
https://metin2.dev/topic/13180-blink-alert-in-taskbar/#findComment-87606
Share on other sites

  • 10 months later...
  • Honorable Member

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
https://metin2.dev/topic/13180-blink-alert-in-taskbar/#findComment-99569
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.