Jump to content

Blink / Alert in Taskbar


Recommended Posts

  • Active+ Member

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 27
  • kekw 1
  • Smile Tear 1
  • Good 6
  • Love 3
  • Love 32
Link to comment
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
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
Share on other sites

  • Active+ Member
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.

Link to comment
Share on other sites

  • 7 months later...
  • 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
Share on other sites

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.