Honorable Member xP3NG3Rx 19751 Posted August 16, 2016 Honorable Member Share Posted August 16, 2016 Hello everyone. If you play or played on gameforge servers you should to know that what is this. When you are opening more than one clients the icon of the applications (on the windows taskbar) are groupped like Spoiler With this little modification you can do like this(as on gameforge clients work): Spoiler Open the EterLib\MSWindow.cpp and paste this under the #include <windowsx.h> line: #define DISABLE_TASKBAR_GROUPING #ifdef DISABLE_TASKBAR_GROUPING #include <Shobjidl.h> #endif Then scroll down to the CMSWindow::Create function and search this code: if (!m_hWnd) return false; Paste the following code below of that: #ifdef DISABLE_TASKBAR_GROUPING OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); if (v.dwMajorVersion == 6 && v.dwMinorVersion >= 1 || v.dwMajorVersion > 6) { WCHAR myAppID[128]; swprintf(myAppID, sizeof(myAppID) / sizeof(myAppID[0]), L"MyMetin2AppID%u", GetCurrentProcessId()); HRESULT hr = SetCurrentProcessExplicitAppUserModelID(myAppID); if (!SUCCEEDED(hr)) return false; } #endif The if-statement checks your windows version and if passed, the ungrouping will run. (6.1 is Win7SP1) P3NG3R 1 19 Link to comment Share on other sites More sharing options...
BekirAKDMR 5 Posted August 16, 2016 Share Posted August 16, 2016 Thanks for coding bro xD Link to comment Share on other sites More sharing options...
stein20 15 Posted August 16, 2016 Share Posted August 16, 2016 thanks, but I have problem :S Link to comment Share on other sites More sharing options...
VegaS 1099 Posted August 16, 2016 Share Posted August 16, 2016 45 minutes ago, stein20 said: thanks, but I have problem :S Put without #ifdef && #def in MSWindow.cpp, like that: #include <Shobjidl.h> Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19751 Posted August 16, 2016 Author Honorable Member Share Posted August 16, 2016 #define DISABLE_TASKBAR_GROUPING 1 Link to comment Share on other sites More sharing options...
Premium V0iĐ 115 Posted August 16, 2016 Premium Share Posted August 16, 2016 Thanks but I have a very very difficult and interesting problem. I don't use this system and not work, any solution? Intro and kind regards and best regards and you do .....? 2 Link to comment Share on other sites More sharing options...
Active Member hachiwari 138 Posted August 16, 2016 Active Member Share Posted August 16, 2016 Nice idea! And nice work :3 Link to comment Share on other sites More sharing options...
Aerrow 41 Posted August 16, 2016 Share Posted August 16, 2016 1 hour ago, VegaS said: Put without #ifdef && #def in MSWindow.cpp, like that: #include <Shobjidl.h> Still not working. Link to comment Share on other sites More sharing options...
emirhan 0 Posted August 18, 2016 Share Posted August 18, 2016 Thanks bro Link to comment Share on other sites More sharing options...
Active Member Mind Rapist 190 Posted August 18, 2016 Active Member Share Posted August 18, 2016 Good one @xP3NG3Rx, thanks a lot Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1206 Posted August 18, 2016 Active+ Member Share Posted August 18, 2016 Very good ! Thank you. Link to comment Share on other sites More sharing options...
terrorr 15 Posted August 20, 2016 Share Posted August 20, 2016 Win 10 = No work :/ Link to comment Share on other sites More sharing options...
Active Member hachiwari 138 Posted August 20, 2016 Active Member Share Posted August 20, 2016 2 hours ago, terrorr said: Win 10 = No work :/ It's not true :3 Link to comment Share on other sites More sharing options...
tavi 13 Posted September 5, 2016 Share Posted September 5, 2016 (edited) Error on windows XP : Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Management Karbust 4910 Posted September 23, 2016 Management Share Posted September 23, 2016 With me is working fine, using the material from the 1st post... Thanks for sharing!! Link to comment Share on other sites More sharing options...
stein20 15 Posted September 25, 2016 Share Posted September 25, 2016 (edited) step #1 step #2 " /> step # 3 error. :S Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Silver Sonitex 1444 Posted September 26, 2016 Silver Share Posted September 26, 2016 I've got the same issue as the users above.. Any solutions for that? Link to comment Share on other sites More sharing options...
Premium Crystal™ 25 Posted September 27, 2016 Premium Share Posted September 27, 2016 Hahahahah I've always thought that it was a windows setting for changing this ...Anw thanks for sharing with us this tutorial man! Link to comment Share on other sites More sharing options...
Active Member Koray 2014 Posted September 27, 2016 Active Member Share Posted September 27, 2016 (edited) Good job but have a little problem about "SetCurrentProcessExplicitAppUserModelID" usage API works on Win7 or later, You already do requirement with GetVersionEx but it is not enough because you are already used "SetCurrentProcessExplicitAppUserModelID" in your client and builded IAT with this API so when XP or Vista users try run your client he will get this error. Spoiler You need call as dynamic, like this; OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); if (v.dwMajorVersion >= 6 && v.dwMinorVersion >= 1) { WCHAR myAppID[128]; swprintf(myAppID, sizeof(myAppID) / sizeof(myAppID[0]), L"MyMetin2AppID%u", GetCurrentProcessId()); typedef HRESULT(WINAPI* SetCurrentProcessExplicitAppUserModelIDptr)(_In_ PCWSTR AppID); SetCurrentProcessExplicitAppUserModelIDptr SetCurrentProcessExplicitAppUserModelIDo = (SetCurrentProcessExplicitAppUserModelIDptr)GetProcAddress(LoadLibraryA("shell32.dll"), "SetCurrentProcessExplicitAppUserModelID"); if (SetCurrentProcessExplicitAppUserModelIDo) { HRESULT hr = SetCurrentProcessExplicitAppUserModelIDo(myAppID); if (!SUCCEEDED(hr)) return false; } } Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
Premium V0iĐ 115 Posted September 28, 2016 Premium Share Posted September 28, 2016 Oh my holy FORTRAN lord. :'( 2016 and You sayin' XP users. Vista? Normal people NEVER use the "vista" the vista is the Satan's work. Sorry but your comment a little bit bullshit. And sorry for my english. Kind regards, best regards, fuckin' yolo regards and etc. 2 Link to comment Share on other sites More sharing options...
Active Member Koray 2014 Posted September 28, 2016 Active Member Share Posted September 28, 2016 Are you kidding? I'm just replaced code bug in main post. Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19751 Posted September 28, 2016 Author Honorable Member Share Posted September 28, 2016 My friend, Void tried to say that, the prior operationg systems are out of date to use in this decade, and don't need solution to work on those systems, I think. ofc yr code isn't bad, but nowaday who want to use XP or S: vista :S damn oh god pls Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7200 Posted September 28, 2016 Honorable Member Share Posted September 28, 2016 14 minutes ago, xP3NG3Rx said: nowaday who want to use XP or S: vista :S damn oh god pls Only a relevant % of turkish people use XP nowadays. (so, in that case, it's crucial) Vista users can't even boot windows without getting 2-3 BSOD, so they are not a problem. 1 Check out my GitHub Link to comment Share on other sites More sharing options...
Active Member Koray 2014 Posted September 28, 2016 Active Member Share Posted September 28, 2016 18 minutes ago, martysama0134 said: Only a relevant % of turkish people use XP nowadays. (so, in that case, it's crucial) Yes, that's a good point, Still a million guys uses Core 2 Duo and windows XP and we're talking about Metin2 so is not a AAA game. Link to comment Share on other sites More sharing options...
panher 31 Posted September 28, 2016 Share Posted September 28, 2016 (edited) güzel mevzuyu anlamayan arkadaşlar şöyle anlatabilirim. araç çubuğunuzda minimize yani küçült(aşağı al) butonuna aldığınızdada aynı oyundan iki tane client çalışıyorsa ayrı ayrı gösteriyor zaten gereksiz You Lose Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts