Jump to content

Recommended Posts

  • Active+ Member

Hi guys,

can somebody know how to do function for CTRL + C and CTRL + V in game? For example: I copy some text on the internet and i want to paste to chat in game.

Thanks for your answer!

Kind Regards ReFresh

I'll be always helpful!  😉

SourceClient - Eterlib/IME.cpp

 

Search:

m_bEnablePaste = false;

and replaces with:

m_bEnablePaste = true;

Search and delete:

if (!__IsWritable(c))
        return;

 

And search in ui.py / root:

def OnKeyDown(self, key):

and add it below:

        if app.DIK_V == key:
            if app.IsPressed(app.DIK_LCONTROL):
                ime.PasteTextFromClipBoard()

 

  • Love 4
  • Active+ Member

Thank you @VegaS.

But I have a one question. When I use Ctrl + V does this symbol before the inserted text. I think that this symbol is inserted when the chat line is full, but this symbol is inserted automatically before inserted text.

Thanks for your answer!

 

I'll be always helpful!  😉

  • 2 months later...
  • Active+ Member
3 hours ago, arves100 said:

You have to copy something using corean\window 9XX format

Thank you, but how can I do this? I don't know what do you mean. Or can I change this copy format to Czech format?

I'll be always helpful!  😉

  • Active+ Member
58 minutes ago, arves100 said:

If you use notepad++ you have to open Format-->Character Set-->Korean-->Window 949 and have to copy and paste on the client.

The second option if to change Metin2 Text Format to UTF-8\ANSI

@arves100 But I don't know, where I must change this encoding.

I'll be always helpful!  😉

Open ime.cpp look for:

Spoiler

void CIME::OnChar(wchar_t c)

below 

if (m_bOnlyNumberMode)
        if (!iswdigit(c))
            return;

Add:

Spoiler

if (c == 0x16)
        return;

It will fix the problem.

  • Love 1
  • Active+ Member

@metin2-factory

Thank you very much! It works perfect. And I have a last one question, how can I fix when i haven't got copied any text and I will put this "nothing" into a chat, game close.

I'll be always helpful!  😉

look for: 

Spoiler

void CIME::PasteTextFromClipBoard()

relace:

Spoiler

 

HANDLE handle = GetClipboardData(CF_TEXT);

char * buffer = (char*)GlobalLock(handle);

 

with:

Spoiler

    HANDLE handle = GetClipboardData(CF_TEXT);
    if (!handle)
        return;
    char * buffer = (char*)GlobalLock(handle);
    if (!buffer)
        return;

I'm not sure it will work i haven't tested it yet but it seems to prevent the issue.

Let me know if it worked.

  • Love 6

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.